body {
  background: #f2f4f7;
}

.app {
  grid-template-columns: 240px minmax(0, 1fr);
}

.sidebar {
  padding: 14px 12px 0;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(200, 32, 46, 0.18), transparent 22%),
    linear-gradient(180deg, #07111d 0%, #091424 52%, #07111d 100%);
}

.logo {
  gap: 12px;
  padding: 0 4px 10px;
}

.logo b,
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.logo span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-release {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-release .release-version {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c11228, #a10e21);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.sidebar-release .release-date {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-release .release-date small {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
}

.sidebar-release .release-date strong {
  font-size: 13px;
  line-height: 1.35;
}

.nav {
  gap: 12px;
}

.nav button {
  gap: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.nav button.active {
  background: linear-gradient(135deg, #ba1128, #9f0f22);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 22px rgba(159, 15, 34, 0.35);
}

.nav button .nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.ui-icon {
  width: 18px;
  height: 18px;
}

.side-user {
  padding: 16px 8px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.side-user .logout {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
}

.app-main {
  padding: 0 0 42px;
  background: #f2f4f7;
}

.top {
  margin-bottom: 26px;
  padding: 26px 34px 18px;
  background: #fff;
  border-bottom: 1px solid rgba(23, 33, 47, 0.1);
}

.top h1 {
  font-size: clamp(28px, 4vw, 30px);
}

.content {
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  padding: 24px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #8f0d1d 0%, #b01328 62%, #c72b40 100%);
  box-shadow: none;
}

.hero-value {
  min-width: 150px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.stats,
.log-summary,
.score-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat,
.log-stat,
.average-card {
  position: relative;
  padding: 22px;
  border: 1px solid #d7dde6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.stat .stat-icon {
  position: absolute;
  top: 14px;
  right: 16px;
}

.stat-icon,
.record-icon,
.timeline-dot,
.state-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.card {
  border: 1px solid #d7dde6;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.card-body,
.process-table,
.average-card,
.record,
.timeline-body,
.timeline-item,
dialog {
  padding: 20px;
}

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

.task,
.benefit-row,
.aspect-item,
.timeline-item,
.record,
.clipboard-bar,
.table-box {
  border: 1px solid #d7dde6;
  border-radius: 14px;
  background: #fff;
}

.task,
.benefit-row,
.aspect-item,
.timeline-item,
.record,
.clipboard-bar {
  padding: 16px;
}

.table-box {
  overflow: auto;
}

thead th {
  color: #5b6b82;
  background: #eef2f6;
}

tbody tr:nth-child(odd) {
  background: #fff;
}

tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.event-type {
  color: #9f0f22;
  font-weight: 700;
}

.empty {
  padding: 56px 24px;
  border: 1px dashed #bac5d3;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.benefits {
  padding: 14px;
  border-radius: 14px;
  background: #f6f7f9;
}

.benefits h4,
.process-table h3 {
  margin: 0 0 14px;
}

.catalog-task {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.catalog-task .task-actions,
.benefit-row .task-actions {
  flex-wrap: nowrap;
}

.mini-btn {
  border-radius: 10px;
}

@media (max-width: 1080px) {
  .content {
    padding: 0 18px;
  }

  .stats,
  .log-summary,
  .score-overview,
  .grid {
    grid-template-columns: 1fr;
  }
}
