:root {
  --primary: #1a56db;
  --primary-strong: #133ea1;
  --secondary: #0e9f6e;
  --warning: #f59e0b;
  --danger: #e02424;
  --bg: #f9fafb;
  --panel: #ffffff;
  --panel-soft: #f4f7fb;
  --text: #111928;
  --muted: #6b7280;
  --line: #dbe4f0;
  --line-strong: #c4d1e4;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-width: 280px;
  --topbar-height: 76px;
  --footer-height: 46px;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-data: "DM Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(26, 86, 219, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 48%, #eef3f8 100%);
  color: var(--text);
  font-family: var(--font-body);
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.25s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 92px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, #081630 0%, #0d2146 100%);
  color: #eef4ff;
  box-shadow: 8px 0 28px rgba(8, 22, 48, 0.18);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 20px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(14, 159, 110, 0.85), rgba(26, 86, 219, 0.95));
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-group-title,
.sidebar-collapsed .menu-label,
.sidebar-collapsed .menu-status-label,
.sidebar-collapsed .footer-copy,
.sidebar-collapsed .collapse-label {
  display: none;
}

.brand-copy p {
  margin: 4px 0 0;
  color: rgba(238, 244, 255, 0.64);
  font-size: 12px;
}

.sidebar-divider {
  margin: 10px 6px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-title {
  margin: 0 10px 10px;
  color: rgba(238, 244, 255, 0.64);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  color: rgba(238, 244, 255, 0.84);
  border-radius: 14px;
  background: transparent;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.24), rgba(14, 159, 110, 0.18));
  color: #ffffff;
}

.menu-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-index {
  min-width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.menu-label {
  text-align: left;
  font-size: 14px;
  line-height: 1.3;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.status-dot.completed,
.status-badge.completed {
  background: rgba(14, 159, 110, 0.16);
  color: var(--secondary);
}

.status-dot.active,
.status-badge.active {
  background: rgba(26, 86, 219, 0.14);
  color: var(--primary);
}

.status-dot.pending,
.status-badge.pending {
  background: rgba(107, 114, 128, 0.14);
  color: var(--muted);
}

.status-dot.warning,
.status-badge.warning {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
}

.status-dot.danger,
.status-badge.danger {
  background: rgba(224, 36, 36, 0.14);
  color: var(--danger);
}

.menu-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-status .status-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
}

.menu-status-label {
  color: rgba(238, 244, 255, 0.58);
  font-size: 12px;
}

.sidebar-footer {
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  padding: 11px 14px;
  margin-bottom: 12px;
}

.collapse-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer-copy {
  color: rgba(238, 244, 255, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  backdrop-filter: blur(16px);
  background: rgba(248, 251, 255, 0.8);
  border-bottom: 1px solid rgba(196, 209, 228, 0.7);
}

.topbar-meta h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.topbar-meta p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.signal-card,
.avatar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(196, 209, 228, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.signal-pill {
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 159, 110, 0.12);
  color: var(--secondary);
  font-family: var(--font-data);
  font-size: 12px;
  text-align: center;
}

.avatar-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a56db, #0e9f6e);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-weight: 700;
}

.avatar-copy strong {
  display: block;
  font-size: 14px;
}

.avatar-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.page-wrap {
  flex: 1;
  padding: 24px 28px 20px;
}

.page-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 209, 228, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-card {
  padding: 22px 24px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.section-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

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

.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.92), rgba(13, 33, 70, 0.95)),
    linear-gradient(120deg, rgba(14, 159, 110, 0.1), transparent);
  color: #fff;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-title {
  margin: 14px 0 0;
  font-size: 28px;
  font-weight: 700;
}

.hero-subtitle {
  margin: 10px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 14px;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  min-width: 320px;
}

.hero-mini-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-mini-card strong {
  display: block;
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 700;
}

.hero-mini-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-height: 138px;
}

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

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary);
  background: rgba(26, 86, 219, 0.1);
}

.stat-change {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-data);
}

.stat-change.up {
  background: rgba(14, 159, 110, 0.12);
  color: var(--secondary);
}

.stat-value {
  font-family: var(--font-data);
  font-size: 30px;
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

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

.progress-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.progress-node {
  position: relative;
  min-width: 112px;
  display: grid;
  gap: 8px;
}

.progress-node::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(100% - 12px);
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26, 86, 219, 0.3), rgba(196, 209, 228, 0.8));
}

.progress-node:last-child::after {
  display: none;
}

.progress-marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid rgba(196, 209, 228, 0.9);
  background: #fff;
  color: var(--muted);
}

.progress-node.completed .progress-marker {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.progress-node.active .progress-marker {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 8px rgba(26, 86, 219, 0.12);
  animation: pulse 1.6s infinite;
}

.progress-node-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.lang-chart {
  display: grid;
  gap: 18px;
}

.lang-row {
  display: grid;
  grid-template-columns: 92px 1fr 52px;
  align-items: center;
  gap: 12px;
}

.lang-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}

.lang-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a56db 0%, #0e9f6e 100%);
}

.ring-wrap {
  display: grid;
  gap: 18px;
}

.ring-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ring {
  --percent: 60;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    conic-gradient(var(--primary) calc(var(--percent) * 1%), rgba(219, 229, 241, 0.8) 0);
  display: grid;
  place-items: center;
}

.ring::before {
  content: attr(data-label);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f8fd;
  color: var(--muted);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(219, 228, 240, 0.95);
  white-space: nowrap;
}

.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(237, 242, 248, 0.92);
  vertical-align: top;
}

.table tbody tr:hover {
  background: rgba(244, 248, 253, 0.9);
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: inherit;
  padding: 0;
}

.sort-arrow {
  font-size: 11px;
  color: #8aa0c1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

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

.chip-row,
.tag-grid,
.info-grid,
.metric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f4f8fd;
  border: 1px solid #dbe4f0;
  font-size: 13px;
}

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

.info-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(219, 228, 240, 0.95);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.info-item strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.info-item span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.review-grid {
  display: grid;
  gap: 16px;
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f6faff;
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

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

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

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  background: rgba(14, 159, 110, 0.12);
  color: var(--secondary);
}

.button.ghost {
  background: #f4f8fd;
  color: var(--text);
  border: 1px solid rgba(196, 209, 228, 0.9);
}

.button.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #a65d00;
}

.button.danger {
  background: rgba(224, 36, 36, 0.14);
  color: var(--danger);
}

.audio-player {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.audio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-button {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1a56db, #0e9f6e);
  color: #fff;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
}

.player-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #dbe4f0;
  overflow: hidden;
}

.player-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a56db, #0e9f6e);
  transition: width 0.25s linear;
}

.audio-player.playing .player-fill {
  animation: audio-progress 4.4s linear infinite;
}

.player-time {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
}

.stars {
  display: inline-flex;
  gap: 4px;
  color: #f5b400;
  letter-spacing: 0.08em;
}

.wave-panel {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0f1b35, #12295a);
  color: #fff;
}

.wave-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 120px;
  padding: 0 8px;
}

.wave-bar {
  flex: 1;
  min-width: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #56ccf2, #1a56db);
  animation: wave 1.6s ease-in-out infinite;
  transform-origin: bottom;
}

.wave-bar:nth-child(2n) {
  animation-duration: 1.9s;
}

.wave-bar:nth-child(3n) {
  animation-duration: 1.3s;
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mini-kpi {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-kpi strong {
  display: block;
  font-family: var(--font-data);
  font-size: 22px;
}

.mini-kpi span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 1.1fr 110px 1.4fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(219, 228, 240, 0.92);
  background: #fbfdff;
}

.workbench {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(196, 209, 228, 0.9);
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
}

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

.score-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(219, 228, 240, 0.95);
}

.score-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.score-card strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.checkbox-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.checkbox-tag {
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(219, 228, 240, 0.95);
  font-size: 13px;
}

.textarea-demo {
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(196, 209, 228, 0.9);
  background: #fff;
  color: var(--muted);
  resize: none;
}

.file-tree {
  padding: 18px 20px;
  border-radius: 20px;
  background: #0f172a;
  color: #d9e6ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.flow-grid {
  display: grid;
  gap: 24px;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.flow-card {
  position: relative;
  min-height: 180px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(196, 209, 228, 0.9);
  background: linear-gradient(180deg, #ffffff, #f6faff);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.flow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 86, 219, 0.48);
  box-shadow: 0 16px 38px rgba(26, 86, 219, 0.12);
}

.flow-card.active {
  background: linear-gradient(180deg, rgba(26, 86, 219, 0.12), rgba(14, 159, 110, 0.08));
  border-color: rgba(26, 86, 219, 0.55);
}

.flow-card::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #8aa0c1;
}

.flow-row:last-child .flow-card:nth-child(5)::after,
.flow-row:first-child .flow-card:nth-child(5)::after {
  display: none;
}

.flow-footer-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c87ad;
  font-size: 30px;
}

.loop-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.loop-node {
  padding: 16px 12px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  border: 1px solid rgba(219, 228, 240, 0.95);
  font-weight: 600;
}

.loop-arrow {
  text-align: center;
  font-size: 28px;
  color: #7b91b1;
}

.big-progress {
  display: grid;
  gap: 18px;
}

.big-progress-bar {
  position: relative;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf6;
}

.big-progress-stack {
  display: flex;
  height: 100%;
}

.segment-accepted {
  background: linear-gradient(90deg, #0e9f6e, #44d4a4);
}

.segment-fixing {
  background: linear-gradient(90deg, #f59e0b, #f8b84d);
}

.segment-delivered {
  background: linear-gradient(90deg, #1a56db, #5e8ef2);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.footer-bar {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  border-top: 1px solid rgba(196, 209, 228, 0.74);
  color: var(--muted);
  font-size: 12px;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(245, 248, 253, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.page-loader.visible {
  display: grid;
}

.loader-box {
  width: 220px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 209, 228, 0.9);
}

.loader-shimmer {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbe4f0 10%, #edf2f8 32%, #dbe4f0 54%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  margin-top: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  z-index: 120;
}

.modal-card {
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.24);
}

.modal-card h3 {
  margin: 0;
  font-size: 20px;
}

.modal-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-data);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(26, 86, 219, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(26, 86, 219, 0.06);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes audio-progress {
  0% {
    width: 8%;
  }
  100% {
    width: 100%;
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.38);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 1360px) {
  .stats-grid,
  .flow-row,
  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .topbar {
    padding: 0 18px;
  }

  .page-wrap,
  .footer-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 720px) {
  .stats-grid,
  .three-col,
  .flow-row,
  .mini-kpis,
  .score-grid,
  .info-grid,
  .loop-flow {
    grid-template-columns: 1fr;
  }

  .hero-banner,
  .section-header,
  .audio-top,
  .wave-header,
  .footer-bar,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    width: 100%;
    min-width: 0;
  }

  .check-item {
    grid-template-columns: 1fr;
  }
}
