﻿html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
}

.shell-container {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.shell-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100vh;
  padding: 10px 8px;
  background: rgba(5, 13, 26, 0.98);
  border-right: 1px solid var(--line-color);
  overflow: hidden;
}

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

.sidebar-logo {
  width: 164px;
  max-width: 100%;
  margin: 0 auto;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #9cd5ff;
  line-height: 1.2;
}

.sidebar-subtitle {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.25;
}

.sidebar-menu {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
}

.menu-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-link.active,
.menu-link:hover {
  background: linear-gradient(90deg, rgba(45, 123, 255, 0.22), rgba(45, 123, 255, 0.08));
  color: #a7d7ff;
}

.menu-icon {
  display: none;
}

.sidebar-card,
.panel-card,
.summary-stat-card,
.status-card,
.hero-card,
.chart-box,
.detail-item,
.inline-note,
.upload-result-item {
  background: var(--bg-panel);
  border: 1px solid var(--line-color);
  border-radius: 10px;
  box-shadow: var(--shadow-panel);
}

.sidebar-card {
  padding: 10px;
  overflow: hidden;
}

.sidebar-card h3,
.panel-card h3,
.panel-card h4 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.sidebar-card p,
.panel-card p,
.inline-note,
.upload-result-item {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.35;
  font-size: 11px;
}

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

.shell-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 10px;
  align-items: start;
  min-height: 88px;
  max-height: 88px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-color);
  background: rgba(6, 14, 28, 0.94);
  overflow: hidden;
}

.header-left,
.header-right,
.page-summary-banner,
.summary-copy,
.summary-stats,
.content-grid,
.compact-two-column,
.grid-main,
.compact-main-grid,
.panel-card,
.chart-grid,
.table-wrapper,
.table-toolbar,
.detail-columns,
.detail-column,
.main-split-grid,
.inline-panel-grid,
.quick-action-bar,
.upload-result-grid {
  min-width: 0;
}

.header-left {
  overflow: hidden;
}

.breadcrumb-group {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}

.breadcrumb-item,
.breadcrumb-separator {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-subtitle {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas:
    "search status"
    "actions status";
  gap: 6px 8px;
  overflow: hidden;
}

.header-search {
  grid-area: search;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 6px;
  align-items: center;
}

.header-search input,
.field input,
.field select,
.field textarea,
.split-inline-form input[type='file'],
.upload-inline-form input[type='file'] {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(120, 185, 255, 0.18);
  background: rgba(5, 13, 26, 0.96);
  color: var(--text-main);
  outline: none;
}

.header-search input,
.field input,
.field select,
.split-inline-form input[type='file'],
.upload-inline-form input[type='file'] {
  height: 26px;
  min-height: 26px;
  padding: 0 8px;
  font-size: 13px;
}

.field textarea {
  min-height: 64px;
  height: 64px;
  padding: 6px 8px;
  resize: none;
  font-size: 13px;
}

.header-action-group {
  grid-area: actions;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow: hidden;
}

.header-status-grid {
  grid-area: status;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
}

.status-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
  padding: 6px 8px;
  overflow: hidden;
}

.status-card span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.status-card strong {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-container {
  height: calc(100vh - 88px);
  padding: 8px 10px 10px;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.page-summary-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 8px;
  min-height: 56px;
  max-height: 56px;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(45, 123, 255, 0.16), rgba(7, 17, 31, 0.98));
  border: 1px solid var(--line-color);
  overflow: hidden;
}

.summary-copy {
  overflow: hidden;
}

.summary-copy h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-copy p,
.toolbar-summary {
  display: none;
}

.panel-header p,
.hero-card p,
.inline-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.summary-stats,
.hero-card-grid,
.compact-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.summary-stat-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  padding: 8px 10px;
  overflow: hidden;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  min-height: 64px;
  padding: 8px 10px 8px 36px;
  overflow: hidden;
}

.summary-stat-card::before,
.hero-card::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(22, 93, 255, 0.9), rgba(114, 46, 209, 0.9));
}

.hero-card::before {
  position: absolute;
  top: 10px;
  left: 10px;
}

.summary-stat-card span,
.hero-card span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-stat-card strong,
.hero-card strong {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-card span,
.hero-card strong,
.hero-card p {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-card p {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.2;
}

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

.hero-panel .hero-card {
  min-height: 72px;
  gap: 4px;
}

.hero-panel .hero-card span {
  font-size: 10px;
  line-height: 1.15;
}

.hero-panel .hero-card strong {
  font-size: 15px;
}

.hero-panel .hero-card p {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-grid,
.compact-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(280px, 0.92fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.content-grid > :only-child,
.compact-two-column > :only-child {
  grid-column: 1 / -1;
}

.grid-main,
.compact-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  align-content: start;
}

.grid-main > .table-panel,
.grid-main > .chart-panel,
.grid-main > .panel-card:nth-child(4),
.compact-main-grid > .compact-table-shell,
.compact-main-grid > .panel-card:nth-child(3),
.compact-main-grid > .panel-card:last-child {
  grid-column: 1 / -1;
}

.panel-card {
  padding: 12px;
  overflow: hidden;
  min-height: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.panel-header > div:first-child {
  min-width: 0;
}

.panel-actions,
.form-actions-row,
.dialog-footer,
.compact-action-row,
.quick-action-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.search-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

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

.field span {
  color: var(--text-main);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-full,
.form-actions-row,
.compact-action-row {
  grid-column: 1 / -1;
}

.chart-grid,
.inline-panel-grid,
.main-split-grid,
.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

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

.chart-box {
  padding: 10px;
  overflow: hidden;
}

.chart-box h4 {
  margin: 0 0 6px;
  font-size: 12px;
}

.chart-canvas {
  height: 124px;
  min-height: 124px;
  overflow: hidden;
}

.table-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
  overflow: hidden;
}

.toolbar-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  overflow: hidden;
  max-height: 18px;
}

.toolbar-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(45, 123, 255, 0.16);
  color: #acd7ff;
  font-size: 10px;
  line-height: 1;
}

.table-wrapper {
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
}

.compact-table-shell .table-wrapper {
  height: 300px;
  min-height: 300px;
  max-height: 300px;
}

.table-wrapper .data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.table-wrapper .data-table thead tr {
  background: rgba(12, 28, 54, 0.98);
}

.table-wrapper .data-table th,
.table-wrapper .data-table td {
  padding: 0 6px;
  height: 30px;
  line-height: 30px;
  border-bottom: 1px solid rgba(120, 185, 255, 0.14);
  vertical-align: middle;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrapper .data-table th {
  color: #ffffff;
  font-weight: 700;
}

.table-wrapper .data-table td {
  color: #eff8ff;
}

.table-wrapper .data-table th:nth-child(1),
.table-wrapper .data-table td:nth-child(1) {
  width: 8%;
}

.table-wrapper .data-table th:nth-child(2),
.table-wrapper .data-table td:nth-child(2) {
  width: 18%;
}

.table-wrapper .data-table th:nth-child(3),
.table-wrapper .data-table td:nth-child(3) {
  width: 10%;
}

.table-wrapper .data-table th:nth-child(4),
.table-wrapper .data-table td:nth-child(4) {
  width: 15%;
}

.table-wrapper .data-table th:nth-child(5),
.table-wrapper .data-table td:nth-child(5) {
  width: 22%;
}

.table-wrapper .data-table th:nth-child(6),
.table-wrapper .data-table td:nth-child(6) {
  width: 12%;
}

.table-wrapper .data-table th:nth-child(7),
.table-wrapper .data-table td:nth-child(7) {
  width: 10%;
}

.table-wrapper .data-table th:last-child,
.table-wrapper .data-table td:last-child {
  width: 5%;
}

#strategy-table th:nth-child(1),
#strategy-table td:nth-child(1) {
  width: 6%;
}

#strategy-table th:nth-child(2),
#strategy-table td:nth-child(2) {
  width: 13%;
}

#strategy-table th:nth-child(3),
#strategy-table td:nth-child(3),
#strategy-table th:nth-child(4),
#strategy-table td:nth-child(4) {
  width: 14%;
}

#strategy-table th:nth-child(5),
#strategy-table td:nth-child(5),
#strategy-table th:nth-child(6),
#strategy-table td:nth-child(6),
#strategy-table th:nth-child(7),
#strategy-table td:nth-child(7),
#strategy-table th:nth-child(8),
#strategy-table td:nth-child(8),
#strategy-table th:nth-child(9),
#strategy-table td:nth-child(9) {
  width: 7%;
}

#strategy-table th:last-child,
#strategy-table td:last-child {
  width: 18%;
}

#strategy-table .table-action-group {
  justify-content: flex-start;
  gap: 3px;
}

#strategy-table .table-action-group .btn {
  min-width: 32px;
  padding: 0 6px;
}

#alert-table th:nth-child(1),
#alert-table td:nth-child(1) {
  width: 10%;
}

#alert-table th:nth-child(2),
#alert-table td:nth-child(2) {
  width: 17%;
}

#alert-table th:nth-child(3),
#alert-table td:nth-child(3),
#alert-table th:nth-child(7),
#alert-table td:nth-child(7) {
  width: 8%;
}

#alert-table th:nth-child(4),
#alert-table td:nth-child(4) {
  width: 13%;
}

#alert-table th:nth-child(5),
#alert-table td:nth-child(5),
#alert-table th:nth-child(6),
#alert-table td:nth-child(6) {
  width: 15%;
}

#alert-table th:last-child,
#alert-table td:last-child {
  width: 14%;
}

#backup-table th:nth-child(1),
#backup-table td:nth-child(1) {
  width: 16%;
}

#backup-table th:nth-child(2),
#backup-table td:nth-child(2) {
  width: 14%;
}

#backup-table th:nth-child(3),
#backup-table td:nth-child(3),
#backup-table th:nth-child(5),
#backup-table td:nth-child(5) {
  width: 10%;
}

#backup-table th:nth-child(4),
#backup-table td:nth-child(4),
#backup-table th:nth-child(6),
#backup-table td:nth-child(6) {
  width: 8%;
}

#backup-table th:nth-child(7),
#backup-table td:nth-child(7) {
  width: 20%;
}

#backup-table th:last-child,
#backup-table td:last-child {
  width: 14%;
}

#orchestration-table th:nth-child(1),
#orchestration-table td:nth-child(1) {
  width: 22%;
}

#orchestration-table th:nth-child(2),
#orchestration-table td:nth-child(2) {
  width: 10%;
}

#orchestration-table th:nth-child(3),
#orchestration-table td:nth-child(3) {
  width: 18%;
}

#orchestration-table th:nth-child(4),
#orchestration-table td:nth-child(4) {
  width: 36%;
}

#orchestration-table th:last-child,
#orchestration-table td:last-child {
  width: 14%;
}

#traffic-table th:nth-child(1),
#traffic-table td:nth-child(1) {
  width: 10%;
}

#traffic-table th:nth-child(2),
#traffic-table td:nth-child(2),
#traffic-table th:nth-child(3),
#traffic-table td:nth-child(3) {
  width: 16%;
}

#traffic-table th:nth-child(4),
#traffic-table td:nth-child(4),
#traffic-table th:nth-child(6),
#traffic-table td:nth-child(6),
#traffic-table th:nth-child(7),
#traffic-table td:nth-child(7) {
  width: 9%;
}

#traffic-table th:nth-child(5),
#traffic-table td:nth-child(5) {
  width: 12%;
}

#traffic-table th:last-child,
#traffic-table td:last-child {
  width: 18%;
}

#alert-table td:last-child,
#backup-table td:last-child,
#orchestration-table td:last-child,
#traffic-table td:last-child {
  overflow: visible;
  white-space: normal;
}

#alert-table .table-action-group,
#backup-table .table-action-group,
#orchestration-table .table-action-group,
#traffic-table .table-action-group {
  justify-content: flex-start;
  gap: 3px;
  flex-wrap: wrap;
}

#alert-table .table-action-group .btn,
#backup-table .table-action-group .btn,
#orchestration-table .table-action-group .btn,
#traffic-table .table-action-group .btn {
  min-width: 32px;
  padding: 0 6px;
}

#traffic-table .table-action-group {
  gap: 6px;
  flex-wrap: nowrap;
}

#traffic-table .table-action-group .btn {
  min-width: 44px;
  padding: 0 8px;
}

.table-action-group {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
}

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.pagination-button {
  min-width: 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(120, 185, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 11px;
  cursor: pointer;
}

.pagination-button.active {
  background: linear-gradient(180deg, #2d7bff, #165dff);
  border-color: #2d7bff;
}

.detail-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.content-grid > .panel-card:last-child,
.compact-two-column > .panel-card:last-child {
  max-height: 100%;
}

.detail-item,
.upload-result-item {
  padding: 8px 10px;
  overflow: hidden;
}

.detail-item strong,
.upload-result-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  line-height: 1.2;
}

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

.dialog-shell {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 24, 0.76);
  backdrop-filter: blur(6px);
  z-index: 900;
}

.dialog-shell.open {
  display: flex;
}

.dialog-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, calc(100vw - 48px));
  max-width: 760px;
  max-height: min(680px, calc(100vh - 48px));
  padding: 16px;
  border-radius: 12px;
  background: rgba(8, 18, 34, 0.98);
  border: 1px solid rgba(120, 185, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  animation: dialog-pop 160ms ease-out;
}

.dialog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: #2d7bff;
}

.dialog-card .panel-header {
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(120, 185, 255, 0.14);
}

.dialog-card .panel-header h3 {
  font-size: 16px;
  line-height: 1.2;
  color: #f4f8ff;
}

.dialog-card .panel-header p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #9fc4e9;
  -webkit-line-clamp: 2;
}

.dialog-card .panel-header > div:first-child {
  position: relative;
  padding-left: 10px;
}

.dialog-card .panel-header > div:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: #2d7bff;
}

.dialog-card .panel-header > button[data-close-dialog] {
  flex: 0 0 auto;
  min-width: 40px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(120, 185, 255, 0.18);
  color: #d9ebff;
}

.dialog-body {
  min-height: 0;
  margin: 0;
  padding-right: 4px;
  overflow: auto;
}

.dialog-body .search-field-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.dialog-body .field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.dialog-body .field span {
  white-space: normal;
  color: #cfe7ff;
}

.dialog-body .detail-column,
.tab-panel .quick-action-bar {
  margin-top: 8px;
}

.dialog-body .detail-columns {
  gap: 10px;
}

.dialog-body .detail-item,
.dialog-body .upload-result-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(120, 185, 255, 0.12);
}

.dialog-body .detail-item strong,
.dialog-body .upload-result-item strong {
  color: #dff0ff;
  margin-bottom: 4px;
}

.dialog-body .detail-item p,
.dialog-body .upload-result-item p {
  color: #a7bfd8;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.dialog-footer {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 185, 255, 0.14);
}

.dialog-footer .btn {
  min-width: 88px;
}

.dialog-card .btn-primary {
  background: #165dff;
  border-color: #165dff;
  box-shadow: none;
}

.dialog-card .btn-secondary {
  background: #722ed1;
  border-color: #722ed1;
  box-shadow: none;
}

.dialog-card .btn-success {
  background: #00b42a;
  border-color: #00b42a;
  box-shadow: none;
}

.dialog-body::-webkit-scrollbar {
  width: 8px;
}

.dialog-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 185, 255, 0.26);
}

@keyframes dialog-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.split-inline-form,
.upload-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.tab-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tab-panel {
  min-height: 0;
  overflow: hidden;
}

.btn,
.tab-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 26px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(120, 185, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
}

.btn-primary,
.tab-trigger.active {
  background: #165dff;
  border-color: #165dff;
  color: #ffffff;
}

.btn-secondary {
  background: #722ed1;
  border-color: #722ed1;
  color: #ffffff;
}

[data-page-action] {
  display: none !important;
}

.btn-success {
  background: #00b42a;
  border-color: #00b42a;
  color: #ffffff;
}

.btn-danger {
  background: #f53f3f;
  border-color: #f53f3f;
  color: #ffffff;
}

@media (max-width: 1200px) {
  .content-grid,
  .compact-two-column,
  .grid-main,
  .compact-main-grid,
  .shell-header,
  .page-summary-banner,
  .summary-stats,
  .hero-card-grid,
  .compact-summary-grid,
  .search-field-grid,
  .chart-grid,
  .inline-panel-grid,
  .main-split-grid,
  .detail-columns,
  .upload-result-grid {
    grid-template-columns: 1fr;
  }

  .header-right {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "actions"
      "status";
  }
}
