:root {
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --ink: #1e2a36;
  --ink-muted: #5b6b7c;
  --accent: #ff7a3d;
  --accent-2: #1aa6b7;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-2: #ffffff;
  --surface-3: #eef4ff;
  --border: #d7e2ee;
  --border-strong: #c3d2e3;
  --shadow-sm: 0 10px 24px rgba(30, 42, 54, 0.08);
  --shadow-md: 0 18px 36px rgba(30, 42, 54, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --focus-ring: rgba(255, 122, 61, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(800px 520px at 8% -10%, rgba(255, 216, 150, 0.45), transparent 60%),
    radial-gradient(900px 600px at 100% -15%, rgba(160, 220, 255, 0.38), transparent 55%),
    linear-gradient(180deg, #f6fbff 0%, #edf6ff 55%, #fef6ee 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
  position: relative;
}

.analyze-page {
  height: 100vh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.no-select {
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(30, 42, 54, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

button,
input,
select {
  font-family: inherit;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

code {
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 8px 0 6px;
}

.hero-subtitle {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.hero-panel {
  background: linear-gradient(140deg, #ffffff 0%, #f5fbff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px dashed var(--border);
}

.stat:last-child {
  border-bottom: none;
}

.stat strong {
  color: var(--ink);
  font-weight: 600;
}

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

.nav-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 150px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 0.6s ease forwards;
}

.nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.8;
  pointer-events: none;
}

.nav-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% -30%;
  height: 60%;
  background: radial-gradient(circle, rgba(26, 166, 183, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-card:hover {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.nav-card:hover::after {
  opacity: 1;
}

.nav-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
}

.nav-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.nav-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(238, 244, 255, 0.9);
}

.analyze-page .analyze-shell {
  max-width: 1800px;
  width: min(98vw, 1800px);
  margin: 0 auto;
  padding: 18px 16px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analyze-page .analyze-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.analyze-page .hero-actions {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analyze-page .helper-text {
  font-size: 12px;
  color: var(--ink-muted);
}

.analyze-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.analyze-page .btn:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.analyze-page .btn-primary {
  background: linear-gradient(120deg, rgba(255, 122, 61, 0.95), rgba(255, 178, 118, 0.95));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 18px rgba(255, 122, 61, 0.2);
}

.analyze-page .btn-primary:hover {
  background: linear-gradient(120deg, rgba(255, 138, 85, 0.97), rgba(255, 190, 138, 0.97));
}

.analyze-page .btn-ghost {
  background: rgba(238, 244, 255, 0.9);
}

.analyze-page .file-button {
  position: relative;
  overflow: hidden;
}

.analyze-page .file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.analyze-page .filter-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analyze-page .input {
  padding: 8px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  min-width: 180px;
}

.analyze-page .input-wide {
  flex: 1;
  min-width: 220px;
}

.analyze-page .analyze-layout {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.analyze-page .panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.analyze-page .log-panel {
  flex: 0 0 auto;
  width: 70%;
  min-width: 320px;
  height: 100%;
  min-height: 0;
}

.analyze-page .analysis-panel {
  flex: 0 0 auto;
  width: 30%;
  min-width: 280px;
  height: 100%;
  min-height: 0;
}

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

.analyze-page .panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
}

.analyze-page .panel-desc {
  font-size: 12px;
  color: var(--ink-muted);
}

.analyze-page .panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.analyze-page .panel-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: -4px;
}

.analyze-page .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analyze-page .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(238, 244, 255, 0.9);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink);
}

.analyze-page .chip-remove {
  border: none;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.analyze-page .empty-state {
  text-align: center;
  color: var(--ink-muted);
  padding: 24px 0;
}

.analyze-page .log-scroller {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.analyze-page .log-viewport {
  height: 100%;
  overflow: auto;
  min-height: 0;
}

.analyze-page .log-content {
  position: relative;
}

.analyze-page .log-items {
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.analyze-page .log-line {
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px dashed rgba(215, 226, 238, 0.8);
}

.analyze-page .timestamp {
  color: var(--accent-2);
}

.analyze-page .error {
  color: #d9483e;
  font-weight: 600;
}

.analyze-page .warning {
  color: #e67e22;
  font-weight: 600;
}

.analyze-page .success {
  color: #2e8b57;
  font-weight: 600;
}

.analyze-page .mark {
  background: rgba(255, 209, 102, 0.5);
  padding: 0 3px;
  border-radius: 4px;
}

.analyze-page .resizer {
  width: 8px;
  margin: 0 10px;
  cursor: col-resize;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 61, 0.15), rgba(26, 166, 183, 0.2));
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.analyze-page .resizer:hover,
.analyze-page .resizer.dragging {
  background: linear-gradient(180deg, rgba(255, 122, 61, 0.4), rgba(26, 166, 183, 0.4));
  box-shadow: 0 0 0 2px rgba(255, 122, 61, 0.15);
}

.analyze-page .cta-card {
  border: none;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(130deg, rgba(26, 166, 183, 0.9), rgba(94, 209, 214, 0.9));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analyze-page .cta-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.analyze-page .cta-title {
  font-size: 16px;
  font-family: var(--font-display);
}

.analyze-page .cta-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.analyze-page .analysis-result {
  background: rgba(238, 244, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border);
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.analyze-page .analysis-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  padding-bottom: 6px;
}

.analyze-page .analysis-content {
  color: var(--ink-muted);
  font-size: 13px;
}

.analysis-shell {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
}

.analysis-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.analysis-title {
  font-size: 16px;
  font-family: var(--font-display);
  color: var(--ink);
}

.analysis-time {
  font-size: 12px;
  color: var(--ink-muted);
}

.analysis-body {
  color: var(--ink-muted);
}

.analysis-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analysis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.analysis-card-title {
  font-size: 15px;
  font-family: var(--font-display);
  margin: 0 0 12px;
  color: var(--ink);
}

.analysis-kv-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.analysis-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.analysis-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(215, 226, 238, 0.9);
  font-size: 12px;
}

.analysis-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.analysis-name {
  color: var(--ink);
  font-weight: 600;
  min-width: 110px;
}

.analysis-muted {
  color: var(--ink-muted);
  text-align: right;
}

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

.analysis-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(238, 244, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 12px;
}

.analysis-subsection {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(215, 226, 238, 0.9);
}

.analysis-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.accent-danger {
  color: #d9483e;
}

.accent-cool {
  color: var(--accent-2);
}

.data-page {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  padding: 18px;
}

.data-page .top-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  animation: floatIn 0.5s ease;
}

.data-page .top-bar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 122, 61, 0.5), rgba(26, 166, 183, 0.4));
  opacity: 0.7;
}

.data-page .filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.data-page .filters label {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.data-page .filters input,
.data-page .filters select {
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.data-page .filters input::placeholder {
  color: rgba(91, 107, 124, 0.7);
}

.data-page .pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.data-page .cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  animation: fadeIn 0.5s ease;
}

.data-page .note {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

.data-page button {
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.data-page button:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.data-page button:active {
  transform: translateY(0);
}

.data-page #applyFilter,
.data-page #quickCalc,
.data-page #calcBtn {
  background: linear-gradient(120deg, rgba(255, 122, 61, 0.92), rgba(255, 166, 102, 0.92));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(255, 122, 61, 0.2);
}

.data-page #applyFilter:hover,
.data-page #quickCalc:hover,
.data-page #calcBtn:hover {
  background: linear-gradient(120deg, rgba(255, 138, 85, 0.96), rgba(255, 178, 118, 0.96));
}

.input-sm { width: 120px; }
.input-xs { width: 80px; }
.input-xxs { width: 60px; }

.monster-page .monster-wrap {
  width: 100%;
  max-width: 2000px;
  background: linear-gradient(150deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  overflow-y: hidden;
}

.monster-page .monster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--ink);
  table-layout: fixed;
}

.monster-page .monster-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  vertical-align: top;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.6);
}

.monster-page .monster-table tr:nth-child(odd) td {
  background: rgba(238, 244, 255, 0.55);
}

.monster-page .monster-table .name {
  font-weight: 700;
  white-space: nowrap;
  min-width: 260px;
  width: 260px;
}

.monster-page .label {
  margin-right: 4px;
  color: var(--ink-muted);
}

.monster-page .value {
  color: var(--ink);
  word-break: break-all;
}

.item-page .item-card {
  width: 100%;
  max-width: 2000px;
  background: linear-gradient(150deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.item-page .item-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}

.item-page .item-name {
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-display);
}

.item-page .item-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 12px;
}

.item-page .item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 12px 14px;
}

.item-page .kv {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  min-height: 40px;
}

.item-page .kv .label {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.item-page .kv .value {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  word-break: break-all;
}

.item-page .kv.wide {
  grid-column: 1 / -1;
}

.wuhun-page h1 {
  margin-bottom: 12px;
}

.wuhun-page table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.wuhun-page th,
.wuhun-page td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
  line-height: 1.4;
}

.wuhun-page th {
  background: var(--surface-3);
  position: sticky;
  top: 0;
  z-index: 1;
}

.wuhun-page tbody tr:nth-child(odd) {
  background: rgba(238, 244, 255, 0.4);
}

.level-page h1 {
  margin: 0;
}

.level-page .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.level-page #quickCalc {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.level-page table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.level-page th,
.level-page td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
}

.level-page th {
  background: var(--surface-3);
  position: sticky;
  top: 0;
  z-index: 1;
}

.level-page tbody tr:nth-child(odd) {
  background: rgba(238, 244, 255, 0.4);
}

.level-page .modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 42, 54, 0.3);
  z-index: 10;
}

.level-page .modal.open {
  display: flex;
}

.level-page .modal-content {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  width: 560px;
  max-width: calc(100vw - 24px);
  box-shadow: var(--shadow-md);
}

.level-page .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.level-page .modal-header button {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.level-page .modal-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.level-page .modal-body label {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.level-page .modal-body input {
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.level-page .result {
  font-size: 12px;
  color: var(--ink);
  min-height: 16px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .data-page {
    padding: 14px;
  }

  .data-page .filters {
    justify-content: flex-start;
  }

  .data-page .filters label {
    width: 100%;
    justify-content: space-between;
  }

  .data-page .filters input,
  .data-page .filters select {
    flex: 1;
  }

  .data-page .pagination {
    justify-content: flex-start;
  }

  .data-page .pagination label {
    width: 100%;
  }

  .analyze-page .analyze-hero {
    grid-template-columns: 1fr;
  }

  .analyze-page .analyze-layout {
    flex-direction: column;
  }

  .analyze-page .resizer {
    display: none;
  }

  .analyze-page .panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .analyze-page .log-panel,
  .analyze-page .analysis-panel {
    width: 100%;
  }

  .analyze-page {
    height: auto;
    overflow: auto;
  }

  .analyze-page .analyze-shell {
    height: auto;
  }

  .analyze-page .analysis-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .analyze-page .analysis-muted {
    text-align: left;
  }
}

.footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav-card:nth-child(1) { animation-delay: 0.05s; }
.nav-card:nth-child(2) { animation-delay: 0.1s; }
.nav-card:nth-child(3) { animation-delay: 0.15s; }
.nav-card:nth-child(4) { animation-delay: 0.2s; }
.nav-card:nth-child(5) { animation-delay: 0.25s; }
