:root {
  --radius-control: 10px;
  --radius-menu: 14px;
  --radius-card: 16px;
  --shadow-control: 0 8px 20px rgba(18, 55, 85, 0.14);
  --shadow-card: 0 14px 36px rgba(25, 55, 86, 0.08);
  --shadow-card-hover: 0 20px 44px rgba(25, 55, 86, 0.12);
  --ease-refined: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header .header-inner {
  width: calc(100% - 48px);
  max-width: 1440px;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 24%, rgba(72, 184, 209, 0.2), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(47, 115, 206, 0.2), transparent 30%),
    linear-gradient(110deg, rgba(9, 42, 72, 0.97), rgba(18, 105, 133, 0.88)),
    #123f70;
}

.auth-header {
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-block: 56px;
}

.auth-intro {
  max-width: 600px;
  color: #fff;
}

.auth-intro h1 {
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.2;
}

.auth-intro p {
  color: #d7eaf3;
  font-size: 18px;
}

.auth-card {
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 28px 80px rgba(2, 22, 40, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 500;
}

.auth-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-field {
  margin-bottom: 17px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.form-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #ccd7df;
  border-radius: var(--radius-control);
  background: #fbfcfd;
  outline: 0;
  transition:
    border-color var(--ease-refined),
    box-shadow var(--ease-refined),
    background var(--ease-refined);
}

.form-field input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 115, 206, 0.12);
}

.form-error {
  min-height: 22px;
  margin: 5px 0 8px;
  color: #bb2d3b;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: 0 8px 20px rgba(47, 115, 206, 0.2);
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
}

.auth-switch a {
  color: var(--brand);
}

.auth-nav-slot {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-left: 4px;
}

.auth-login-link,
.auth-workspace-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-control);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(47, 115, 206, 0.18);
  white-space: nowrap;
  transition:
    color var(--ease-refined),
    background var(--ease-refined),
    box-shadow var(--ease-refined),
    transform var(--ease-refined);
}

.main-nav .auth-login-link:hover,
.main-nav .auth-workspace-link:hover,
.auth-login-link:hover,
.auth-workspace-link:hover {
  color: #fff;
  background: var(--brand-dark);
  box-shadow: var(--shadow-control);
  transform: translateY(-1px);
}

.main-nav .auth-workspace-link {
  align-self: center;
  height: 40px;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid #d4e2f2;
  border-radius: 12px;
  color: var(--ink);
  background: #f2f7fd;
  box-shadow: none;
  font-size: 15px;
  font-weight: 400;
}

.main-nav .auth-workspace-link::after {
  display: none;
}

.main-nav .auth-workspace-link:hover {
  border-color: #bfd3ea;
  color: var(--ink);
  background: #e7f0fb;
  box-shadow: 0 7px 18px rgba(35, 84, 126, 0.1);
  transform: translateY(-1px);
}

.auth-user-button {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: 8px;
  border: 1px solid rgba(47, 115, 206, 0.15);
  border-radius: 50%;
  color: var(--brand-dark);
  background: var(--brand-light);
  box-shadow: 0 4px 12px rgba(25, 55, 86, 0.08);
  place-items: center;
  transition:
    border-color var(--ease-refined),
    box-shadow var(--ease-refined),
    transform var(--ease-refined);
}

.auth-user-button:hover {
  border-color: rgba(47, 115, 206, 0.34);
  box-shadow: var(--shadow-control);
  transform: translateY(-1px);
}

.auth-user-menu {
  position: absolute;
  top: 62px;
  right: 0;
  display: none;
  width: 170px;
  padding: 8px;
  border: 1px solid rgba(197, 211, 222, 0.72);
  border-radius: var(--radius-menu);
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 46, 71, 0.16);
  overflow: hidden;
}

.auth-user-menu.open {
  display: grid;
}

.auth-user-menu a,
.auth-user-menu button {
  height: auto;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: color var(--ease-refined), background var(--ease-refined);
}

.auth-user-menu a:hover,
.auth-user-menu button:hover {
  color: var(--brand-dark);
  background: var(--brand-light);
}

.workspace-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(47, 115, 206, 0.08), transparent 30%),
    radial-gradient(circle at 28% 92%, rgba(72, 184, 209, 0.06), transparent 28%),
    #eef3f7;
}

.workspace-top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  border-bottom: 1px solid rgba(215, 226, 234, 0.82);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 20px rgba(25, 55, 86, 0.04);
  backdrop-filter: blur(16px);
}

.workspace-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.workspace-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.workspace-user a {
  color: var(--muted);
  font-size: 14px;
}

.workspace-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 700;
  box-shadow:
    0 5px 14px rgba(25, 55, 86, 0.08),
    inset 0 0 0 1px rgba(47, 115, 206, 0.12);
  place-items: center;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.workspace-sidebar {
  padding: 24px 15px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 8%, rgba(72, 184, 209, 0.12), transparent 25%),
    linear-gradient(180deg, #202f3b, #1d2933);
}

.workspace-nav-label {
  margin: 8px 14px 14px;
  color: #6f8493;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.workspace-sidebar a,
.workspace-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius-control);
  color: #aebbc4;
  background: transparent;
  font-size: 15px;
  text-align: left;
  transition:
    color var(--ease-refined),
    background var(--ease-refined),
    box-shadow var(--ease-refined),
    transform var(--ease-refined);
}

.workspace-sidebar a:hover,
.workspace-sidebar a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(47, 115, 206, 0.34), rgba(47, 115, 206, 0.08));
  box-shadow: inset 3px 0 0 #48b8d1;
  transform: translateX(2px);
}

.workspace-logout:hover {
  color: #ffd8d8;
  background: rgba(185, 56, 69, 0.16);
}

.workspace-main {
  min-width: 0;
  padding: 34px;
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.workspace-heading h1 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 500;
}

.workspace-heading p {
  margin: 0;
  color: var(--muted);
}

.status-chip,
.mock-chip {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid rgba(35, 115, 78, 0.1);
  border-radius: 999px;
  color: #23734e;
  background: #e5f6ed;
  font-size: 12px;
}

.mock-chip {
  border-color: rgba(135, 92, 29, 0.1);
  color: #875c1d;
  background: #fff2d8;
}

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

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

.workspace-card {
  padding: 24px;
  border: 1px solid #dfe7ed;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--ease-refined),
    box-shadow var(--ease-refined),
    border-color var(--ease-refined);
}

.workspace-card:hover {
  border-color: #ccdbe6;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.workspace-card h2,
.workspace-card h3 {
  margin: 0 0 15px;
  font-size: 19px;
  font-weight: 500;
}

.workspace-card p {
  color: var(--muted);
}

.workspace-card.full {
  grid-column: 1 / -1;
}

.badge-list {
  display: grid;
  gap: 12px;
}

.badge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-menu);
  background: linear-gradient(135deg, #fff, #fbfdff);
  transition:
    border-color var(--ease-refined),
    box-shadow var(--ease-refined),
    transform var(--ease-refined);
}

.badge-item:hover {
  border-color: #c6d8e6;
  box-shadow: 0 10px 24px rgba(25, 55, 86, 0.07);
  transform: translateY(-1px);
}

.badge-item strong,
.badge-item small {
  display: block;
}

.badge-item small {
  color: var(--muted);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.inline-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ccd7df;
  border-radius: var(--radius-control);
  background: #fbfcfd;
  outline: 0;
  transition:
    border-color var(--ease-refined),
    box-shadow var(--ease-refined),
    background var(--ease-refined);
}

.inline-form input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 115, 206, 0.12);
}

.data-list {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-menu);
}

.data-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.data-row span:first-child {
  color: var(--muted);
}

.empty-state {
  padding: 48px 24px;
  border: 1px dashed #bfd0dd;
  border-radius: var(--radius-menu);
  color: var(--muted);
  background: linear-gradient(135deg, #f9fbfc, #f4f8fb);
  text-align: center;
}

.workspace-page .button,
.auth-page .button {
  border-radius: var(--radius-control);
  box-shadow: 0 7px 18px rgba(47, 115, 206, 0.16);
}

:where(a, button, input):focus-visible {
  outline: 3px solid rgba(72, 184, 209, 0.42);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .auth-intro {
    display: none;
  }

  .auth-card {
    width: min(100%, 480px);
    margin: auto;
  }

  .auth-nav-slot {
    align-self: auto;
    margin-top: 14px;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    overflow-x: auto;
  }

  .workspace-nav-label,
  .workspace-sidebar .workspace-account-label {
    display: none;
  }

  .workspace-sidebar a,
  .workspace-logout {
    flex: none;
    width: auto;
    margin: 0;
    border-bottom: 2px solid transparent;
    border-left: 0;
    border-radius: 8px;
  }

  .workspace-sidebar a.active {
    border-bottom-color: #48b8d1;
    border-left: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    width: calc(100% - 32px);
  }

  .workspace-main {
    padding: 22px 16px;
  }

  .workspace-grid,
  .workspace-grid.three {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* 服务分析数据驾驶舱 */
.service-dashboard {
  --service-metric-value-size: 23px;
}

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

.service-score-card {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #dce6ed;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 115, 206, 0.055), transparent 56%),
    #fff;
  box-shadow: 0 10px 28px rgba(27, 55, 82, 0.055);
}

.service-score-card > span {
  color: var(--muted);
  font-size: 13px;
}

.service-score-card > strong {
  color: #183e65;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.service-score-card > small {
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
}

.service-score-card .trend-up {
  color: #27805d;
}

.service-score-card > i {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef4;
}

.service-score-card > i::after {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #5baed1);
  content: "";
}

.service-score-card.warning > i::after {
  background: linear-gradient(90deg, #d3942f, #e7b758);
}

.service-analysis-block {
  margin-top: 18px;
  padding: 26px;
}

.service-value-chip {
  padding: 8px 12px;
  border: 1px solid #cfe0ed;
  border-radius: 999px;
  color: #235d89;
  background: #eef6fc;
  font-size: 12px;
  font-weight: 700;
}

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

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

.experience-factor-grid-wide {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #d8e5ef;
  border-radius: 15px;
  background: linear-gradient(135deg, #f2f7fc, #fbfdff);
}

.experience-factor-grid article {
  display: grid;
  align-content: center;
  min-height: 88px;
  padding: 11px;
  border: 1px solid #e0e9ef;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
}

.experience-factor-grid article > span,
.experience-factor-grid article > small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.experience-factor-grid strong {
  margin: 5px 0 2px;
  color: #214e75;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--service-metric-value-size);
  font-variant-numeric: tabular-nums;
}

.experience-factor-grid strong span,
.experience-factor-grid small span {
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}

.service-chart-card,
.service-contribution-card,
.service-donut-card {
  padding: 18px;
  border: 1px solid #e0e8ee;
  border-radius: 15px;
  background: #f9fbfd;
}

.service-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.service-chart-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.service-chart-heading span {
  color: var(--muted);
  font-size: 11px;
}

.service-line-chart {
  display: block;
  width: 100%;
  min-height: 240px;
}

.chart-grid-lines line {
  stroke: #dfe8ee;
  stroke-width: 1;
}

.chart-area {
  fill: url("#ecs-area");
}

.chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.chart-point {
  fill: var(--brand);
  stroke: #fff;
  stroke-width: 3;
}

.chart-axis-labels {
  fill: #8292a0;
  font-size: 11px;
}

.chart-current-value {
  fill: #183e65;
  font-size: var(--service-metric-value-size);
  font-weight: 800;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.service-radar-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(190px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 240px;
}

.service-radar {
  width: 100%;
  max-height: 220px;
}

.experience-event-table {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e0e8ee;
  border-radius: 15px;
  background: #f9fbfd;
}

.experience-event-table > div:not(.service-chart-heading) {
  display: grid;
  grid-template-columns: 1.1fr 1fr 90px 100px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-top: 1px solid #e8eef2;
  color: var(--muted);
  font-size: 11px;
}

.experience-event-table .experience-event-head {
  min-height: 34px;
  border-top: 0;
  color: #718696;
  background: #eef4f8;
  font-size: 9px;
}

.experience-event-table strong {
  color: var(--ink);
  font-weight: 600;
}

.experience-event-table b {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}

.experience-event-table .positive { color: #27805d; }
.experience-event-table .negative { color: #b05f4a; }

.radar-grid-line {
  fill: none;
  stroke: #d6e2eb;
  stroke-width: 1.4;
}

.radar-data-shape {
  fill: rgba(47, 115, 206, 0.22);
  stroke: var(--brand);
  stroke-width: 2.5;
}

.service-metric-list {
  display: grid;
  gap: 12px;
}

.service-metric-list > div,
.service-contribution-bars > div {
  display: grid;
  grid-template-columns: 78px 1fr minmax(52px, auto);
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.service-metric-list i,
.service-contribution-bars i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf1;
}

.service-metric-list i b,
.service-contribution-bars i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #67b4d5);
}

.service-metric-list strong,
.service-contribution-bars strong {
  color: #25445f;
  text-align: right;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--service-metric-value-size);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.service-metric-list strong span,
.service-contribution-bars strong span {
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}

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

.service-party-data-grid article {
  display: grid;
  align-content: center;
  min-height: 142px;
  padding: 16px;
  border: 1px solid #e1e9ef;
  border-radius: 13px;
  background: #f8fbfd;
}

.service-party-data-grid article > span,
.service-party-data-grid article > small {
  color: var(--muted);
  font-size: 10px;
}

.service-party-data-grid strong {
  margin: 7px 0 5px;
  color: #1e405f;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--service-metric-value-size);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.service-party-data-grid strong span {
  display: inline;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
  font-variant-numeric: inherit;
}

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

.emotional-labor-panel {
  padding: 16px;
  border: 1px solid #e0e8ee;
  border-radius: 15px;
  background: #f9fbfd;
}

.emotional-labor-panel h3 {
  margin: 0 0 10px;
  color: #36546c;
  font-size: 11px;
  font-weight: 650;
}

.service-quality-grid article {
  display: grid;
  align-content: center;
  min-height: 142px;
  padding: 16px;
  border: 1px solid #e1e9ef;
  border-radius: 13px;
  background: #f8fbfd;
}

.service-quality-grid article > span,
.service-quality-grid article > small {
  color: var(--muted);
  font-size: 10px;
}

.service-quality-grid strong {
  margin: 7px 0 5px;
  color: #1e405f;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--service-metric-value-size);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.service-quality-grid strong span {
  display: inline;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
  font-variant-numeric: inherit;
}

.emotion-consistency-grid,
.service-attribution-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.emotion-consistency-grid article,
.service-attribution-methods article {
  padding: 15px;
  border: 1px solid #e0e8ee;
  border-radius: 12px;
  background: #f8fbfd;
}

.emotion-consistency-grid article > span,
.service-attribution-methods article > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.emotion-consistency-grid strong,
.service-attribution-methods strong {
  display: block;
  margin: 7px 0 4px;
  color: #1f486d;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--service-metric-value-size);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.emotion-consistency-grid strong span,
.service-attribution-methods strong span {
  display: inline;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
  font-variant-numeric: inherit;
}

.emotion-consistency-grid p,
.service-attribution-methods article > small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.emotion-consistency-grid p [data-sa] {
  display: inline;
  color: #1f486d;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--service-metric-value-size);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.service-alert-list {
  margin-top: 14px;
  border-top: 1px solid #e4ebf0;
}

.service-alert-list article {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #edf1f4;
  font-size: 12px;
}

.service-alert-list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.service-alert-list strong { padding: 5px 8px; border-radius: 999px; font-size: 10px; }
.service-alert-list .attention { color: #90631c; background: #fff2dc; }
.service-alert-list .resolved { color: #287856; background: #e8f6ef; }

.service-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-outcome-grid article {
  padding: 18px;
  border-top: 4px solid var(--brand);
  border-radius: 4px 4px 14px 14px;
  background: #f8fbfd;
}

.service-outcome-grid article > span { color: var(--muted); font-size: 10px; }
.service-outcome-grid strong {
  display: block;
  margin: 8px 0 4px;
  color: #183e65;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--service-metric-value-size);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.service-outcome-grid strong span {
  display: inline;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
  font-variant-numeric: inherit;
}
.service-outcome-grid h3 { margin: 0 0 12px; font-size: 13px; }
.service-outcome-grid i { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #e3ebf1; }
.service-outcome-grid i b { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.service-outcome-grid small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }

.service-attribution-grid {
  margin-top: 16px;
}

.service-contribution-bars {
  display: grid;
  gap: 16px;
  padding: 8px 0 4px;
}

.service-donut-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.service-donut {
  --service-share: 0%;
  display: grid;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 var(--service-share), #a9c4da var(--service-share) 100%);
  place-items: center;
}

.service-donut::before {
  grid-area: 1 / 1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.service-donut span {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.service-donut span strong { color: #183e65; font-size: 24px; }
.service-donut-card p { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.service-donut-card p strong { margin-left: auto; color: var(--ink); }
.service-donut-card small { color: #2b7d5b; }
.service-donut-card p i { width: 9px; height: 9px; border-radius: 3px; }
.service-dot { background: var(--brand); }
.user-dot { background: #a9c4da; }

.service-dashboard.is-empty .service-score-card > strong,
.service-dashboard.is-empty .experience-factor-grid strong,
.service-dashboard.is-empty .service-party-data-grid strong,
.service-dashboard.is-empty .service-quality-grid strong,
.service-dashboard.is-empty .service-outcome-grid strong {
  color: #8aa0b5;
}

.service-live-panel {
  margin-bottom: 18px;
}

.service-live-form {
  display: grid;
  gap: 16px;
}

.service-badge-audio {
  display: grid;
  gap: 12px;
}

.service-badge-audio .hardware-filter-form {
  margin: 0;
}

.service-recording-picker {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding: 4px;
}

.service-recording-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d7e4ef;
  border-radius: 12px;
  background: #f8fbfe;
  cursor: pointer;
}

.service-recording-option:has(input:checked) {
  border-color: #2f73ce;
  background: #eef5ff;
}

.service-recording-option input {
  margin: 0;
}

.service-recording-option audio {
  width: 160px;
  max-width: 28vw;
  height: 32px;
}

.service-selected-recording {
  margin: 0;
  color: #235d89;
  font-size: 13px;
  font-weight: 600;
}

.service-local-uploads {
  border: 1px solid #d7e4ef;
  border-radius: 14px;
  background: #f8fbfe;
  padding: 10px 14px;
}

.service-local-uploads > summary {
  cursor: pointer;
  color: #235d89;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.service-local-uploads > summary::-webkit-details-marker {
  display: none;
}

.service-local-uploads[open] > summary {
  margin-bottom: 12px;
}

.service-live-uploads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-upload-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed #c9d8e6;
  border-radius: 14px;
  background: #f7fbff;
  cursor: pointer;
}

.service-upload-card > span {
  color: #235d89;
  font-size: 13px;
  font-weight: 650;
}

.service-upload-card input[type="file"] {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}

.service-upload-card small {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.service-live-text {
  display: grid;
  gap: 8px;
}

.service-live-text > span {
  color: var(--muted);
  font-size: 13px;
}

.service-live-text textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid #d5e1ec;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}

.service-live-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.service-live-actions .button {
  min-width: 118px;
}

.service-live-clear {
  background: #fff !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.service-live-actions small {
  color: var(--muted);
  font-size: 12px;
}

.service-live-result {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #d8e6f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 48%);
}

.service-live-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.service-live-result-head strong {
  color: #183e65;
  font-size: 15px;
}

.service-live-result-head span {
  color: var(--muted);
  font-size: 12px;
}

.service-live-result-body {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.75;
}

.service-live-result-body h3 {
  margin: 1.1em 0 0.45em;
  color: #183e65;
  font-size: 16px;
}

.service-live-result-body h3:first-child {
  margin-top: 0;
}

.service-live-result-body p {
  margin: 0.35em 0;
}

.service-live-result-body ul {
  margin: 0.35em 0 0.55em;
  padding-left: 1.2em;
}

.service-live-result-body li {
  margin: 0.2em 0;
}

.service-live-result-body strong {
  font-weight: 650;
}

.service-live-result.is-loading .service-live-result-body,
.service-live-result.is-idle .service-live-result-body {
  color: var(--muted);
}

.service-live-result.is-error {
  border-color: #efc4c4;
  background: #fff8f8;
}

.service-live-result.is-error .service-live-result-body {
  color: #9a3b3b;
}

@media (max-width: 1050px) {
  .service-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-live-uploads {
    grid-template-columns: 1fr;
  }

  .service-recording-option {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .service-recording-option audio {
    grid-column: 2 / -1;
    width: 100%;
    max-width: none;
  }

  .service-chart-grid,
  .service-state-grid,
  .service-attribution-grid {
    grid-template-columns: 1fr;
  }

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

  .emotion-consistency-grid,
  .service-attribution-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .service-score-grid,
  .service-quality-grid,
  .service-party-data-grid,
  .service-outcome-grid,
  .experience-factor-grid,
  .emotion-consistency-grid,
  .service-attribution-methods,
  .service-live-uploads {
    grid-template-columns: 1fr;
  }

  .service-analysis-block {
    padding: 20px 16px;
  }

  .service-radar-layout,
  .service-donut-card {
    grid-template-columns: 1fr;
  }

  .service-donut {
    margin: 0 auto;
  }

  .service-alert-list article {
    grid-template-columns: 1fr;
  }

  .experience-event-table {
    overflow-x: auto;
  }

  .experience-event-table > div:not(.service-chart-heading) {
    min-width: 620px;
  }
}

/* 消费倾向完整数据页 */
.consumption-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.consumption-kpi-grid article {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid #dce6ed;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 115, 206, 0.055), transparent 58%),
    #fff;
  box-shadow: 0 10px 28px rgba(27, 55, 82, 0.055);
}

.consumption-kpi-grid span {
  color: var(--muted);
  font-size: 13px;
}

.consumption-kpi-grid strong {
  color: #183e65;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.consumption-kpi-grid small {
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
}

.consumption-kpi-grid .trend-up { color: #27805d; }
.consumption-kpi-grid .trend-down { color: #aa7131; }

.consumption-kpi-grid article > i,
.consumption-progress-list i {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5edf3;
}

.consumption-kpi-grid article > i b,
.consumption-progress-list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #61acd0);
}

.consumption-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.consumption-chart-card,
.consumption-section {
  padding: 24px;
}

.consumption-section {
  margin-top: 18px;
}

.consumption-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.consumption-card-heading h2,
.consumption-card-heading h3 {
  margin: 0;
  color: var(--ink);
}

.consumption-card-heading h2 { font-size: 17px; }
.consumption-card-heading h3 { font-size: 14px; }

.consumption-card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.consumption-card-heading > span {
  color: #2b7d5b;
  font-size: 11px;
}

.consumption-trend-chart {
  display: block;
  width: 100%;
  min-height: 260px;
}

.consumption-area {
  fill: url("#consumption-area");
}

.consumption-donut-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(170px, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 260px;
}

.consumption-group-donut {
  display: grid;
  width: 180px;
  height: 180px;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(
    #2f73ce 0 36%,
    #5598cf 36% 64%,
    #87b6db 64% 84%,
    #c1d8ea 84% 100%
  );
  place-items: center;
}

.consumption-group-donut::before {
  grid-area: 1 / 1;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.consumption-group-donut span {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.consumption-group-donut strong {
  color: #183e65;
  font-size: 24px;
}

.consumption-legend {
  display: grid;
  gap: 12px;
}

.consumption-legend p {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.consumption-legend p i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.consumption-legend p strong { color: var(--ink); }
.group-one { background: #2f73ce; }
.group-two { background: #5598cf; }
.group-three { background: #87b6db; }
.group-four { background: #c1d8ea; }

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

.consumption-product-grid > article {
  padding: 18px;
  border: 1px solid #e0e8ee;
  border-radius: 15px;
  background: #f9fbfd;
}

.consumption-progress-list {
  display: grid;
  gap: 16px;
}

.consumption-progress-list > div {
  display: grid;
  grid-template-columns: 72px 1fr 40px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.consumption-progress-list strong {
  color: #21415e;
  text-align: right;
}

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

.price-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.price-legend span:last-child i {
  background: #b6c8d5;
}

.consumption-price-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
  padding: 20px 8px 0;
  border-bottom: 1px solid #dce5ec;
}

.consumption-price-chart > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 18px 145px 24px;
  gap: 5px;
  align-items: end;
  height: 190px;
  text-align: center;
}

.consumption-price-chart > div > span,
.consumption-price-chart > div > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
}

.consumption-price-chart > div > i {
  width: 70%;
  margin: 0 auto;
  border-radius: 5px 5px 0 0;
}

.consumption-price-chart .current {
  background: linear-gradient(180deg, #4d91ce, var(--brand));
}

.consumption-price-chart .market {
  background: #b8cad7;
}

.consumption-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.consumption-insight-grid article {
  display: grid;
  gap: 8px;
  padding: 17px;
  border-left: 4px solid var(--brand);
  border-radius: 4px 13px 13px 4px;
  background: #f6f9fc;
}

.consumption-insight-grid article > span {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: #285f8d;
  background: #e5f0fa;
  font-size: 9px;
}

.consumption-insight-grid strong {
  color: #21415e;
  font-size: 14px;
}

.consumption-insight-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.consumption-insight-grid small {
  color: #2b7d5b;
  font-size: 10px;
}

.consumption-profile-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
}

.consumption-profile-card {
  display: grid;
  align-content: start;
  padding: 24px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(110, 196, 222, 0.36), transparent 30%),
    linear-gradient(145deg, #173e66, var(--brand));
}

.consumption-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  font-weight: 800;
  place-items: center;
}

.consumption-profile-card h3 {
  margin: 14px 0 4px;
}

.consumption-profile-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.consumption-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.consumption-profile-tags span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
}

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

.consumption-summary-grid article {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid #e1e9ef;
  border-radius: 13px;
  background: #f8fbfd;
}

.consumption-summary-grid span,
.recent-order-list small {
  color: var(--muted);
  font-size: 10px;
}

.consumption-summary-grid strong {
  color: #1e405f;
  font-size: 18px;
}

.recent-order-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.recent-order-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f6f9fc;
}

.recent-order-list article div {
  display: grid;
  gap: 3px;
}

.recent-order-list article > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.consumption-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) 120px;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce6ed;
  border-radius: 15px;
  background: #f8fbfd;
}

.consumption-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.consumption-filter-bar input,
.consumption-filter-bar select {
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #ccd9e2;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}

.consumption-filter-bar .button {
  align-self: end;
  min-height: 42px;
}

.consumption-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid #e0e8ed;
  border-radius: 13px;
}

.consumption-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.consumption-table th {
  padding: 12px 14px;
  color: var(--muted);
  background: #f6f9fb;
  font-size: 10px;
  font-weight: 600;
}

.consumption-table td {
  padding: 13px 14px;
  border-top: 1px solid #edf1f4;
  color: #345068;
  font-size: 11px;
}

.consumption-table td:first-child {
  display: grid;
  gap: 3px;
}

.consumption-table td:first-child strong {
  color: var(--ink);
}

.consumption-table td:first-child small {
  color: var(--muted);
}

.consumption-table tbody tr:hover {
  background: #f9fbfd;
}

.table-tag {
  padding: 4px 7px;
  border-radius: 999px;
  color: #285f8d;
  background: #e8f2fa;
  font-size: 9px;
}

.propensity-high { color: #247755; }
.propensity-medium { color: #9b6a21; }
.propensity-watch { color: #607486; }

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

.consumption-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.consumption-pagination div {
  display: flex;
  gap: 5px;
}

.consumption-pagination button {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid #d6e1e9;
  border-radius: 7px;
  color: #536b7e;
  background: #fff;
  place-items: center;
}

.consumption-pagination button.active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

@media (max-width: 1050px) {
  .consumption-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consumption-overview-grid,
  .consumption-product-grid,
  .consumption-profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .consumption-kpi-grid,
  .consumption-insight-grid,
  .consumption-summary-grid,
  .consumption-filter-bar {
    grid-template-columns: 1fr;
  }

  .consumption-chart-card,
  .consumption-section {
    padding: 20px 16px;
  }

  .consumption-donut-layout {
    grid-template-columns: 1fr;
  }

  .consumption-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .consumption-filter-bar .button {
    width: 100%;
  }
}

/* Refined workspace content components */
.component-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.component-heading.compact {
  margin-bottom: 20px;
}

.component-heading h2 {
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: 21px;
}

.component-heading p {
  margin: 0;
  font-size: 14px;
}

.component-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.component-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 115, 206, 0.14);
  border-radius: 13px;
  color: var(--brand);
  background: linear-gradient(145deg, #f4f9ff, #e9f3ff);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 23px;
  place-items: center;
}

.binding-panel,
.device-management-panel,
.recording-workbench,
.location-workbench,
.profile-panel {
  position: relative;
  overflow: hidden;
}

.binding-panel::before,
.recording-workbench::before,
.location-workbench::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 170px;
  border-radius: 0 0 0 100%;
  background: radial-gradient(circle at 100% 0, rgba(72, 184, 209, 0.1), transparent 68%);
  content: "";
  pointer-events: none;
}

.refined-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.refined-form .button {
  align-self: end;
  min-height: 44px;
}

.compact-filter {
  display: grid;
  gap: 5px;
  min-width: 190px;
  color: var(--muted);
  font-size: 11px;
}

.hardware-list {
  gap: 12px;
}

.hardware-item {
  grid-template-columns: minmax(240px, 1.45fr) minmax(165px, 0.9fr) minmax(125px, 0.7fr);
  padding: 18px;
  border-color: #dce6ed;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(47, 115, 206, 0.025), transparent 35%),
    #fff;
  cursor: pointer;
  transition: transform var(--ease-refined), border-color var(--ease-refined), box-shadow var(--ease-refined);
}

.hardware-item:hover {
  border-color: #bfd2e2;
  box-shadow: 0 14px 30px rgba(25, 55, 86, 0.08);
  transform: translateY(-2px);
}

.hardware-item:focus-visible {
  border-color: rgba(47, 115, 206, 0.55);
  outline: 3px solid rgba(72, 184, 209, 0.42);
  outline-offset: 3px;
  box-shadow: var(--shadow-card-hover);
}

.device-glyph,
.device-hero-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 48px;
  border: 1px solid rgba(47, 115, 206, 0.18);
  border-radius: 9px 9px 13px 13px;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(145deg, var(--brand), #225a9f);
  box-shadow: 0 8px 18px rgba(47, 115, 206, 0.2);
  font-size: 14px;
  font-weight: 700;
  place-items: center;
}

.hardware-item-main strong {
  color: var(--ink);
  font-size: 15px;
}

.hardware-meta {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.device-state-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #53636f;
  background: #eef2f5;
  font-size: 12px;
  font-weight: 600;
}

.device-state-label.online {
  color: #13764b;
  background: #e5f6ee;
}

.device-state-label.offline {
  color: #9b4c43;
  background: #f9ecea;
}

.device-state-label.large {
  padding: 8px 13px;
  font-size: 13px;
}

.device-status {
  display: inline-block;
  width: 7px;
  height: 7px;
}

.battery-cell {
  display: grid;
  min-width: 115px;
  gap: 7px;
}

.battery-cell > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.battery-cell strong {
  color: var(--ink);
}

.battery-track,
.score-track {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e5ecf1;
  overflow: hidden;
}

.battery-track i,
.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.rich-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.rich-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.rich-empty small {
  max-width: 420px;
}

.empty-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-light);
  font-size: 20px;
  place-items: center;
}

/* Device information */
.device-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid #d7e4ed;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(47, 115, 206, 0.08), transparent 38%),
    radial-gradient(circle at 92% 15%, rgba(72, 184, 209, 0.13), transparent 24%),
    #fff;
  box-shadow: var(--shadow-card);
  animation: component-rise 420ms both;
}

.device-title-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.device-title-line h1 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
}

.device-title-line p {
  margin: 0;
  color: var(--muted);
}

.device-overview-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.device-switcher {
  display: grid;
  min-width: 245px;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.device-switcher select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #cfdee9;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  outline: 0;
  box-shadow: 0 5px 14px rgba(25, 55, 86, 0.05);
}

.device-switcher select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 115, 206, 0.1);
}

.device-hero-glyph {
  width: 48px;
  height: 56px;
}

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

.device-metric {
  display: grid;
  min-height: 128px;
  align-content: space-between;
  padding: 18px;
  border: 1px solid #dfe8ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 55, 86, 0.045);
  animation: component-rise 420ms both;
}

.device-metric:nth-child(2) { animation-delay: 50ms; }
.device-metric:nth-child(3) { animation-delay: 100ms; }
.device-metric:nth-child(4) { animation-delay: 150ms; }

.device-metric > span:first-child,
.device-metric small {
  color: var(--muted);
  font-size: 12px;
}

.device-metric > strong {
  color: var(--brand-dark);
  font-size: 23px;
  font-weight: 500;
}

.device-metric .metric-time {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.device-capability-panel {
  margin-bottom: 18px;
}

.capability-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.capability-tile-grid article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.capability-tile-grid article > span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 19px;
  place-items: center;
}

.capability-tile-grid article div {
  display: grid;
  gap: 3px;
}

.capability-tile-grid small {
  opacity: 0.78;
}

.device-action-zone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #dfe8ee;
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(47, 115, 206, 0.04), transparent 42%),
    #f9fbfd;
}

.action-zone-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  align-items: center;
}

.action-zone-heading .component-kicker {
  grid-column: 1 / -1;
}

.action-zone-heading strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.action-zone-heading small {
  color: var(--muted);
  font-size: 12px;
}

.device-action-zone .command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.command-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  gap: 9px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  transition: transform var(--ease-refined), border-color var(--ease-refined), background var(--ease-refined), color var(--ease-refined);
}

.command-button:hover {
  border-color: var(--brand);
  background: #edf5ff;
  transform: translateY(-1px);
}

.command-button.is-caution {
  border-color: #ead4cf;
  color: #9a4f45;
  background: #fff8f6;
}

.command-button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.command-button.is-unavailable,
.command-button.is-unavailable:hover {
  cursor: not-allowed;
  opacity: 0.42;
  border-color: #d5dee6;
  color: #8a97a5;
  background: #f4f7fa;
  transform: none;
}

.record-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border-color: #c8d7e6;
  background:
    radial-gradient(circle at 18% 30%, #ffffff 0%, transparent 34%),
    linear-gradient(180deg, #f7fbff, #e8f1f9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(25, 55, 86, 0.12);
}

.record-toggle-button .command-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.record-toggle-button:hover {
  border-color: var(--brand);
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, transparent 42%),
    linear-gradient(180deg, #edf5ff, #dceaf8);
}

.record-toggle-button.is-recording {
  border-color: #d9a09a;
  background:
    radial-gradient(circle at 35% 30%, #fff8f6 0%, transparent 42%),
    linear-gradient(180deg, #fff1ee, #f6ddd8);
}

.record-toggle-button .record-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.record-toggle-button .record-toggle-icon.is-idle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #2f73ce;
}

.record-toggle-button .record-toggle-icon.is-recording::before,
.record-toggle-button .record-toggle-icon.is-recording::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 16px;
  border-radius: 1px;
  background: #9a4f45;
}

.record-toggle-button .record-toggle-icon.is-recording::before {
  left: 2px;
}

.record-toggle-button .record-toggle-icon.is-recording::after {
  right: 2px;
}

.record-toggle-button.is-loading .record-toggle-icon {
  opacity: 0.35;
}

.record-toggle-button.is-synced {
  animation: record-sync-pulse 700ms ease;
}

@keyframes record-sync-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 115, 206, 0.28); }
  70% { box-shadow: 0 0 0 10px rgba(47, 115, 206, 0); }
  100% { box-shadow: 0 8px 18px rgba(25, 55, 86, 0.12); }
}

.command-button.is-loading,
.command-button.is-accepted,
.command-button.is-rejected {
  opacity: 1;
}

.command-button.is-loading {
  border-color: rgba(47, 115, 206, 0.42);
  color: var(--brand-dark);
  background: #edf5ff;
}

.command-button.is-accepted {
  border-color: rgba(32, 163, 106, 0.3);
  color: #13764b;
  background: #e8f7f0;
}

.command-button.is-rejected {
  border-color: rgba(185, 56, 69, 0.24);
  color: #a34c46;
  background: #fff0ed;
}

.command-state-icon {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.command-button.is-loading .command-state-icon {
  display: block;
  border: 2px solid rgba(47, 115, 206, 0.2);
  border-top-color: var(--brand);
  animation: orbit-spin 700ms linear infinite;
}

.command-button.is-accepted .command-state-icon,
.command-button.is-rejected .command-state-icon {
  display: grid;
  color: currentColor;
  font-style: normal;
  place-items: center;
}

.command-button.is-accepted .command-state-icon::before {
  content: "✓";
}

.command-button.is-rejected .command-state-icon::before {
  content: "!";
}

.command-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #fff;
  animation: component-rise 220ms both;
}

.command-feedback[hidden] {
  display: none;
}

.command-feedback > div {
  display: grid;
  gap: 2px;
}

.command-feedback strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.command-feedback small {
  color: var(--muted);
  font-size: 11px;
}

.feedback-spinner,
.feedback-state {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  place-items: center;
}

.feedback-spinner {
  border: 2px solid rgba(47, 115, 206, 0.16);
  border-top-color: var(--brand);
  animation: orbit-spin 700ms linear infinite;
}

.command-feedback.is-accepted {
  border-color: rgba(32, 163, 106, 0.22);
  background: #f3fbf7;
}

.command-feedback.is-accepted .feedback-state {
  color: #13764b;
  background: #ddf3e8;
}

.command-feedback.is-rejected {
  border-color: rgba(185, 56, 69, 0.2);
  background: #fff7f5;
}

.command-feedback.is-rejected .feedback-state {
  color: #a34c46;
  background: #f9e6e3;
}

.alarm-workbench {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  border-color: #d8e4ed;
  background:
    radial-gradient(circle at 96% 0, rgba(216, 71, 71, 0.08), transparent 24%),
    #fff;
}

.alarm-workbench[hidden] {
  display: none;
}

.alarm-heading-mark {
  display: grid;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(196, 58, 67, 0.18);
  border-radius: 17px;
  color: #b82f3b;
  background: #fff3f3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  place-items: center;
  box-shadow: 0 10px 24px rgba(168, 49, 57, 0.08);
}

.alarm-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 14px;
}

.alarm-stat-strip {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
  max-width: 560px;
}

.alarm-stat-strip article {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px 15px;
  border: 1px solid #e1e9ef;
  border-radius: 12px;
  background: rgba(248, 251, 253, 0.88);
}

.alarm-stat-strip span {
  color: var(--muted);
  font-size: 11px;
}

.alarm-stat-strip strong {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.alarm-stat-strip article:first-child strong {
  color: #b82f3b;
}

.alarm-filter-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe8ef;
  border-radius: 11px;
  background: #f7fafc;
}

.alarm-filter-group button {
  min-height: 34px;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  color: #667481;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color var(--ease-refined), background var(--ease-refined), box-shadow var(--ease-refined);
}

.alarm-filter-group button[aria-pressed="true"] {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 3px 10px rgba(44, 72, 95, 0.09);
}

.alarm-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  color: var(--ink);
  background: #f8fbfd;
  font-size: 12px;
  animation: component-rise 200ms both;
}

.alarm-feedback[hidden] {
  display: none;
}

.alarm-feedback .feedback-spinner {
  width: 24px;
  height: 24px;
}

.alarm-feedback > span:not(.feedback-spinner) {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  place-items: center;
}

.alarm-feedback.is-success {
  border-color: rgba(32, 163, 106, 0.22);
  color: #13764b;
  background: #f3fbf7;
}

.alarm-feedback.is-success > span {
  background: #ddf3e8;
}

.alarm-feedback.is-error {
  border-color: rgba(185, 56, 69, 0.2);
  color: #a34c46;
  background: #fff7f5;
}

.alarm-feedback.is-error > span {
  background: #f9e6e3;
}

.alarm-results {
  display: grid;
  gap: 9px;
}

.alarm-record {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid #e1e8ee;
  border-left: 3px solid #c5424c;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(36, 61, 78, 0.035);
  animation: component-rise 240ms both;
}

.alarm-record.handled {
  border-left-color: #70a28b;
}

.alarm-record-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b82f3b;
  font-size: 12px;
  font-weight: 600;
}

.alarm-record-signal i {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  background: #c5424c;
  font-style: normal;
  place-items: center;
}

.alarm-record-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.alarm-record-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alarm-record-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #a5353f;
  background: #fff0f1;
  font-size: 10px;
}

.alarm-status.handled {
  color: #14754b;
  background: #e9f7f0;
}

.alarm-status.unknown {
  color: #6f7b85;
  background: #eff3f5;
}

.alarm-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 11px;
}

.alarm-delete-button {
  min-width: 82px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #dce6ed;
  border-radius: 9px;
  color: #677581;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: border-color var(--ease-refined), color var(--ease-refined), background var(--ease-refined);
}

.alarm-delete-button:hover {
  border-color: #d5a8ac;
  color: #a5353f;
  background: #fff8f8;
}

.alarm-delete-button.is-confirming {
  border-color: #c5424c;
  color: #fff;
  background: #c5424c;
}

.alarm-delete-button.is-loading {
  cursor: wait;
  opacity: 0.62;
}

.alarm-empty {
  min-height: 132px;
}

.alarm-empty > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 7px;
  border-radius: 50%;
  color: #14754b;
  background: #e9f7f0;
  place-items: center;
}

.alarm-empty.is-error > span {
  color: #a5353f;
  background: #fff0f1;
}

.trajectory-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, 0.8fr) 1fr;
  align-items: center;
  justify-content: initial;
  gap: 18px;
  padding: 15px 16px;
}

.trajectory-row > div {
  display: grid;
  gap: 3px;
}

.trajectory-row small {
  color: var(--muted);
  font-size: 11px;
}

.location-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: 16px;
  margin-top: 18px;
}

.location-query-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid #dbe7ef;
  border-radius: 11px;
  color: var(--muted);
  background: #f5f9fc;
  font-size: 11px;
}

.location-query-summary strong {
  color: #214e75;
  font-size: 12px;
}

.location-map-frame {
  position: relative;
  min-width: 0;
}

.location-map {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #d7e3eb;
  border-radius: 16px;
  background: #eef4f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.location-map-notice {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border: 1px solid #ead8b5;
  border-radius: 9px;
  color: #805a1e;
  background: rgba(255, 248, 232, 0.94);
  box-shadow: 0 4px 14px rgba(47, 58, 68, 0.1);
  font-size: 10px;
}

.location-map > .empty-state {
  display: grid;
  min-height: 430px;
  place-items: center;
}

.location-map-shell .trajectory-list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 3px;
}

.location-map-shell .trajectory-row {
  grid-template-columns: 42px minmax(0, 1fr);
  width: 100%;
  border: 1px solid #dfe8ee;
  color: var(--ink);
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.location-map-shell .trajectory-row:hover,
.location-map-shell .trajectory-row:focus-visible {
  border-color: rgba(47, 115, 206, 0.36);
  background: #f1f7fd;
  outline: none;
  transform: translateY(-1px);
}

.amap-trajectory-point {
  display: grid;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #2f73ce;
  box-shadow: 0 3px 10px rgba(24, 62, 101, 0.28);
  font-size: 8px;
  font-weight: 800;
  place-items: center;
}

.amap-trajectory-point.start {
  background: #2f9e7a;
}

.amap-trajectory-point.end {
  background: #d47d45;
}

.trajectory-index,
.recording-number {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Recording archive */
.recording-list {
  padding-top: 4px;
}

.recording-filter-bar,
.location-filter-bar {
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce6ed;
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(47, 115, 206, 0.035), transparent 45%),
    #f8fbfd;
}

.recording-filter-bar {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 150px;
}

.location-filter-bar {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 150px;
}

.hardware-filter-form .filter-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 10px 12px 9px;
  border: 1px solid #dce5eb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(25, 55, 86, 0.035);
  transition: border-color var(--ease-refined), box-shadow var(--ease-refined);
}

.hardware-filter-form .filter-field:focus-within {
  border-color: rgba(47, 115, 206, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 115, 206, 0.09);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #71818c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.filter-label i {
  color: var(--brand);
  font-style: normal;
  font-size: 13px;
}

.hardware-filter-form .filter-field input,
.hardware-filter-form .filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  outline: 0;
}

.date-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.date-input-wrap::after {
  position: absolute;
  top: 50%;
  left: 0;
  display: none;
  color: #5b6b77;
  font-size: 15px;
  font-weight: 500;
  content: attr(data-empty-text);
  pointer-events: none;
  transform: translateY(-50%);
}

.date-input-wrap.is-empty:not(.is-focused)::after {
  display: block;
}

.date-input-wrap.is-empty:not(.is-focused) input {
  color: transparent;
}

.hardware-filter-form .filter-field select,
.hardware-filter-form .filter-field input {
  font-size: 15px;
}

.filter-submit {
  display: grid;
  min-height: 64px;
  align-content: center;
  gap: 1px;
  border: 0;
}

.filter-submit small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.filter-submit strong {
  font-size: 14px;
  font-weight: 500;
}

.recording-item {
  display: grid;
  grid-template-columns: 34px minmax(210px, 1fr) minmax(240px, 0.9fr) 38px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(47, 115, 206, 0.025), transparent 38%), #fff;
  transition: transform var(--ease-refined), box-shadow var(--ease-refined), border-color var(--ease-refined);
}

.recording-item:hover {
  border-color: #c6d9e7;
  box-shadow: 0 10px 24px rgba(25, 55, 86, 0.06);
  transform: translateY(-1px);
}

.recording-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recording-download {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid #d2e0ea;
  border-radius: 10px;
  color: var(--brand);
  background: #f6faff;
  font-size: 18px;
  place-items: center;
}

.recording-unavailable {
  color: var(--muted);
  font-size: 12px;
}

/* Intelligence features */
.insight-stage,
.assistant-stage {
  min-height: 430px;
  padding: 0;
  overflow: hidden;
}

.insight-stage:hover,
.assistant-stage:hover {
  border-color: #dfe7ed;
  box-shadow: var(--shadow-card);
  transform: none;
}

.feature-loading {
  display: grid;
  min-height: 430px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
}

.feature-loading strong {
  color: var(--ink);
}

.loading-orbit {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border: 2px solid #dce9f3;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: orbit-spin 800ms linear infinite;
}

.insight-layout,
.assistant-layout,
.consumption-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.45fr);
  min-height: 430px;
}

.insight-summary-card,
.score-dial-card {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 12%, rgba(72, 184, 209, 0.38), transparent 28%),
    linear-gradient(145deg, #163d65, #1f6090);
}

.insight-summary-card .component-kicker,
.score-dial-card .component-kicker {
  color: #a9dff0;
}

.insight-symbol {
  margin: 30px 0 18px;
  color: #79cfe0;
  font-family: Georgia, serif;
  font-size: 68px;
  line-height: 0.6;
}

.insight-summary-card h2,
.score-dial-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.45;
}

.insight-summary-card p,
.score-dial-card p {
  margin: 0;
  color: #c8dceb;
  font-size: 13px;
}

.insight-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.insight-primary span {
  color: #b9d2e3;
  font-size: 12px;
}

.insight-detail-card,
.consumption-summary-card,
.assistant-guide {
  padding: 38px;
  background:
    radial-gradient(circle at 100% 0, rgba(72, 184, 209, 0.07), transparent 28%),
    #fff;
}

.score-bars {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.score-row {
  display: grid;
  gap: 9px;
}

.score-row > div,
.confidence-scale > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

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

.score-track {
  height: 8px;
}

.demo-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 13px;
  border: 1px solid #e3eaf0;
  border-radius: 11px;
  color: var(--muted);
  background: #f8fafc;
}

.demo-disclaimer > span,
.assistant-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-light);
  font-size: 11px;
  font-weight: 700;
  place-items: center;
}

.demo-disclaimer p {
  margin: 0;
  font-size: 12px;
}

.demo-disclaimer strong {
  display: block;
  color: var(--ink);
}

.assistant-layout {
  grid-template-columns: minmax(380px, 1.3fr) minmax(300px, 0.9fr);
}

.assistant-answer-card {
  display: grid;
  align-content: space-between;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(47, 115, 206, 0.07), transparent 46%),
    #f8fbff;
}

.assistant-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-mark {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #214f82);
  box-shadow: 0 9px 22px rgba(47, 115, 206, 0.22);
  font-weight: 700;
  place-items: center;
}

.assistant-identity div {
  display: grid;
  gap: 2px;
}

.assistant-identity small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.assistant-status {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #13764b;
  background: #e4f5ed;
  font-size: 11px;
}

.assistant-message {
  position: relative;
  margin: 45px 0;
  padding-left: 28px;
}

.assistant-message p {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.75;
}

.quote-mark {
  position: absolute;
  top: -26px;
  left: -4px;
  color: rgba(47, 115, 206, 0.18);
  font-family: Georgia, serif;
  font-size: 78px;
}

.assistant-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.assistant-guide h2 {
  margin: 5px 0 8px;
}

.assistant-guide > p {
  margin: 0;
  font-size: 14px;
}

.assistant-capabilities {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.assistant-capabilities article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e0e9ef;
  border-radius: 11px;
  background: #fbfdff;
}

.assistant-capabilities article > span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
}

.assistant-capabilities article div {
  display: grid;
  gap: 2px;
}

.assistant-capabilities small {
  color: var(--muted);
}

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

.suggestion-chips span {
  padding: 7px 10px;
  border: 1px solid #d6e3ec;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #f5f9fd;
  font-size: 11px;
}

.assistant-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #c9e5ef;
  border-radius: 999px;
  color: #1f5f78;
  background: linear-gradient(180deg, #f4fbfd, #e8f5f9);
  font-size: 12px;
  font-weight: 600;
}

.assistant-live-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e7a;
  box-shadow: 0 0 0 4px rgba(47, 158, 122, 0.16);
}

.workspace-page .knowledge-console {
  min-height: 560px;
  overflow: hidden;
}

.workspace-page .knowledge-chat-panel {
  display: grid;
  align-content: start;
  gap: 22px;
}

.workspace-page .knowledge-answer {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 148px;
  padding: 22px 20px;
  border: 1px solid #d7e4ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.workspace-page .knowledge-quote {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--brand);
  background: #eaf3ff;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1;
  place-items: center;
}

.workspace-page .knowledge-answer small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-page .knowledge-answer p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.workspace-page .knowledge-answer.is-loading {
  border-color: #c7e4ef;
  background: #f4fbfd;
}

.workspace-page .knowledge-answer.is-error {
  border-color: #efc7c7;
  background: #fff7f7;
}

.workspace-page .knowledge-answer.is-error .knowledge-quote {
  color: #a34c46;
  background: #fdeaea;
}

.workspace-page .knowledge-composer {
  margin: 0;
}

.workspace-page .knowledge-composer-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d5e2ec;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
  box-shadow: 0 10px 28px rgba(30, 58, 83, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.workspace-page .knowledge-composer-shell:focus-within {
  border-color: rgba(47, 115, 206, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 115, 206, 0.08);
}

.workspace-page .knowledge-composer label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.workspace-page .knowledge-composer textarea {
  display: block;
  width: 100%;
  min-height: 124px;
  padding: 0;
  border: 0;
  border-radius: 0;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: 1.65;
}

.workspace-page .knowledge-composer textarea:focus {
  outline: none;
  box-shadow: none;
}

.workspace-page .knowledge-composer textarea::placeholder {
  color: #8ea0b0;
}

.workspace-page .knowledge-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e4edf4;
}

.workspace-page .knowledge-count {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.workspace-page .knowledge-count i {
  font-style: normal;
  color: var(--ink);
  font-weight: 650;
}

.workspace-page .button.knowledge-send {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(47, 115, 206, 0.18);
  font-size: 14px;
  font-weight: 650;
}

.workspace-page .button.knowledge-send:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.workspace-page .button.knowledge-send:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.workspace-page .knowledge-send-spinner {
  display: none;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: orbit-spin 700ms linear infinite;
}

.workspace-page .knowledge-send.is-loading .knowledge-send-spinner {
  display: inline-block;
}

.workspace-page .knowledge-guide {
  display: grid;
  align-content: start;
}

.workspace-page .knowledge-suggestions {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
}

.workspace-page .knowledge-suggestions button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d6e3ec;
  border-radius: 16px;
  color: var(--ink);
  background: #f7fbfd;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.workspace-page .knowledge-suggestions button:hover {
  border-color: rgba(47, 115, 206, 0.35);
  background: #eef6ff;
  box-shadow: 0 8px 18px rgba(30, 58, 83, 0.06);
  transform: translateY(-1px);
}

.workspace-page .knowledge-suggestions button > span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #1f5f78;
  background: linear-gradient(180deg, #e8f6fb, #dff0f7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  place-items: center;
}

.workspace-page .knowledge-suggestions button div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-page .knowledge-suggestions button strong {
  font-size: 14px;
  font-weight: 700;
}

.workspace-page .knowledge-suggestions button small {
  color: var(--muted);
  font-size: 12px;
}

.workspace-page .knowledge-guide .assistant-note {
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid #e1ebf2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.workspace-page .knowledge-guide .assistant-note span {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  color: #1f5f78;
  background: #dff2f8;
  font-size: 11px;
  font-weight: 700;
  place-items: center;
}

.workspace-page .knowledge-guide .assistant-note p {
  margin: 0;
}

.score-dial-card {
  justify-items: center;
  text-align: center;
}

.score-dial {
  display: grid;
  width: 170px;
  height: 170px;
  margin: 25px 0;
  border-radius: 50%;
  background: conic-gradient(#5bc4d7 calc(var(--score) * 1%), rgba(255, 255, 255, 0.14) 0);
  box-shadow: 0 18px 42px rgba(4, 31, 58, 0.23);
  place-items: center;
}

.score-dial::before {
  grid-area: 1 / 1;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: #1a4a73;
  box-shadow: inset 0 0 22px rgba(2, 22, 40, 0.2);
  content: "";
}

.score-dial > div {
  z-index: 1;
  display: grid;
  grid-area: 1 / 1;
}

.score-dial strong {
  font-size: 44px;
  font-weight: 500;
}

.score-dial span {
  color: #b8d2e4;
  font-size: 11px;
}

.summary-quote {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 30px 0;
  padding: 20px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: #f3f9fc;
}

.summary-quote > span {
  color: var(--brand);
  font-size: 20px;
}

.summary-quote p {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.7;
}

.confidence-scale {
  display: grid;
  gap: 10px;
}

.confidence-scale span,
.confidence-scale strong {
  font-size: 12px;
}

/* Profile */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(420px, 1.35fr);
  gap: 20px;
}

.profile-summary {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 390px;
  padding-top: 44px;
  overflow: hidden;
  text-align: center;
}

.profile-summary:hover {
  transform: none;
}

.profile-orbit {
  position: absolute;
  top: -95px;
  width: 260px;
  height: 180px;
  border: 1px solid rgba(47, 115, 206, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(47, 115, 206, 0.025), 0 0 0 68px rgba(72, 184, 209, 0.02);
}

.profile-avatar {
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #1f527e);
  box-shadow: 0 14px 30px rgba(47, 115, 206, 0.22);
  font-size: 28px;
  font-weight: 600;
  place-items: center;
}

.profile-summary h2 {
  margin: 18px 0 3px;
  font-size: 22px;
}

.profile-summary > p {
  margin: 0;
  font-size: 13px;
}

.profile-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 25px 0 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #13764b;
  background: #e5f6ee;
  font-size: 12px;
}

.profile-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20a36a;
}

.profile-summary > small {
  max-width: 220px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.profile-panels {
  display: grid;
  gap: 20px;
}

.profile-panel form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.profile-panel .form-field {
  margin: 0;
}

.profile-panel .button {
  min-height: 46px;
}

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

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .hardware-item {
    grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.8fr) minmax(120px, 0.7fr);
  }

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

  .recording-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .recording-filter-bar .filter-submit {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .insight-layout,
  .assistant-layout,
  .consumption-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .hardware-item,
  .location-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .location-filter-bar .filter-submit {
    grid-column: 1 / -1;
  }

  .profile-summary {
    min-height: 320px;
  }

  .location-map-shell {
    grid-template-columns: 1fr;
  }

  .location-map-shell .trajectory-list {
    max-height: none;
  }

  .alarm-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .alarm-stat-strip {
    max-width: none;
  }

  .alarm-filter-group {
    align-self: flex-start;
  }
}

@media (max-width: 720px) {
  .component-heading,
  .device-overview-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .device-overview-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .device-switcher {
    width: 100%;
    min-width: 0;
  }

  .compact-filter {
    width: 100%;
  }

  .hardware-item,
  .recording-filter-bar,
  .location-filter-bar,
  .recording-item,
  .trajectory-row,
  .profile-panel form {
    grid-template-columns: 1fr;
  }

  .recording-filter-bar .filter-submit,
  .location-filter-bar .filter-submit {
    grid-column: auto;
  }

  .device-metric-grid,
  .capability-tile-grid {
    grid-template-columns: 1fr;
  }

  .device-action-zone {
    grid-template-columns: 1fr;
  }

  .recording-item audio {
    width: 100%;
  }

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

  .alarm-stat-strip article:last-child {
    grid-column: 1 / -1;
  }

  .alarm-filter-group {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .alarm-record {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .alarm-record-action,
  .alarm-delete-button {
    width: 100%;
  }

  .insight-summary-card,
  .score-dial-card,
  .insight-detail-card,
  .consumption-summary-card,
  .assistant-answer-card,
  .assistant-guide {
    padding: 26px 22px;
  }

  .workspace-page .knowledge-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-page .button.knowledge-send {
    width: 100%;
  }

  .assistant-message p {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-overview-card,
  .device-metric,
  .loading-orbit {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-card,
  .badge-item,
  .workspace-sidebar a,
  .auth-login-link,
  .auth-workspace-link,
  .auth-user-button {
    transition: none;
    transform: none;
  }
}

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

.hardware-summary .workspace-card {
  min-height: 132px;
}

.hardware-summary span {
  color: var(--muted);
  font-size: 14px;
}

.hardware-summary strong {
  display: block;
  margin-top: 12px;
  color: var(--brand-dark);
  font-size: 38px;
  font-weight: 500;
}

.card-heading,
.hardware-item,
.hardware-item-main,
.hardware-meta,
.recording-item {
  display: flex;
  align-items: center;
}

.card-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.card-heading h2,
.card-heading p {
  margin: 0;
}

.hardware-list {
  display: grid;
  gap: 10px;
}

.hardware-item {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(160px, 0.8fr) minmax(130px, 0.7fr);
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: #fbfcfd;
}

.hardware-item-main {
  gap: 12px;
}

.hardware-item-main div,
.recording-item div {
  display: grid;
  gap: 3px;
}

.hardware-item small,
.recording-item small {
  color: var(--muted);
}

.device-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa8b2;
  box-shadow: 0 0 0 4px rgba(154, 168, 178, 0.14);
}

.device-status.online {
  background: #20a36a;
  box-shadow: 0 0 0 4px rgba(32, 163, 106, 0.14);
}

.device-status.offline {
  background: #c66a5d;
  box-shadow: 0 0 0 4px rgba(198, 106, 93, 0.14);
}

.hardware-meta {
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.available {
  color: #13764b;
  background: #e4f5ed;
}

.unavailable {
  color: #7b6970;
  background: #f1ecee;
}

.command-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.command-button {
  padding: 9px 13px;
  border: 1px solid #c6d6e3;
  border-radius: 9px;
  color: var(--brand-dark);
  background: #f6f9fc;
}

.hardware-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.hardware-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hardware-filter-form input,
.hardware-filter-form select,
[data-device-filter] {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #ccd9e2;
  border-radius: 9px;
  background: #fff;
}

.trajectory-list,
.recording-list {
  display: grid;
  gap: 10px;
}

.trajectory-row,
.recording-item {
  justify-content: space-between;
  gap: 20px;
  padding: 13px 15px;
  border: 1px solid #e0e8ed;
  border-radius: 10px;
  background: #fbfcfd;
}

.recording-item audio {
  width: min(340px, 100%);
}

.service-notice {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-left: 3px solid #d99b31;
  color: #765316;
  background: #fff6e5;
}

@media (max-width: 980px) {
  .workspace-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hardware-filter-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .workspace-grid.four,
  .hardware-item,
  .hardware-filter-form {
    grid-template-columns: 1fr;
  }

  .card-heading,
  .recording-item {
    align-items: stretch;
    flex-direction: column;
  }
}
