.wearables-shell {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
  padding: calc(var(--site-topbar-offset, 102px) + 34px) 0 58px;
}

.wearables-hero,
.wearables-section,
.wearables-panel,
.wearables-provider,
.wearables-status {
  border: 1px solid rgba(17, 43, 73, 0.1);
  background: rgba(255, 250, 243, 0.82);
  box-shadow: 0 18px 46px rgba(17, 43, 73, 0.08);
}

.wearables-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  border-radius: 8px;
  padding: 28px;
}

.wearables-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.wearables-kicker {
  color: #0d746b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wearables-hero h1,
.wearables-section-heading h2,
.wearables-panel h3 {
  margin: 0;
  color: #112b49;
  letter-spacing: 0;
}

.wearables-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.96;
}

.wearables-hero p,
.wearables-section-heading p {
  margin: 0;
  max-width: 720px;
  color: #5f7185;
  line-height: 1.6;
}

.wearables-hero-actions,
.wearables-provider-actions,
.wearables-controls,
.wearables-request-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wearables-button {
  min-height: 42px;
  border: 1px solid rgba(17, 43, 73, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #123453;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.wearables-button.is-primary {
  border-color: #123453;
  background: #123453;
  color: #fff;
}

.wearables-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.wearables-summary-grid,
.wearables-provider-grid,
.wearables-learning-grid {
  display: grid;
  gap: 14px;
}

.wearables-status {
  margin-top: 18px;
  min-height: 44px;
  border-radius: 8px;
  padding: 12px 14px;
  color: #50657a;
}

.wearables-status[data-tone="success"] {
  color: #0b7468;
}

.wearables-status[data-tone="error"] {
  color: #9a341c;
}

.wearables-section {
  margin-top: 18px;
  border-radius: 8px;
  padding: 22px;
}

.wearables-section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

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

.wearables-provider,
.wearables-panel {
  border-radius: 8px;
  padding: 16px;
}

.wearables-provider {
  display: grid;
  gap: 12px;
  align-content: start;
}

.wearables-provider-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.wearables-provider h3 {
  margin: 0;
  color: #112b49;
  font-size: 1.25rem;
}

.wearables-provider p,
.wearables-muted {
  margin: 0;
  color: #617489;
  line-height: 1.48;
}

.wearables-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wearables-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(45, 104, 196, 0.1);
  color: #214f98;
  font-size: 0.78rem;
  font-weight: 800;
}

.wearables-pill.is-good {
  background: rgba(13, 137, 116, 0.13);
  color: #0b7468;
}

.wearables-pill.is-warning {
  background: rgba(196, 93, 31, 0.13);
  color: #914516;
}

.wearables-controls {
  margin-bottom: 16px;
}

.wearables-controls label,
.wearables-request-form label {
  display: grid;
  gap: 6px;
}

.wearables-controls span,
.wearables-request-form span {
  color: #5b6f84;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wearables-controls select,
.wearables-request-form select {
  min-height: 42px;
  min-width: 190px;
  border: 1px solid rgba(17, 43, 73, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #123453;
  font: inherit;
  padding: 8px 10px;
}

.wearables-request-card {
  background: rgba(248, 252, 250, 0.92);
}

.wearables-request-form {
  align-items: end;
}

.wearables-request-status {
  min-height: 22px;
  margin: 0;
  color: #50657a;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.wearables-request-status[data-tone="success"] {
  color: #0b7468;
}

.wearables-request-status[data-tone="error"] {
  color: #9a341c;
}

.wearables-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 14px;
}

.wearables-stat {
  border: 1px solid rgba(17, 43, 73, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.wearables-stat strong,
.wearables-stat span {
  display: block;
}

.wearables-stat strong {
  color: #123453;
  font-size: 1.45rem;
  line-height: 1.1;
}

.wearables-stat span {
  margin-top: 5px;
  color: #617489;
  font-size: 0.9rem;
  line-height: 1.4;
}

.wearables-learning-grid {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.wearables-panel {
  display: grid;
  gap: 12px;
}

.wearables-chart-panel {
  margin-bottom: 14px;
}

.wearables-chart-groups,
.wearables-chart-source,
.wearables-chart-grid,
.wearables-chart-card {
  display: grid;
  gap: 12px;
}

.wearables-chart-groups {
  gap: 16px;
}

.wearables-chart-source {
  border: 1px solid rgba(17, 43, 73, 0.09);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.wearables-chart-source-header,
.wearables-chart-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wearables-chart-source-header strong {
  color: #112b49;
  font-size: 1.05rem;
}

.wearables-chart-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.wearables-chart-card {
  min-width: 0;
  border: 1px solid rgba(17, 43, 73, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.wearables-chart-card header strong {
  color: #123453;
}

.wearables-chart-card svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 140px;
  overflow: hidden;
}

.wearables-chart-card .axis,
.wearables-chart-card .gridline {
  stroke: rgba(17, 43, 73, 0.16);
  stroke-width: 1;
}

.wearables-chart-card .gridline {
  stroke-dasharray: 5 6;
}

.wearables-chart-card .trend-line {
  fill: none;
  stroke: #0d746b;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.2;
}

.wearables-chart-card .moving-average-line {
  fill: none;
  stroke: #b64e2c;
  stroke-width: 4.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 7;
}

.wearables-plot-point {
  fill: #0d9b8a;
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
  opacity: 0.34;
}

.wearables-plot-point:hover,
.wearables-plot-point:focus {
  fill: #d98134;
  opacity: 0.92;
  outline: none;
}

.wearables-chart-detail {
  min-height: 36px;
  color: #50657a;
  font-size: 0.86rem;
  line-height: 1.4;
}

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

.wearables-suggestion {
  border-left: 4px solid #0d9b8a;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(240, 250, 247, 0.86);
}

.wearables-suggestion strong {
  display: block;
  margin-bottom: 4px;
  color: #123453;
}

.wearables-table-shell {
  overflow-x: auto;
  border: 1px solid rgba(17, 43, 73, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.wearables-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.wearables-table th,
.wearables-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(17, 43, 73, 0.08);
  text-align: left;
  vertical-align: top;
}

.wearables-table th {
  color: #50657a;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wearables-empty {
  padding: 16px;
  color: #667b91;
  text-align: center;
}

@media (max-width: 900px) {
  .wearables-hero,
  .wearables-provider-grid,
  .wearables-learning-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wearables-shell {
    width: min(calc(100% - 22px), 1180px);
    padding-top: calc(var(--site-topbar-offset, 92px) + 20px);
  }

  .wearables-hero,
  .wearables-section {
    padding: 18px;
  }

  .wearables-button,
  .wearables-controls label,
  .wearables-controls select,
  .wearables-request-form,
  .wearables-request-form label,
  .wearables-request-form select {
    width: 100%;
  }
}
