/* ── Mockup UI components ── */

.mock-panel {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  color: #1a2b3c;
}

.mock-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mock-panel__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-panel__head span {
  font-size: 0.82rem;
  color: #5a7a94;
}

/* Toolbar */
.mock-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.mock-toolbar__filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  padding-bottom: 0.15rem;
}

.mock-toolbar__filters::-webkit-scrollbar {
  display: none;
}

.mock-chip {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
  color: #5a7a94;
  background: #f0f6fb;
  border: 1px solid #d8e8f4;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}

.mock-chip:hover:not(.is-active) {
  background: #e2eef8;
  border-color: #a8d4f0;
  color: #0a3d6e;
}

.mock-chip:active:not(.is-active) {
  transform: scale(0.97);
}

.mock-chip:focus-visible {
  outline: 2px solid #00b4e4;
  outline-offset: 2px;
}

.mock-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, #00b4e4, #1a8fc9);
  border-color: transparent;
}

.mock-chart.is-updating {
  animation: mock-chart-fade 0.35s ease;
}

@keyframes mock-chart-fade {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

.mock-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mock-btn {
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  transition: opacity 0.2s, transform 0.12s, box-shadow 0.2s;
}

a.mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.mock-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.mock-btn[data-mock-action='save'],
.mock-btn[data-mock-action='upload-file'],
.mock-btn[data-mock-action='upload-camera'],
.mock-btn[data-mock-action='refresh-data'],
.mock-btn[data-mock-action='scan-devices'] {
  cursor: pointer;
  opacity: 1;
}

.mock-btn[data-mock-action='save']:hover,
.mock-btn[data-mock-action='upload-file']:hover,
.mock-btn[data-mock-action='upload-camera']:hover,
.mock-btn[data-mock-action='refresh-data']:hover {
  box-shadow: 0 4px 12px rgba(0, 180, 228, 0.4);
}

.mock-btn[data-mock-action='save']:active,
.mock-btn[data-mock-action='save'].is-pressed,
.mock-btn[data-mock-action='upload-file']:active,
.mock-btn[data-mock-action='upload-file'].is-pressed,
.mock-btn[data-mock-action='upload-camera']:active,
.mock-btn[data-mock-action='upload-camera'].is-pressed,
.mock-btn[data-mock-action='refresh-data']:active,
.mock-btn[data-mock-action='refresh-data'].is-pressed {
  transform: scale(0.97);
}

.mock-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #00b4e4, #1a8fc9);
}

.mock-btn--ghost {
  color: #0a3d6e;
  background: #eef5fb;
  border: 1px solid #c5dff0;
}

/* Save dialog */
body.menu-save-dialog-open {
  overflow: hidden;
}

.menu-save-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-save-dialog.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-save-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 54, 0.65);
  backdrop-filter: blur(4px);
}

.menu-save-dialog__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90dvh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0a3d6e;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  overflow: hidden;
}

.menu-save-dialog.is-visible .menu-save-dialog__panel {
  transform: translateY(0) scale(1);
}

.menu-save-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid #eef3f7;
}

.menu-save-dialog__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0a3d6e;
}

.menu-save-dialog__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f0f4f8;
  color: #5a7a94;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.menu-save-dialog__close:hover {
  background: #e8f0f6;
  color: #0a3d6e;
}

.menu-save-dialog__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.menu-save-dialog__fields {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.menu-save-dialog__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #0a3d6e;
}

.menu-save-dialog__req {
  color: #e74c3c;
}

.menu-save-dialog__field input,
.menu-save-dialog__field select,
.menu-save-dialog__field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: #1a2b3c;
  background: #f8fbfd;
  border: 1px solid #c5dff0;
  border-radius: 8px;
  box-sizing: border-box;
}

.menu-save-dialog__field input:focus,
.menu-save-dialog__field select:focus,
.menu-save-dialog__field textarea:focus {
  outline: none;
  border-color: #00b4e4;
  box-shadow: 0 0 0 3px rgba(0, 180, 228, 0.2);
}

.menu-save-dialog__field textarea {
  resize: vertical;
  min-height: 72px;
}

.menu-save-dialog__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-save-dialog__input-wrap input {
  flex: 1;
  min-width: 0;
}

.menu-save-dialog__unit {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a7a94;
}

.menu-save-dialog__footer {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid #eef3f7;
  background: #fafcfe;
}

.menu-save-dialog__footer .btn {
  min-width: 96px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.menu-save-dialog__footer .btn-outline {
  color: #0a3d6e;
  background: #fff;
  border: 1px solid #c5dff0;
}

.menu-save-dialog__footer .btn-outline:hover {
  background: #f0f4f8;
}

.menu-save-dialog__footer .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #00b4e4, #1a8fc9);
}

.menu-save-dialog__footer .btn-primary:hover {
  opacity: 0.95;
}

.menu-save-dialog__footer .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Toast */
.menu-page-toast {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  background: #fff;
  color: #0d5c36;
  border: 1px solid #6ee7a8;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
}

.menu-page-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-page-toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
}

.menu-page-toast__message {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.menu-page-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #5a6b7c;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.menu-page-toast__close:hover {
  background: #f0f4f8;
  color: #1a2b3c;
}

/* Hero */
.mock-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.mock-hero__score {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 4px solid #00b4e4;
  background: #e8f7fc;
}

.mock-hero__score--good { border-color: #2ecc71; background: #eafaf1; }
.mock-hero__score--warn { border-color: #f39c12; background: #fef9e7; }

.mock-hero__score-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a3d6e;
  line-height: 1;
}

.mock-hero__score-label {
  font-size: 0.7rem;
  color: #5a7a94;
  margin-top: 0.15rem;
}

.mock-hero__body {
  flex: 1;
  min-width: 0;
}

.mock-hero__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-hero__text {
  margin: 0;
  font-size: 0.92rem;
  color: #3d5568;
  line-height: 1.5;
}

.mock-hero__meta {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #5a7a94;
}

/* Stats grid — columns match card count and fill the row */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
  gap: 0.65rem;
}

.mock-stat {
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
  border-left: 3px solid #c5dff0;
}

.mock-stat--ok { border-left-color: #2ecc71; }
.mock-stat--warn { border-left-color: #f39c12; }
.mock-stat--danger { border-left-color: #e74c3c; }

.mock-cgm-badge {
  margin: 0 0 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mock-cgm-badge--connected {
  color: #0d6e58;
  background: linear-gradient(135deg, #f4fffb 0%, #e8fbf4 100%);
  border: 1px solid rgba(22, 160, 133, 0.38);
  box-shadow: 0 6px 20px rgba(22, 160, 133, 0.16);
}

.mock-cgm-badge--connected::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #16a085;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.22);
  flex-shrink: 0;
}

.mock-cgm-badge--disconnected {
  color: #5a7a94;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(90, 122, 148, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mock-cgm-badge--disconnected::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #94a9bc;
  flex-shrink: 0;
}

.menu-mockup--cgm.is-cgm-live .mock-stat[data-stat-key="current"] .mock-stat__value {
  transition: color 0.35s ease;
}

.menu-mockup--cgm .mock-chart--line {
  height: auto;
  min-height: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.menu-mockup--cgm .mock-chart__plot-area {
  position: relative;
  height: 140px;
  width: 100%;
  overflow: visible;
}

.menu-mockup--cgm .mock-cgm-now-marker {
  position: absolute;
  z-index: 2;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #16a085;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(22, 160, 133, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.menu-mockup--cgm .mock-chart__plot-area .mock-chart__line {
  display: block;
  height: 100%;
  width: 100%;
}

.menu-mockup--cgm .mock-chart__grid-line {
  stroke: rgba(90, 122, 148, 0.12);
  stroke-width: 0.6;
}

.menu-mockup--cgm .mock-chart__now-line {
  stroke: rgba(22, 160, 133, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.menu-mockup--cgm .mock-cgm-x-axis {
  width: 100%;
  flex-shrink: 0;
  padding: 0.45rem 0.15rem 0.15rem;
  border-top: 1px solid rgba(90, 122, 148, 0.16);
  overflow: visible;
}

.menu-mockup--cgm .mock-cgm-x-axis__track {
  position: relative;
  width: 100%;
  height: 0.55rem;
  margin-bottom: 0.25rem;
}

.menu-mockup--cgm .mock-cgm-x-tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 0.55rem;
  background: rgba(90, 122, 148, 0.38);
  transform: translateX(-50%);
}

.menu-mockup--cgm .mock-cgm-x-axis__scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-mockup--cgm .mock-cgm-x-axis__scroll::-webkit-scrollbar {
  display: none;
}

.menu-mockup--cgm .mock-cgm-x-axis__labels {
  display: grid;
  grid-template-columns: repeat(var(--cgm-x-columns, 13), minmax(2rem, 1fr));
  width: 100%;
  min-width: calc(var(--cgm-x-columns, 13) * 2rem);
  min-height: 1.2rem;
  align-items: start;
}

.menu-mockup--cgm .mock-cgm-x-label {
  font-size: 0.62rem;
  line-height: 1.15;
  color: #5a7a94;
  text-align: center;
  white-space: nowrap;
}

.menu-mockup--cgm .mock-cgm-x-label:first-child {
  text-align: left;
}

.menu-mockup--cgm .mock-cgm-x-label:last-child {
  text-align: right;
}

.menu-mockup--cgm .mock-cgm-x-label--now {
  color: #16a085;
  font-weight: 600;
}

.menu-mockup--cgm .mock-chart__legend {
  margin-top: 0.55rem;
}

@media (max-width: 640px) {
  .menu-mockup--cgm .mock-cgm-x-label {
    font-size: 0.58rem;
  }
}

.mock-stat__label {
  display: block;
  font-size: 0.78rem;
  color: #5a7a94;
  margin-bottom: 0.25rem;
}

.mock-stat__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a3d6e;
  line-height: 1.2;
}

.mock-stat__value small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #5a7a94;
  margin-left: 0.15rem;
}

.mock-stat__trend {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: #f0f4f8;
  color: #5a7a94;
}

.mock-stat__trend.is-up { background: #eafaf1; color: #1e8449; }
.mock-stat__trend.is-down { background: #eafaf1; color: #1e8449; }

/* Chart */
.mock-chart {
  min-height: 160px;
}

.mock-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem;
  height: 140px;
  padding-top: 0.5rem;
}

.mock-chart__bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.mock-chart__bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  margin-top: auto;
  transition: height 0.3s;
}

.mock-chart__bar--health { background: linear-gradient(180deg, #5ec8f2, #00b4e4); }
.mock-chart__bar--pageview { background: linear-gradient(180deg, #6eb5e8, #2d8fd4); }
.mock-chart__bar--sugar { background: linear-gradient(180deg, #f5b041, #e67e22); }
.mock-chart__bar--bp { background: linear-gradient(180deg, #ec7063, #e74c3c); }
.mock-chart__bar--physical { background: linear-gradient(180deg, #bb8fce, #9b59b6); }
.mock-chart__bar--body { background: linear-gradient(180deg, #48c9b0, #1abc9c); }
.mock-chart__bar--poc { background: linear-gradient(180deg, #5dade2, #3498db); }
.mock-chart__bar--cgm { background: linear-gradient(180deg, #48c9b0, #16a085); }
.mock-chart__bar--lab { background: linear-gradient(180deg, #af7ac5, #8e44ad); }
.mock-chart__bar--watch { background: linear-gradient(180deg, #5dade2, #2980b9); }

.mock-chart__bar-label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #5a7a94;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mock-chart--line {
  position: relative;
  height: 140px;
  padding-bottom: 1.5rem;
}

.mock-chart__line {
  width: 100%;
  height: 100%;
  color: #00b4e4;
}

.menu-mockup--sugar .mock-chart__line { color: #e67e22; }
.menu-mockup--bp .mock-chart__line { color: #e74c3c; }
.menu-mockup--cgm .mock-chart__line { color: #16a085; }
.menu-mockup--pageview .mock-chart__line { color: #2d8fd4; }
.menu-mockup--body .mock-chart__line { color: #1abc9c; }
.menu-mockup--physical .mock-chart__line { color: #9b59b6; }
.menu-mockup--poc .mock-chart__line { color: #3498db; }
.menu-mockup--watch .mock-chart__line { color: #2980b9; }

/* POC catalog */
.mock-poc-panel__sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #5a7a94;
}

.mock-poc-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.mock-poc-group__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-poc-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.55rem;
}

.mock-poc-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-family: inherit;
  background: #f8fbfd;
  border: 1px solid #e8f0f6;
  border-radius: 10px;
  border-left: 3px solid #3498db;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.12s;
}

.mock-poc-item:hover {
  border-color: #3498db;
  box-shadow: 0 4px 14px rgba(52, 152, 219, 0.2);
}

.mock-poc-item:active {
  transform: scale(0.98);
}

.mock-poc-item__key {
  font-size: 0.68rem;
  color: #8aa4b8;
  text-transform: lowercase;
}

.mock-poc-item__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a3d6e;
  line-height: 1.3;
}

.mock-poc-item__unit {
  font-size: 0.72rem;
  color: #5a7a94;
}

.mock-poc-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-poc-item__value small {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5a7a94;
}

.mock-poc-item__date {
  font-size: 0.72rem;
  color: #5a7a94;
}

.mock-poc-item__empty {
  font-size: 0.78rem;
  color: #8aa4b8;
  font-style: italic;
}

.mock-poc-item__action {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #3498db;
}

.mock-poc-table__head {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef3f7;
}

.mock-poc-table__empty {
  margin: 0;
  padding: 1rem 0;
  text-align: center;
  color: #5a7a94;
  font-size: 0.9rem;
}

/* Device connect POC */
.menu-mockup--device .mock-chart__line { color: #1abc9c; }

.mock-device-panel__sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #5a7a94;
}

.mock-device-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.75rem;
}

.mock-device-filters[hidden],
[data-device-stats-wrap][hidden] {
  display: none !important;
}

.mock-device-panel.is-awaiting [data-device-stats-wrap],
.mock-device-panel.is-awaiting .mock-device-filters,
.mock-device-panel.is-scanning [data-device-stats-wrap],
.mock-device-panel.is-scanning .mock-device-filters {
  display: none !important;
}

.mock-device-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.mock-device-catalog.is-progressive-loading {
  gap: 0.85rem;
}

.mock-device-catalog__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #eef9f6;
  border: 1px solid #d5f0ea;
  font-size: 0.84rem;
  font-weight: 500;
  color: #0e6655;
}

.mock-device-catalog__status-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #1abc9c;
  animation: mock-device-scan-dot 1.2s ease-in-out infinite;
}

.mock-device-item.is-progressive-enter {
  animation: mock-device-card-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mock-device-panel.is-catalog-loading .mock-device-filters {
  pointer-events: none;
  opacity: 0.72;
}

.mock-device-group[hidden] {
  display: none !important;
}

.mock-device-group.is-group-enter {
  animation: mock-device-section-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mock-device-group.is-focus-highlight {
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.35);
  animation: mock-device-group-focus 2.2s ease both;
}

@keyframes mock-device-group-focus {
  0%, 100% { box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2); }
  35% { box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.45); }
}

.mock-device-group__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-device-group__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  margin: 0 -0.15rem;
  padding-inline: 0.15rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 188, 156, 0.45) transparent;
}

.mock-device-group__grid::-webkit-scrollbar {
  height: 6px;
}

.mock-device-group__grid::-webkit-scrollbar-track {
  background: transparent;
}

.mock-device-group__grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(26, 188, 156, 0.35);
}

.mock-device-group__grid::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 188, 156, 0.55);
}

.mock-device-item {
  display: flex;
  flex: 0 0 auto;
  width: min(11.5rem, 78vw);
  min-width: 10.5rem;
  scroll-snap-align: start;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  text-align: left;
  font-family: inherit;
  background: #f8fbfd;
  border: 1px solid #e8f0f6;
  border-radius: 10px;
  border-left: 3px solid #95a5a6;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.12s;
}

.mock-device-item.is-connected {
  border-left-color: #27ae60;
  background: #f4fbf7;
}

.mock-device-item:hover {
  border-color: #1abc9c;
  box-shadow: 0 4px 14px rgba(26, 188, 156, 0.18);
}

.mock-device-item:active,
.mock-device-item.is-pressed {
  transform: scale(0.98);
}

.mock-device-item__brand {
  font-size: 0.68rem;
  color: #8aa4b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mock-device-item__name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0a3d6e;
  line-height: 1.35;
}

.mock-device-item__meta {
  font-size: 0.72rem;
  color: #5a7a94;
}

.mock-device-item__action {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1abc9c;
}

.mock-device-empty {
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
  color: #5a7a94;
  font-size: 0.9rem;
}

.mock-device-await {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 2.25rem 1.25rem 2rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed #c5dff0;
  background: linear-gradient(180deg, #f8fcff 0%, #f2f8fb 100%);
}

.mock-device-await__visual {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.mock-device-await__pulse {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(26, 188, 156, 0.35);
  border-radius: 50%;
  animation: mock-device-await-pulse 2.4s ease-out infinite;
}

.mock-device-await__pulse--delay {
  animation-delay: 1.2s;
}

.mock-device-await__icon {
  position: relative;
  color: #1abc9c;
}

.mock-device-await__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-device-await__text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5a7a94;
}

.mock-device-await__hint {
  margin: 0.25rem 0 0;
  max-width: 24rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #8aa4b8;
}

.mock-device-scan {
  margin-top: 0.75rem;
  padding: 1.5rem 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid #d5f0ea;
  background: linear-gradient(180deg, #f6fffc 0%, #eef9f6 100%);
}

.mock-device-panel.is-scanning [data-device-catalog-wrap] {
  margin-top: 0;
  animation: mock-device-scan-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mock-device-scan__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

@media (min-width: 520px) {
  .mock-device-scan__hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

.mock-device-scan__radar {
  position: relative;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
}

.mock-device-scan__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(26, 188, 156, 0.45);
  border-radius: 50%;
  animation: mock-device-transition-ring 1.8s ease-out infinite;
}

.mock-device-scan__ring:nth-child(2) { animation-delay: 0.45s; }
.mock-device-scan__ring:nth-child(3) { animation-delay: 0.9s; }

.mock-device-scan__dot {
  position: absolute;
  inset: 1.35rem;
  border-radius: 50%;
  background: #1abc9c;
  box-shadow: 0 0 0 6px rgba(26, 188, 156, 0.15);
  animation: mock-device-scan-dot 1.2s ease-in-out infinite;
}

.mock-device-scan__copy {
  min-width: 0;
}

.mock-device-scan__status {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-device-scan__sub {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #5a7a94;
}

.mock-device-scan__percent {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1abc9c;
}

.mock-device-scan__progress {
  height: 0.35rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(26, 188, 156, 0.12);
  overflow: hidden;
}

.mock-device-scan__progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1abc9c, #00b4e4);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mock-device-scan__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.mock-device-scan__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  background: #f4f8fb;
  border: 1px solid #e3edf4;
  color: #8aa4b8;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.mock-device-scan__step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  background: #e8f0f6;
  color: #8aa4b8;
}

.mock-device-scan__step-label {
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.mock-device-scan__step.is-active {
  background: #e8faf5;
  border-color: #b8ead9;
  color: #0e6655;
  transform: translateY(-1px);
}

.mock-device-scan__step.is-active .mock-device-scan__step-marker {
  background: #1abc9c;
  color: #fff;
}

.mock-device-scan__step.is-done {
  background: #f1fbf6;
  border-color: #cdebd9;
  color: #27ae60;
}

.mock-device-scan__step.is-done .mock-device-scan__step-marker {
  background: #27ae60;
  color: #fff;
}

.mock-device-scan__skeletons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1rem;
}

.mock-device-scan__skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 4.8rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #e3edf4;
  background: linear-gradient(90deg, #edf5f2 0%, #f7fbfb 45%, #edf5f2 90%);
  background-size: 200% 100%;
  animation: mock-device-skeleton-shimmer 1.2s linear infinite;
  animation-delay: var(--skeleton-delay, 0ms);
}

.mock-device-scan__skeleton-line {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(138, 164, 184, 0.22);
}

.mock-device-scan__skeleton-line--short {
  width: 42%;
}

.mock-device-scan__skeleton-line--tiny {
  width: 58%;
  margin-top: auto;
}

.mock-btn.is-scanning {
  pointer-events: none;
  opacity: 0.92;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.22);
}

.mock-btn__scan-spinner {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.35rem;
  vertical-align: -0.12rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mock-device-spin 0.75s linear infinite;
}

.mock-device-panel.is-scanning {
  box-shadow: 0 14px 42px rgba(26, 188, 156, 0.12);
}

.mock-device-panel.is-ready [data-device-catalog-wrap] {
  opacity: 1;
}

.mock-device-panel.is-scan-revealed [data-device-stats-wrap] .mock-stat {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: mock-device-stat-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mock-device-panel.is-scan-revealed [data-device-stats-wrap] .mock-stat:nth-child(1) { animation-delay: 0.04s; }
.mock-device-panel.is-scan-revealed [data-device-stats-wrap] .mock-stat:nth-child(2) { animation-delay: 0.1s; }
.mock-device-panel.is-scan-revealed [data-device-stats-wrap] .mock-stat:nth-child(3) { animation-delay: 0.16s; }

.mock-device-panel.is-scan-revealed .mock-device-filters {
  animation: mock-device-section-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes mock-device-await-pulse {
  0% { transform: scale(0.72); opacity: 0.75; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes mock-device-scan-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes mock-device-scan-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

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

@keyframes mock-device-catalog-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.mock-device-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mock-device-modal[hidden] {
  display: none !important;
}

.mock-device-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 50, 0.45);
}

.mock-device-modal__panel {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(90vh, 32rem);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(10, 61, 110, 0.22);
}

.mock-device-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.5rem;
}

.mock-device-modal__title {
  margin: 0;
  font-size: 1.05rem;
  color: #0a3d6e;
}

.mock-device-modal__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: #eef5fb;
  color: #0a3d6e;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mock-device-modal__body {
  padding: 0.5rem 1.1rem 1rem;
}

.mock-device-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem 1rem;
  border-top: 1px solid #eef3f7;
}

.mock-device-modal__footer[hidden] {
  display: none !important;
}

.mock-device-flow {
  text-align: center;
}

.mock-device-flow h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1rem;
  color: #0a3d6e;
}

.mock-device-flow p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: #5a7a94;
  line-height: 1.5;
}

.mock-device-flow__hint {
  font-size: 0.82rem !important;
  color: #8aa4b8 !important;
}

.mock-device-flow__tips {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.82rem;
  color: #5a7a94;
}

.mock-device-flow__tips li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
}

.mock-device-flow__tips li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1abc9c;
}

.mock-device-stepper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.mock-device-step {
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  border-radius: 999px;
  background: #eef3f7;
  color: #8aa4b8;
}

.mock-device-step.is-active {
  background: #d5f5ef;
  color: #0e6655;
  font-weight: 600;
}

.mock-device-step.is-done {
  background: #eafaf1;
  color: #27ae60;
}

.mock-device-flow__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #eef5fb;
  color: #1abc9c;
  font-size: 1.75rem;
}

.mock-device-flow__icon--done {
  background: #eafaf1;
  color: #27ae60;
  font-weight: 700;
}

.mock-device-radar {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #1abc9c;
  border-radius: 50%;
  animation: mock-device-pulse 1.4s ease-out infinite;
}

.mock-device-spinner {
  display: block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #d5f5ef;
  border-top-color: #1abc9c;
  border-radius: 50%;
  animation: mock-device-spin 0.8s linear infinite;
}

@keyframes mock-device-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

/* Device connect — page transition & entrance */
a.mock-btn[data-page-transition='device-connect'],
a.mock-btn[data-page-transition='cgm-connect'] {
  position: relative;
  overflow: hidden;
}

a.mock-btn[data-page-transition='device-connect']::after,
a.mock-btn[data-page-transition='cgm-connect']::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(26, 188, 156, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

a.mock-btn[data-page-transition='device-connect']:hover::after,
a.mock-btn[data-page-transition='cgm-connect']:hover::after {
  transform: translateX(120%);
}

a.mock-btn[data-page-transition='device-connect'].is-launching,
a.mock-btn[data-page-transition='cgm-connect'].is-launching {
  transform: scale(0.96);
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.35);
}

.mock-device-page-transition {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mock-device-page-transition[hidden] {
  display: none !important;
}

.mock-device-page-transition__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(26, 188, 156, 0.22) 0%, transparent 55%),
    rgba(4, 30, 54, 0.82);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mock-device-page-transition.is-active .mock-device-page-transition__backdrop,
.mock-device-page-transition.is-handoff .mock-device-page-transition__backdrop {
  opacity: 1;
}

.mock-device-page-transition.is-handoff-out .mock-device-page-transition__backdrop {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mock-device-page-transition__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mock-device-page-transition.is-active .mock-device-page-transition__content {
  opacity: 1;
  transform: none;
}

.mock-device-page-transition.is-handoff .mock-device-page-transition__content {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mock-device-page-transition.is-handoff-out .mock-device-page-transition__content {
  opacity: 0;
  transform: translateY(-12px) scale(1.02);
}

.mock-device-page-transition__rings {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 0.35rem;
}

.mock-device-page-transition__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(26, 188, 156, 0.55);
  border-radius: 50%;
  animation: mock-device-transition-ring 1.8s ease-out infinite;
}

.mock-device-page-transition__ring:nth-child(2) {
  animation-delay: 0.45s;
}

.mock-device-page-transition__ring:nth-child(3) {
  animation-delay: 0.9s;
}

.mock-device-page-transition__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1abc9c;
}

.mock-device-page-transition__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.mock-device-page-transition__sub {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(168, 228, 247, 0.88);
}

@keyframes mock-device-transition-ring {
  0% {
    transform: scale(0.45);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.menu-mockup--device.is-device-connect-entering,
.menu-mockup--cgm.is-device-connect-entering {
  opacity: 0;
  transform: translateY(12px);
}

.menu-mockup--device.is-device-connect-entered,
.menu-mockup--cgm.is-device-connect-entered {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-mockup--device.is-device-connect-entered .mock-device-panel,
.menu-mockup--cgm.is-device-connect-entered .mock-device-panel {
  animation: mock-device-panel-glow 1.2s ease 0.15s 1 both;
}

.menu-mockup--device.is-device-connect-entered .mock-device-panel__head,
.menu-mockup--cgm.is-device-connect-entered .mock-device-panel__head {
  animation: mock-device-section-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mock-device-panel-glow {
  0% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); }
  40% { box-shadow: 0 16px 48px rgba(26, 188, 156, 0.22); }
  100% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); }
}

@keyframes mock-device-section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mock-device-stat-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mock-device-card-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.menu-mockup--device.is-device-connect-entered .mock-device-await,
.menu-mockup--cgm.is-device-connect-entered .mock-device-await {
  animation: mock-device-scan-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@media (prefers-reduced-motion: reduce) {
  .mock-device-page-transition__ring,
  .mock-device-await__pulse,
  .mock-device-scan,
  .mock-device-scan__ring,
  .mock-device-scan__dot,
  .mock-device-scan__skeleton,
  .mock-btn__scan-spinner,
  .mock-device-panel.is-ready [data-device-catalog-wrap],
  .menu-mockup--device.is-device-connect-entered .mock-device-panel,
  .menu-mockup--device.is-device-connect-entered .mock-device-panel__head,
  .menu-mockup--cgm.is-device-connect-entered .mock-device-panel,
  .menu-mockup--cgm.is-device-connect-entered .mock-device-panel__head,
  .mock-device-panel.is-scan-revealed [data-device-stats-wrap] .mock-stat,
  .mock-device-panel.is-scan-revealed .mock-device-filters,
  .mock-device-panel.is-scan-revealed .mock-device-group,
  .mock-device-panel.is-scan-revealed .mock-device-item,
    animation: none !important;
    transition: none !important;
  }

  .menu-mockup--device.is-device-connect-entering,
  .menu-mockup--device.is-device-connect-entered,
  .menu-mockup--cgm.is-device-connect-entering,
  .menu-mockup--cgm.is-device-connect-entered {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Body composition metrics */
.mock-body-composition__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.mock-body-composition__meta {
  font-size: 0.85rem;
  font-weight: 400;
  color: #5a7a94;
}

.mock-body-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.mock-body-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: #f8fbfd;
  border: 1px solid #e8f0f6;
  border-left: 3px solid #c5dff0;
}

.mock-body-metric--ok {
  border-left-color: #1abc9c;
}

.mock-body-metric--warn {
  border-left-color: #f39c12;
  background: #fffbf5;
}

.mock-body-metric--neutral {
  border-left-color: #95a5a6;
}

.mock-body-metric__key {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #8aa4b8;
}

.mock-body-metric__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a7a94;
  line-height: 1.3;
}

.mock-body-metric__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a3d6e;
  line-height: 1.2;
}

.mock-body-metric__value small {
  margin-left: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #5a7a94;
}

.mock-body-metric[data-body-metric-card] {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s;
}

.mock-body-metric[data-body-metric-card]:hover {
  box-shadow: 0 4px 12px rgba(26, 188, 156, 0.15);
}

.mock-body-metric.is-active {
  border-color: #1abc9c;
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}

.mock-body-tabs-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef3f7;
}

.mock-body-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.mock-body-tab {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a7a94;
  background: #f0f4f8;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mock-body-tab:hover {
  color: #0a3d6e;
  background: #e8f4fc;
}

.mock-body-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #48c9b0, #1abc9c);
  border-color: #1abc9c;
}

.mock-body-charts {
  margin-top: 1rem;
}

.mock-body-chart-pane__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mock-body-chart-pane__head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-body-chart-pane__key {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #8aa4b8;
  text-transform: lowercase;
}

.mock-body-chart-pane__period {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: #5a7a94;
  padding: 0.25rem 0.6rem;
  background: #f0f4f8;
  border-radius: 6px;
}

@media (min-width: 540px) {
  .mock-body-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .mock-body-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mock-chart__line-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #5a7a94;
}

.menu-mockup--watch .mock-chart__line-labels.is-dense {
  font-size: 0.58rem;
}

.menu-mockup--watch .mock-chart__line-labels.is-scroll {
  justify-content: flex-start;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}

.menu-mockup--watch .mock-chart__line-labels.is-scroll::-webkit-scrollbar {
  display: none;
}

.menu-mockup--watch .mock-chart__line-labels.is-scroll span {
  flex: 0 0 auto;
  min-width: 1.65rem;
  text-align: center;
}

.menu-mockup--watch .mock-chart__line-labels.is-dense span {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-chart__legend {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #5a7a94;
  text-align: center;
}

/* Gauges */
.mock-gauge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mock-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.mock-gauge__ring {
  --pct: 50;
  --color: #00b4e4;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0a3d6e;
  background: conic-gradient(
    var(--color) calc(var(--pct) * 1%),
    #e8f0f6 0
  );
  position: relative;
}

.mock-gauge__ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: #fff;
  border-radius: 50%;
}

.mock-gauge__ring span {
  position: relative;
  z-index: 1;
}

.mock-gauge__label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0a3d6e;
}

.mock-gauge__sub {
  font-size: 0.72rem;
  color: #5a7a94;
}

/* Timeline */
.mock-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mock-timeline__item {
  display: grid;
  grid-template-columns: 3.5rem 12px 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eef3f7;
}

.mock-timeline__item:last-child {
  border-bottom: none;
}

.mock-timeline__time {
  font-size: 0.8rem;
  color: #5a7a94;
  text-align: right;
}

.mock-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.25rem;
  justify-self: center;
  background: #2ecc71;
}

.mock-timeline__dot--warn { background: #f39c12; }

.mock-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mock-timeline__content strong {
  font-size: 0.92rem;
  color: #0a3d6e;
}

.mock-timeline__content span {
  font-size: 0.85rem;
  color: #5a7a94;
}

/* Upload */
.mock-upload__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  border: 2px dashed #c5dff0;
  border-radius: 12px;
  background: #f8fbfd;
  color: #5a7a94;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.mock-upload__zone:hover,
.mock-upload__zone:focus-visible {
  border-color: #8e44ad;
  background: #f3ecfa;
  outline: none;
}

.mock-upload__zone.is-pressed {
  transform: scale(0.99);
}

.mock-upload__zone svg {
  color: #8e44ad;
  margin-bottom: 0.75rem;
}

.mock-upload__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0a3d6e;
}

.mock-upload__hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.mock-upload__recent {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.mock-upload__recent li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #eef3f7;
}

.mock-upload__recent li:last-child {
  border-bottom: none;
}

/* Lab file list */
.mock-file-list__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mock-file-list__head-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mock-file-list__hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: #8e44ad;
}

.mock-file-list__count {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a7a94;
}

.mock-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mock-file-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef3f7;
}

.mock-file-list__item:last-child {
  border-bottom: none;
}

.mock-file-list__item[data-has-result] {
  cursor: pointer;
}

.mock-file-list__item.is-selected {
  background: linear-gradient(90deg, rgba(142, 68, 173, 0.12), rgba(142, 68, 173, 0.02));
  border-radius: 10px;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  box-shadow: inset 3px 0 0 #8e44ad;
}

.mock-file-list__name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.mock-file-list__open-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #eef3f7;
  color: #0a5c8a;
  cursor: pointer;
}

.mock-file-list__open-btn:hover {
  background: #dceefa;
}

.mock-file-list__open-btn:focus-visible {
  outline: 2px solid #8e44ad;
  outline-offset: 2px;
}

.mock-lab-results-empty {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #5a7a94;
}

.mock-panel__sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #5a7a94;
  margin-top: 0.15rem;
}

.mock-file-list__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 1px 2px rgba(10, 61, 110, 0.06),
    0 4px 12px rgba(10, 61, 110, 0.08);
}

.mock-file-list__icon-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.mock-file-list__icon--image {
  background: linear-gradient(145deg, #f4ebfa 0%, #e3f2fb 55%, #d6eaf8 100%);
  border: 1px solid rgba(125, 60, 152, 0.12);
}

.mock-file-list__icon--pdf {
  background: linear-gradient(145deg, #fff5f5 0%, #fdecea 50%, #fce8e6 100%);
  border: 1px solid rgba(231, 76, 60, 0.14);
}

.mock-file-list__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mock-file-list__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #0a3d6e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.mock-file-list__name--link {
  text-decoration: none;
}

a.mock-file-list__name--link:hover {
  text-decoration: underline;
}

.mock-file-list-panel.is-loading {
  position: relative;
  pointer-events: none;
}

.mock-file-list-panel.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.mock-file-list-panel.is-loading .mock-file-list__head::after {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid #d8ecf7;
  border-top-color: #8e44ad;
  border-radius: 50%;
  vertical-align: middle;
  animation: mock-lab-spin 0.85s linear infinite;
}

.menu-mockup.is-lab-processing .mock-toolbar__actions .mock-btn,
.menu-mockup.is-lab-uploading .mock-toolbar__actions .mock-btn {
  opacity: 0.55;
  pointer-events: none;
}

.menu-mockup.is-lab-processing [data-lab-file-list] .mock-file-list__item:not(.is-processing) {
  opacity: 0.7;
}

.mock-file-list__item.is-processing {
  background: linear-gradient(90deg, rgba(142, 68, 173, 0.06), transparent);
  border-radius: 10px;
}

.mock-tag--loading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.mock-lab-item-spinner {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(142, 68, 173, 0.2);
  border-top-color: #8e44ad;
  border-radius: 50%;
  animation: mock-lab-spin 0.75s linear infinite;
  flex-shrink: 0;
}

/* Lab processing overlay */
.mock-lab-processing {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mock-lab-processing[hidden] {
  display: none !important;
}

.mock-lab-processing__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
}

.mock-lab-processing__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: min(20rem, 100%);
  max-width: 22rem;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  border: 1px solid #e8d5f5;
  background: #fff;
  box-shadow: 0 14px 36px rgba(142, 68, 173, 0.15);
  animation: mock-lab-card-in 0.35s ease-out;
}

.mock-lab-processing__spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3px solid #f0e6fa;
  border-top-color: #8e44ad;
  animation: mock-lab-spin 0.85s linear infinite;
}

.mock-lab-processing__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2b3c;
  text-align: center;
}

.mock-lab-processing__hint {
  margin: 0;
  font-size: 0.82rem;
  color: #5a7a94;
  text-align: center;
}

.mock-lab-processing__hint[hidden] {
  display: none;
}

.mock-lab-processing__steps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8aa4b8;
}

.mock-lab-processing__step {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f4f7fa;
  transition: background 0.25s, color 0.25s;
}

.mock-lab-processing__step.is-active {
  color: #8e44ad;
  background: #f4ebfa;
  animation: mock-lab-pulse 1.2s ease-in-out infinite;
}

.mock-lab-processing__step.is-done {
  color: #27ae60;
  background: #eafaf1;
}

[data-lab-results-panel].is-lab-results-loading .mock-table-wrap {
  opacity: 0.45;
  pointer-events: none;
}

.mock-lab-skeleton-row td {
  padding: 0.65rem 0.5rem;
}

.mock-lab-skeleton {
  display: block;
  height: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef3f7 0%, #f8fafc 45%, #eef3f7 90%);
  background-size: 200% 100%;
  animation: mock-lab-shimmer 1.2s ease-in-out infinite;
}

.mock-lab-skeleton--short {
  width: 55%;
}

.mock-lab-skeleton--tag {
  width: 4.5rem;
  height: 1.25rem;
  border-radius: 999px;
}

.mock-lab-insight-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f4ebfa;
  border: 1px solid #e8d5f5;
}

.mock-lab-insight-loading p {
  margin: 0;
  font-size: 0.9rem;
  color: #5b2c6f;
}

.mock-lab-insight-loading .mock-lab-processing__spinner {
  width: 1.35rem;
  height: 1.35rem;
  border-width: 2px;
  flex-shrink: 0;
}

.menu-mockup--lab {
  position: relative;
}

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

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

@keyframes mock-lab-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mock-lab-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.mock-file-list__sub {
  font-size: 0.8rem;
  color: #5a7a94;
}

.mock-file-list__empty {
  margin: 0;
  padding: 1.25rem 0 0.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #5a7a94;
}

/* Table */
.mock-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.mock-table th,
.mock-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eef3f7;
}

.mock-table th {
  font-weight: 500;
  color: #5a7a94;
  background: #f8fbfd;
  white-space: nowrap;
}

.mock-table td {
  color: #1a2b3c;
}

.mock-table tbody tr:last-child td {
  border-bottom: none;
}

/* Tags */
.mock-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
}

.mock-tag--ok {
  background: #eafaf1;
  color: #1e8449;
}

.mock-tag--warn {
  background: #fef9e7;
  color: #b7950b;
}

.mock-tag--pending {
  background: #fff8e6;
  color: #9a6b00;
}

/* Info cards */
.mock-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.mock-info-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
  border-left: 3px solid #c5dff0;
}

.mock-info-card--ok { border-left-color: #2ecc71; }
.mock-info-card--warn { border-left-color: #f39c12; }

.mock-info-card__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mock-info-card strong {
  display: block;
  font-size: 0.92rem;
  color: #0a3d6e;
  margin-bottom: 0.15rem;
}

.mock-info-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2b3c;
}

.mock-info-card__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #5a7a94;
}

/* Insights */
.mock-insights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-insight {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mock-insight p {
  margin: 0;
}

.mock-insight--info {
  background: #e8f4fc;
  color: #0a5c8a;
}

.mock-insight--success {
  background: #eafaf1;
  color: #1e6b42;
}

.mock-insight--warn {
  background: #fef9e7;
  color: #9a7b0a;
}

.mock-insight__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.mock-insight--info .mock-insight__icon { background: #00b4e4; color: #fff; }
.mock-insight--success .mock-insight__icon { background: #2ecc71; color: #fff; }
.mock-insight--warn .mock-insight__icon { background: #f39c12; color: #fff; }

/* Responsive */
@media (min-width: 600px) {
  .mock-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .menu-mockup {
    gap: 1.15rem;
  }

  .mock-panel {
    padding: 1.25rem 1.35rem;
  }
}

@media (max-width: 400px) {
  .mock-gauge-row {
    grid-template-columns: 1fr;
  }

  .mock-hero {
    flex-direction: column;
    text-align: center;
  }

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

  .mock-toolbar__actions {
    justify-content: stretch;
  }

  .mock-toolbar__actions .mock-btn {
    flex: 1;
  }
}

/* Chat AI */
.menu-mockup--ai .mock-chat-ai {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.mock-chat-ai {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

.mock-chat-ai__layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.mock-chat-ai__main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.85rem 0.85rem;
}

.mock-chat-ai__sidebar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(4, 30, 54, 0.4);
  border-radius: 14px;
}

.mock-chat-ai__sidebar {
  flex-shrink: 0;
  width: 0;
  overflow: hidden;
  background: #f4f9fc;
  border-right: 1px solid transparent;
  display: flex;
  flex-direction: column;
  transition: width 0.22s ease, border-color 0.22s ease;
}

.mock-chat-ai.is-history-open .mock-chat-ai__sidebar {
  width: min(17rem, 78vw);
  border-right-color: #e2eef8;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .mock-chat-ai__layout {
    position: relative;
  }

  .mock-chat-ai__sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    border-radius: 14px 0 0 14px;
  }

  .mock-chat-ai__main {
    width: 100%;
  }
}

.mock-chat-ai__new-in-sidebar {
  margin: 0 0.55rem 0.5rem;
  width: calc(100% - 1.1rem);
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.mock-chat-ai__head-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.mock-chat-ai__head-title h3 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-chat-ai__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #d8e8f4;
  border-radius: 10px;
  background: #fff;
  color: #0a3d6e;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

.mock-chat-ai__menu-toggle:hover {
  border-color: #00b4e4;
  background: #e8f7fc;
}

.mock-chat-ai__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 4.25rem;
}

.mock-chat-ai__send svg {
  flex-shrink: 0;
}

.mock-chat-ai__dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(4, 30, 54, 0.45);
  border-radius: 14px;
}

.mock-chat-ai__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  width: min(92%, 23rem);
  background: #fff;
  border: 1px solid #d8e8f4;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  padding: 1rem 1rem 0.9rem;
}

.mock-chat-ai__dialog-title {
  margin: 0;
  font-size: 1rem;
  color: #0a3d6e;
  font-weight: 700;
}

.mock-chat-ai__dialog-message {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: #3d5568;
  line-height: 1.45;
}

.mock-chat-ai__dialog-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mock-chat-ai__lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.mock-chat-ai__lightbox[hidden] {
  display: none !important;
}

.mock-chat-ai__lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(4, 20, 36, 0.88);
  cursor: zoom-out;
}

.mock-chat-ai__lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mock-chat-ai__lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.mock-chat-ai__lightbox-body {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 920px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.mock-chat-ai__lightbox-img {
  pointer-events: auto;
  max-width: 100%;
  max-height: calc(92vh - 2.5rem);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.mock-chat-ai__lightbox-caption {
  pointer-events: auto;
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #e8f4fc;
  word-break: break-word;
}

.mock-chat-ai__attach-view {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
}

.mock-chat-ai__attach-view:focus-visible {
  outline: 2px solid #00b4e4;
  outline-offset: 2px;
}

.mock-chat-ai__attach-img--zoomable,
.mock-chat-ai__attach-view .mock-chat-ai__attach-img {
  cursor: zoom-in;
}

.mock-chat-ai__attach-chip-thumb-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  flex-shrink: 0;
}

.mock-chat-ai__attach-chip-thumb-btn:focus-visible {
  outline: 2px solid #00b4e4;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  body.menu-sub-page--chat-ai .menu-page-wrap {
    max-width: min(100%, 1040px);
  }

  .mock-chat-ai__menu-toggle,
  .mock-chat-ai__sidebar-close,
  .mock-chat-ai__sidebar-backdrop {
    display: none !important;
  }

  .mock-chat-ai__sidebar {
    width: 15.5rem;
    border-right-color: #e2eef8;
    overflow: hidden;
  }

  .mock-chat-ai.is-history-open .mock-chat-ai__sidebar {
    width: 15.5rem;
  }

  .mock-chat-ai__main {
    padding: 0.85rem 1rem 1rem;
  }
}

.mock-chat-ai__sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #eef3f7;
  flex-shrink: 0;
}

.mock-chat-ai__sidebar-head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a3d6e;
}

.mock-chat-ai__sidebar-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: #f0f6fb;
  color: #5a7a94;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.mock-chat-ai__sidebar-close:hover {
  background: #e2eef8;
  color: #0a3d6e;
}

.mock-chat-ai__session-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.mock-chat-ai__session-item {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.mock-chat-ai__session-item.is-active .mock-chat-ai__session-btn {
  border-color: #00b4e4;
  background: linear-gradient(180deg, #f3fbff 0%, #e8f7fc 100%);
  box-shadow: 0 6px 16px rgba(0, 180, 228, 0.14);
}

.mock-chat-ai__session-item.is-draft .mock-chat-ai__session-title {
  color: #5a7a94;
  font-weight: 500;
}

.mock-chat-ai__session-btn {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0.6rem 0.7rem;
  border: 1px solid #e2eef8;
  border-radius: 12px;
  background: #f8fbfd;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.mock-chat-ai__session-btn:hover {
  border-color: #9dd1ee;
  background: #eef7fc;
  box-shadow: 0 6px 14px rgba(10, 61, 110, 0.08);
  transform: translateY(-1px);
}

.mock-chat-ai__session-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a3d6e;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-chat-ai__session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.mock-chat-ai__session-topic {
  font-size: 0.7rem;
  color: #0b5f8a;
  background: #e8f4fc;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #d4ebf8;
}

.mock-chat-ai__session-date {
  font-size: 0.7rem;
  color: #5a7a94;
  flex-shrink: 0;
  font-weight: 500;
}

.mock-chat-ai__session-preview {
  display: block;
  font-size: 0.76rem;
  color: #5a7a94;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-chat-ai__session-delete {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  align-self: center;
  border: 1px solid #f7d5d8;
  border-radius: 999px;
  background: #fff;
  color: #cf3d31;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.mock-chat-ai__session-delete:hover {
  background: #fef2f2;
  border-color: #f1b7bf;
  transform: scale(1.04);
}

.mock-chat-ai__session-empty {
  margin: 0;
  padding: 1rem 0.85rem;
  font-size: 0.88rem;
  color: #5a7a94;
  text-align: center;
}

.mock-chat-ai__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-bottom: 0.65rem;
}

.menu-mockup--ai .mock-chat-ai .mock-panel__head {
  margin-bottom: 0;
}

.mock-chat-ai__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mock-chat-ai__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mock-chat-ai__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mock-chat-ai__head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mock-chat-ai__head-row {
  width: 100%;
}

.mock-chat-ai__status {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a7a94;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f0f4f8;
}

.mock-chat-ai__status.is-online {
  color: #0d6b4a;
  background: #e6f7f0;
}

.mock-chat-ai__status.is-offline {
  color: #9a3412;
  background: #fff7ed;
}

.mock-chat-ai__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mock-chat-ai__topic {
  border: 1px solid #c5dff0;
  background: #fff;
  color: #1a2b3c;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.mock-chat-ai__topic.is-active {
  border-color: #00b4e4;
  background: #e8f7fc;
  color: #0b5f8a;
  font-weight: 600;
}

.mock-chat-ai__topic:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mock-chat-ai__bubble--error {
  border-color: #fecaca;
  background: #fef2f2;
}

.mock-chat-ai__bubble--error .mock-chat-ai__text {
  color: #991b1b;
}

.mock-chat-ai__messages {
  flex: 1 1 auto;
  min-height: 8rem;
  background: #ffffff;
  border: 1px solid #eef3f7;
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-mockup--ai .mock-chat-ai__messages {
  min-height: 0;
}

.mock-chat-ai__row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  max-width: min(100%, 38rem);
}

.mock-chat-ai__row--user {
  flex-direction: row-reverse;
  margin-left: auto;
}

.mock-chat-ai__row--ai {
  margin-right: auto;
  align-items: flex-start;
}

.mock-chat-ai__avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f4fc, #d4ebf8);
  border: 2px solid rgba(0, 180, 228, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-chat-ai__row--ai .mock-chat-ai__avatar {
  background: #fff;
  border-color: #c5dff0;
}

.mock-chat-ai__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mock-chat-ai__avatar-img--ai {
  object-fit: contain;
  padding: 0.2rem;
  background: #fff;
}

.mock-chat-ai__avatar-fallback {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a3d6e;
  line-height: 1;
}

.mock-chat-ai__bubble {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  word-break: break-word;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.mock-chat-ai__bubble--user {
  background: #e8f4fc;
  border: 1px solid rgba(45, 143, 212, 0.25);
}

.mock-chat-ai__bubble--ai {
  background: #f8fbfd;
  border: 1px solid #eef3f7;
}

.mock-chat-ai__bubble.is-loading {
  background: linear-gradient(120deg, #f8fbfd 0%, #eef7fc 45%, #f8fbfd 100%);
  background-size: 220% 100%;
  animation: mock-chat-ai-shimmer 1.2s linear infinite;
}

.mock-chat-ai__sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0a3d6e;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.mock-chat-ai__text {
  font-size: 0.95rem;
  color: #1a2b3c;
  line-height: 1.62;
  white-space: pre-wrap;
}

.mock-chat-ai__paragraph {
  margin: 0;
}

.mock-chat-ai__paragraph + .mock-chat-ai__paragraph {
  margin-top: 0.45rem;
}

.mock-chat-ai__paragraph--title {
  font-weight: 600;
  color: #0a3d6e;
}

.mock-chat-ai__list {
  margin: 0.4rem 0 0;
  padding-left: 1.05rem;
}

.mock-chat-ai__list li {
  margin: 0.22rem 0;
  line-height: 1.6;
}

.mock-chat-ai__list + .mock-chat-ai__paragraph,
.mock-chat-ai__paragraph + .mock-chat-ai__list {
  margin-top: 0.45rem;
}

.mock-chat-ai__typing {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #5a7a94;
}

.mock-chat-ai__typing-dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: #00b4e4;
  opacity: 0.25;
  animation: mock-chat-ai-dot 1s infinite ease-in-out;
}

.mock-chat-ai__typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.mock-chat-ai__typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.mock-chat-ai__typing-label {
  margin-left: 0.25rem;
  font-size: 0.82rem;
  color: #5a7a94;
}

@keyframes mock-chat-ai-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }
  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

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

.mock-chat-ai__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.mock-chat-ai__attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: #e8f6fc;
  border: 1px solid #b8dff0;
  font-size: 0.82rem;
  color: #0a5c8a;
}

.mock-chat-ai__attach-chip-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.mock-chat-ai__attach-chip-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.mock-chat-ai__attach-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem;
}

.mock-chat-ai__attach-chip-remove {
  border: none;
  background: transparent;
  color: #5a7a8f;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.mock-chat-ai__attach-chip-remove:hover {
  color: #c0392b;
}

.mock-chat-ai__composer {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.mock-chat-ai__composer-tools {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.mock-chat-ai__attach-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.mock-chat-ai__attach-list {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #3d5a73;
}

.mock-chat-ai__attach-list li {
  margin: 0.15rem 0;
}

.mock-chat-ai__attach-images {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.mock-chat-ai__attach-figure {
  margin: 0;
  max-width: min(100%, 280px);
}

.mock-chat-ai__attach-img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(10, 92, 138, 0.15);
  background: #f4fafd;
}

.mock-chat-ai__attach-caption {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #5a7a8f;
  line-height: 1.3;
  word-break: break-word;
}

.mock-chat-ai__bubble--user .mock-chat-ai__attach-images + .mock-chat-ai__attach-list {
  margin-top: 0.45rem;
}

.mock-chat-ai__topics {
  flex-wrap: wrap;
}

.mock-chat-ai__input {
  flex: 1;
  min-height: 46px;
  max-height: 140px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #c5dff0;
  background: #f8fbfd;
  font-family: inherit;
  font-size: 0.98rem;
  color: #1a2b3c;
  resize: none;
}

.mock-chat-ai__input:focus {
  outline: none;
  border-color: #00b4e4;
  box-shadow: 0 0 0 3px rgba(0, 180, 228, 0.18);
}

.mock-chat-ai__send {
  height: 46px;
  min-width: 4.7rem;
  padding: 0 0.85rem;
  white-space: nowrap;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 180, 228, 0.22);
}

.mock-chat-ai__send span {
  line-height: 1;
}

.mock-chat-ai__send svg {
  width: 16px;
  height: 16px;
}

.mock-chat-ai__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 4.5rem;
  overflow-y: auto;
}

.mock-chat-ai__quick-btn {
  padding: 0.42rem 0.75rem;
  font-size: 0.88rem;
}

.mock-chat-ai__disclaimer {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: #fff8e6;
  border: 1px solid #fef0c7;
  color: #7a5a00;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.mock-wearable-hub {
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 100%);
  border: 1px solid #d6e8f5;
  box-shadow: 0 10px 32px rgba(10, 61, 110, 0.08);
  overflow: hidden;
}

.mock-wearable-hub__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, rgba(0, 180, 228, 0.08), rgba(41, 128, 185, 0.06));
  border-bottom: 1px solid #e3f0f8;
}

.mock-wearable-hub.is-collapsed .mock-wearable-hub__hero {
  border-bottom: none;
}

.mock-wearable-hub.is-collapsed .mock-wearable-hub__hero-copy p {
  display: none;
}

.mock-wearable-hub__hero-icon {
  flex-shrink: 0;
  position: relative;
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #35cff4 0%, #00b4e4 42%, #2471a3 100%);
  color: #fff;
  box-shadow:
    0 10px 22px rgba(0, 180, 228, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.mock-wearable-hub__hero-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.mock-wearable-hub__hero-icon svg {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 48, 87, 0.18));
}

.mock-wearable-hub__hero-copy {
  flex: 1;
  min-width: 0;
}

.mock-wearable-hub__hero-copy h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a3d6e;
}

.mock-wearable-hub__hero-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a7a94;
}

.mock-wearable-hub__summary {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.mock-wearable-hub.is-collapsed .mock-wearable-hub__summary {
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mock-wearable-hub__chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid #dbe8f2;
  background: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.mock-wearable-hub__chip.is-connected {
  border-color: #b8e6cc;
  background: #f6fffa;
}

.mock-wearable-hub__chip.is-connected:hover {
  border-color: #95d9b3;
  box-shadow: 0 4px 14px rgba(32, 116, 72, 0.08);
}

.mock-wearable-hub__chip.is-disconnected {
  border-style: dashed;
  background: #fafcfe;
}

.mock-wearable-hub__chip.is-disconnected:hover {
  border-color: #9cc8e4;
  border-style: solid;
  background: #f5fbff;
}

.mock-wearable-hub__chip.is-active {
  box-shadow: 0 0 0 2px rgba(0, 180, 228, 0.14);
  border-color: #00b4e4;
}

.mock-wearable-hub__chip-logo,
.mock-wearable-provider__logo {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8eef3;
  overflow: hidden;
  padding: 0.18rem;
}

.mock-wearable-provider__logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  padding: 0.28rem;
}

.mock-wearable-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mock-wearable-hub__chip-logo--google,
.mock-wearable-hub__chip-logo--huawei,
.mock-wearable-provider__logo--google,
.mock-wearable-provider__logo--huawei {
  background: #fff;
}

.mock-wearable-hub__chip-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.mock-wearable-hub__chip-copy strong {
  font-size: 0.78rem;
  color: #1a2b3c;
  line-height: 1.2;
}

.mock-wearable-hub__chip-copy span {
  font-size: 0.7rem;
  color: #6b8296;
  line-height: 1.25;
}

.mock-wearable-hub__chip.is-connected .mock-wearable-hub__chip-copy span {
  color: #207448;
}

.mock-wearable-hub__chip-action {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid #c5dff0;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0a3d6e;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.mock-wearable-hub__chip.is-disconnected .mock-wearable-hub__chip-action {
  color: #fff;
  background: linear-gradient(135deg, #00b4e4, #2980b9);
  border-color: transparent;
}

.mock-wearable-hub__chip.is-connected .mock-wearable-hub__chip-action:hover:not(:disabled),
.mock-wearable-hub__chip.is-connected .mock-wearable-hub__chip-action:focus-visible:not(:disabled) {
  background: #f0f8fc;
  border-color: #9cc8e4;
  color: #0a3d6e;
}

.mock-wearable-hub__chip.is-disconnected .mock-wearable-hub__chip-action:hover:not(:disabled),
.mock-wearable-hub__chip.is-disconnected .mock-wearable-hub__chip-action:focus-visible:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #0098c7, #216ba5);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 180, 228, 0.28);
  transform: translateY(-1px);
}

.mock-wearable-hub__chip-action:active:not(:disabled) {
  transform: translateY(0);
}

.mock-wearable-hub__chip-action:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mock-wearable-hub__toggle {
  flex-shrink: 0;
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid #c5dff0;
  border-radius: 10px;
  background: #fff;
  color: #486074;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.mock-wearable-hub__toggle:hover {
  background: #f0f8fc;
}

.mock-wearable-hub__toggle svg {
  transition: transform 0.25s ease;
}

.mock-wearable-hub.is-collapsed .mock-wearable-hub__toggle svg {
  transform: rotate(-90deg);
}

.mock-wearable-hub__body {
  padding: 0.95rem 1.1rem 1.1rem;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
}

.mock-wearable-hub.is-collapsed .mock-wearable-hub__body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
}

.mock-wearable-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mock-wearable-provider {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid #dbe8f2;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.mock-wearable-provider.is-connected {
  border-color: #b8e6cc;
  background: linear-gradient(180deg, #f8fffb 0%, #ffffff 100%);
}

.mock-wearable-provider.is-connected:hover {
  border-color: #95d9b3;
  box-shadow: 0 4px 14px rgba(32, 116, 72, 0.08);
}

.mock-wearable-provider.is-active {
  border-color: #00b4e4;
  box-shadow: 0 0 0 3px rgba(0, 180, 228, 0.12);
}

.mock-wearable-provider.is-disconnected {
  border-style: dashed;
  background: #fafcfe;
}

.mock-wearable-provider.is-disconnected:hover {
  border-color: #9cc8e4;
  border-style: solid;
  background: #f5fbff;
}

.mock-wearable-provider__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.mock-wearable-provider__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.mock-wearable-provider__logo {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8eef3;
  overflow: hidden;
  padding: 0.28rem;
}

.mock-wearable-provider__logo--google,
.mock-wearable-provider__logo--huawei {
  background: #fff;
}

.mock-wearable-provider__titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mock-wearable-provider__titles strong {
  font-size: 0.92rem;
  color: #1a2b3c;
  line-height: 1.2;
}

.mock-wearable-provider__active-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #0077a8;
  background: #e6f7fd;
}

.mock-wearable-provider__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b8296;
  white-space: nowrap;
}

.mock-wearable-provider.is-connected .mock-wearable-provider__status {
  color: #207448;
}

.mock-wearable-provider__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-wearable-provider.is-connected .mock-wearable-provider__dot {
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.mock-wearable-provider__account {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
}

.mock-wearable-provider__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mock-wearable-provider__avatar--placeholder {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #486074;
  background: #e8f2f9;
}

.mock-wearable-provider__account-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.mock-wearable-provider__name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1a2b3c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-wearable-provider__sync {
  font-size: 0.75rem;
  color: #6b8296;
}

.mock-wearable-provider__empty {
  margin: 0;
  font-size: 0.8rem;
  color: #7a92a5;
  line-height: 1.45;
}

.mock-wearable-provider__btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #00b4e4, #2980b9);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
}

.mock-wearable-provider__btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0098c7, #216ba5);
  box-shadow: 0 6px 16px rgba(0, 180, 228, 0.28);
}

.mock-wearable-provider__btn:active:not(:disabled) {
  transform: scale(0.98);
}

.mock-wearable-provider__btn--ghost {
  color: #0a3d6e;
  background: #fff;
  border: 1px solid #c5dff0;
}

.mock-wearable-provider__btn--ghost:hover:not(:disabled) {
  background: #f0f8fc;
  border-color: #9cc8e4;
  color: #0a3d6e;
  box-shadow: none;
}

.menu-mockup--watch {
  position: relative;
}

.menu-mockup--watch .mock-toolbar {
  border: 1px solid #d6e8f5;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.menu-mockup--watch .mock-toolbar__filters {
  align-items: center;
  overflow: visible;
}

.mock-wearable-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0.15rem;
}

.mock-wearable-date__divider {
  width: 1px;
  height: 1.6rem;
  background: #d6e8f5;
  margin: 0 0.15rem;
}

.mock-wearable-date__field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mock-wearable-date__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a7a94;
  white-space: nowrap;
}

.mock-wearable-date__control {
  position: relative;
}

.mock-wearable-date__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 10.5rem;
  padding: 0.38rem 0.6rem;
  border: 1px solid #c5dff0;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  color: #486074;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.mock-wearable-date__trigger:hover {
  border-color: #9cc8e4;
  background: #f8fcff;
}

.mock-wearable-date__trigger:focus-visible {
  outline: none;
  border-color: #00b4e4;
  box-shadow: 0 0 0 2px rgba(0, 180, 228, 0.14);
}

.mock-wearable-date__trigger.has-value,
.mock-wearable-date.is-active .mock-wearable-date__trigger {
  border-color: #00b4e4;
  background: #f4fbff;
  color: #0a3d6e;
}

.mock-wearable-date.is-open .mock-wearable-date__trigger {
  border-color: #00b4e4;
  box-shadow: 0 0 0 2px rgba(0, 180, 228, 0.14);
}

.mock-wearable-date__display {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.mock-wearable-date__icon {
  flex-shrink: 0;
  color: #2980b9;
}

.mock-wearable-date__popover {
  min-width: 17.5rem;
}

.mock-wearable-date__popover[hidden] {
  display: none;
}

.mock-wearable-calendar {
  padding: 0.75rem;
  border: 1px solid #d6e8f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  box-shadow: 0 12px 32px rgba(10, 61, 110, 0.12);
}

.mock-wearable-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mock-wearable-calendar__title {
  flex: 1;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a3d6e;
}

.mock-wearable-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid #c5dff0;
  border-radius: 8px;
  background: #fff;
  color: #2980b9;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.mock-wearable-calendar__nav:hover {
  background: #f0f8fc;
  border-color: #9cc8e4;
}

.mock-wearable-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}

.mock-wearable-calendar__weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #5a7a94;
}

.mock-wearable-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}

.mock-wearable-calendar__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0a3d6e;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.mock-wearable-calendar__day:hover:not(:disabled):not(.is-selected) {
  background: #e8f6fc;
}

.mock-wearable-calendar__day.is-other-month {
  color: #9bb3c4;
}

.mock-wearable-calendar__day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px #00b4e4;
  color: #2980b9;
}

.mock-wearable-calendar__day.is-selected {
  background: linear-gradient(135deg, #00b4e4, #2980b9);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 180, 228, 0.28);
}

.mock-wearable-calendar__day.is-disabled {
  color: #c5d5e2;
  cursor: not-allowed;
}

.mock-wearable-calendar__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e3f0f8;
}

.mock-wearable-calendar__action {
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00b4e4, #2980b9);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.mock-wearable-calendar__action:hover {
  opacity: 0.92;
}

.mock-wearable-calendar__action--ghost {
  background: #fff;
  border: 1px solid #c5dff0;
  color: #486074;
}

.mock-wearable-calendar__action--ghost:hover {
  background: #f0f8fc;
  border-color: #9cc8e4;
  opacity: 1;
}

.mock-wearable-date__clear {
  padding: 0.32rem 0.55rem;
  border: 1px solid #c5dff0;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #486074;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.mock-wearable-date__clear:hover:not(:disabled) {
  background: #f0f8fc;
  border-color: #9cc8e4;
}

.menu-mockup--watch .mock-chip.is-active {
  background: linear-gradient(135deg, #00b4e4, #2980b9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 180, 228, 0.25);
}

.menu-mockup--watch .mock-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.menu-mockup--watch .mock-stat {
  border-left: none;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid #e3f0f8;
  box-shadow: 0 4px 16px rgba(10, 61, 110, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 7.5rem;
}

.menu-mockup--watch .mock-stat__icon,
.menu-mockup--watch .mock-body-metric__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.15rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef9fd, #e3f4fb);
  color: #2980b9;
  flex-shrink: 0;
}

.menu-mockup--watch .mock-stat__icon svg,
.menu-mockup--watch .mock-body-metric__icon svg {
  display: block;
}

.menu-mockup--watch .mock-stat__summary,
.menu-mockup--watch .mock-body-metric__summary {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #5a7a94;
}

.menu-mockup--watch .mock-stat__trend {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #eef5fb;
  font-size: 0.68rem;
  font-weight: 700;
  color: #2980b9;
}

.menu-mockup--watch .mock-stat--warn .mock-stat__trend {
  background: #fff7ed;
  color: #d97706;
}

.menu-mockup--watch .mock-stat--ok .mock-stat__trend {
  background: #ecfdf5;
  color: #16a34a;
}

.menu-mockup--watch .mock-stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.menu-mockup--watch .mock-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a3d6e;
}

.menu-mockup--watch .mock-body-composition {
  border: 1px solid #d6e8f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.menu-mockup--watch .mock-body-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.menu-mockup--watch .mock-body-metric {
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
  background: #fff;
  border: 1px solid #e3f0f8;
  border-left-width: 3px;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-height: 5.8rem;
}

.menu-mockup--watch .mock-body-metric__icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.1rem;
  border-radius: 8px;
}

.menu-mockup--watch .mock-body-metric__key {
  display: none;
}

.menu-mockup--watch .mock-body-metric__label {
  font-size: 0.76rem;
  color: #5a7a94;
}

.menu-mockup--watch .mock-body-metric__value {
  font-size: 1.05rem;
  color: #0a3d6e;
}

.menu-mockup--watch .mock-body-metric__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-mockup--watch .mock-body-tabs {
  gap: 0.35rem;
  padding-bottom: 0.15rem;
}

.menu-mockup--watch .mock-body-tab {
  font-size: 0.76rem;
  padding: 0.38rem 0.62rem;
  white-space: nowrap;
}

.menu-mockup--watch .mock-body-metric.is-active {
  border-color: #00b4e4;
  background: #eef9fd;
  box-shadow: 0 0 0 2px rgba(0, 180, 228, 0.12);
}

.mock-wearable-sources {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.mock-wearable-sources__head {
  margin-bottom: 0.75rem;
}

.mock-wearable-sources__summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid #dceaf4;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4faff);
}

.mock-wearable-sources__summary strong {
  font-size: 2rem;
  line-height: 1;
  color: #0a3d6e;
}

.mock-wearable-sources__summary span {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00a5d5;
}

.mock-wearable-sources__summary p {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #5a7a94;
}

.mock-wearable-sources__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.mock-wearable-source-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid #e3f0f8;
  border-radius: 14px;
  background: #fff;
}

.mock-wearable-source-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 12px;
  color: #00a5d5;
  background: #eaf8fd;
}

.mock-wearable-source-card__icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.mock-wearable-source-card__body {
  min-width: 0;
}

.mock-wearable-source-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.mock-wearable-source-card__head h5 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0a3d6e;
}

.mock-wearable-source-card__head span {
  flex: 0 0 auto;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  background: #f0f7fc;
  font-size: 0.62rem;
  color: #5a7a94;
}

.mock-wearable-source-card__meta {
  display: grid;
  gap: 0.38rem;
  margin: 0.65rem 0 0;
}

.mock-wearable-source-card__meta div {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.45rem;
}

.mock-wearable-source-card__meta dt,
.mock-wearable-source-card__meta dd {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
}

.mock-wearable-source-card__meta dt {
  color: #8aa2b5;
}

.mock-wearable-source-card__meta dd {
  color: #334155;
  word-break: break-word;
}

.mock-wearable-source-card__id {
  margin: 0.6rem 0 0;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: #f7fafc;
  font-size: 0.62rem;
  line-height: 1.35;
  color: #7890a4;
  word-break: break-all;
}

.mock-wearable-source-empty {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px dashed #cfe3f2;
  border-radius: 14px;
  background: #f8fcff;
}

.mock-wearable-source-empty strong,
.mock-wearable-source-empty span {
  display: block;
}

.mock-wearable-source-empty strong {
  color: #0a3d6e;
}

.mock-wearable-source-empty span {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #5a7a94;
}

.menu-mockup--watch .mock-alerts:not([hidden]) {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 0 0.65rem;
  padding: 0;
}

.menu-mockup--watch .mock-alerts,
.mock-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.45s ease,
    gap 0.45s ease;
  max-height: 20rem;
  overflow: hidden;
}

.mock-alerts.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mock-alerts.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin: 0;
  gap: 0;
  pointer-events: none;
}

.mock-alerts.is-hiding .mock-alert {
  opacity: 0;
  transform: translateY(-4px);
}

.mock-alerts[hidden] {
  display: none !important;
}

.mock-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.78rem 0.92rem;
  border: 1px solid #d6e8f5;
  border-left-width: 3px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 4px 16px rgba(10, 61, 110, 0.06);
  color: #1a2b3c;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.mock-alerts.is-visible .mock-alert {
  opacity: 1;
  transform: translateY(0);
}

.mock-alerts.is-visible .mock-alert:nth-child(1) {
  transition-delay: 0.04s;
}

.mock-alerts.is-visible .mock-alert:nth-child(2) {
  transition-delay: 0.1s;
}

.mock-alerts.is-visible .mock-alert:nth-child(3) {
  transition-delay: 0.16s;
}

.mock-alert__text {
  margin: 0;
  flex: 1;
  color: #1a2b3c;
}

.mock-alert__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  border-radius: 10px;
}

.mock-alert__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.mock-alert--success {
  border-left-color: #2ecc71;
  border-color: #c8efd9;
}

.mock-alert--success .mock-alert__icon {
  background: rgba(46, 204, 113, 0.14);
  color: #1e8e5a;
}

.mock-alert--info {
  border-left-color: #00b4e4;
  border-color: #cce8f8;
}

.mock-alert--info .mock-alert__icon {
  background: rgba(0, 180, 228, 0.12);
  color: #0090b8;
}

.mock-alert--warn {
  border-left-color: #f5a623;
  border-color: #fde6b3;
}

.mock-alert--warn .mock-alert__icon {
  background: rgba(245, 166, 35, 0.14);
  color: #c27800;
}

.menu-mockup--watch .mock-alert--success {
  background: linear-gradient(180deg, #f8fffb 0%, #ffffff 100%);
}

.menu-mockup--watch .mock-alert--info {
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

.menu-mockup--watch .mock-alert--warn {
  background: linear-gradient(180deg, #fffbf3 0%, #ffffff 100%);
}

@media (min-width: 900px) {
  .menu-mockup--watch .mock-body-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.menu-mockup--watch.is-wearable-loading > :not([data-wearable-sync]):not([data-wearable-hub]) {
  pointer-events: none;
  user-select: none;
}

.mock-wearable-sync {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mock-wearable-sync[hidden] {
  display: none !important;
}

.mock-wearable-sync__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 251, 253, 0.82);
  backdrop-filter: blur(2px);
}

.mock-wearable-sync__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: min(18rem, 100%);
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  border: 1px solid #c5dff0;
  background: #fff;
  box-shadow: 0 12px 32px rgba(26, 43, 60, 0.12);
}

.mock-wearable-sync__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid #d8ecf7;
  border-top-color: #00b4e4;
  animation: mock-wearable-spin 0.85s linear infinite;
}

.mock-wearable-sync__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2b3c;
  text-align: center;
}

.mock-wearable-sync__hint {
  margin: 0;
  font-size: 0.86rem;
  color: #5a7a94;
  text-align: center;
}

.mock-wearable-sync__hint[hidden] {
  display: none;
}

.menu-mockup--watch.is-wearable-loading [data-mock-action="refresh-data"] {
  opacity: 0.65;
}

.mock-wearable-sleep {
  --sleep-deep: #1e40af;
  --sleep-light: #38bdf8;
  --sleep-rem: #8b5cf6;
  --sleep-awake: #f59e0b;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid #e8eef3;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.mock-wearable-sleep__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.mock-wearable-sleep__header-copy {
  min-width: 0;
}

.mock-wearable-sleep__eyebrow {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

.mock-wearable-sleep__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.mock-wearable-sleep__schedule {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
}

.mock-wearable-sleep__quick-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  color: #64748b;
}

.mock-wearable-sleep__quick-stats strong {
  color: #0f172a;
  font-weight: 700;
}

.mock-wearable-sleep__quick-stats span {
  color: #cbd5e1;
}

.mock-wearable-sleep__score-ring {
  --sleep-score-color: #38bdf8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12);
}

.mock-wearable-sleep__score-ring--a { --sleep-score-color: #22c55e; }
.mock-wearable-sleep__score-ring--b { --sleep-score-color: #38bdf8; }
.mock-wearable-sleep__score-ring--c { --sleep-score-color: #f59e0b; }
.mock-wearable-sleep__score-ring--d { --sleep-score-color: #ef4444; }

.mock-wearable-sleep__score-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mock-wearable-sleep__score-bg,
.mock-wearable-sleep__score-progress {
  fill: none;
  stroke-width: 5;
}

.mock-wearable-sleep__score-bg {
  stroke: #e8eef3;
}

.mock-wearable-sleep__score-progress {
  stroke-linecap: round;
}

.mock-wearable-sleep__score-ring-value {
  position: relative;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sleep-score-color);
}

.mock-wearable-sleep__score-ring-label {
  position: relative;
  margin-top: 0.12rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
}

.mock-wearable-sleep__score-ring small {
  position: relative;
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--sleep-score-color);
}

.mock-wearable-sleep__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.mock-wearable-sleep__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.45rem;
  border: 1px solid #e3f0f8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.mock-wearable-sleep__stat-icon {
  font-size: 1rem;
  line-height: 1;
}

.mock-wearable-sleep__stat strong {
  font-size: 0.92rem;
  color: #0a3d6e;
}

.mock-wearable-sleep__stat small {
  font-size: 0.64rem;
  color: #5a7a94;
}

.mock-wearable-sleep__days {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.mock-wearable-sleep__day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  min-width: 5.25rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #dceaf4;
  border-radius: 12px;
  background: #fff;
  color: #486074;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mock-wearable-sleep__day span {
  font-size: 0.68rem;
}

.mock-wearable-sleep__day-name {
  font-weight: 700;
  color: #486074;
}

.mock-wearable-sleep__day-date {
  color: #8aa2b5;
}

.mock-wearable-sleep__day strong {
  margin-top: 0.08rem;
  font-size: 0.78rem;
  color: #0a3d6e;
}

.mock-wearable-sleep__day.is-active,
.mock-wearable-sleep__day:hover {
  border-color: #00b4e4;
  box-shadow: 0 4px 14px rgba(0, 180, 228, 0.14);
}

.mock-wearable-sleep__day.is-active {
  background: linear-gradient(180deg, #ffffff, #eef8fd);
}

.mock-wearable-sleep__overview {
  padding: 0.75rem;
  border: 1px solid #e3f0f8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
}

.mock-wearable-sleep__overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mock-wearable-sleep__overview-head h5,
.mock-wearable-sleep__timeline h5,
.mock-wearable-sleep__stages h5,
.mock-wearable-sleep__factors h5 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.mock-wearable-sleep__overview-head span {
  font-size: 0.68rem;
  color: #5a7a94;
}

.mock-wearable-sleep__overview-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 8.25rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.mock-wearable-sleep__overview-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.22rem;
  min-width: 2.65rem;
  height: 7.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mock-wearable-sleep__overview-track {
  position: relative;
  display: block;
  width: 1.45rem;
  height: 5.2rem;
  border-radius: 8px 8px 4px 4px;
  background: #eef2f7;
  overflow: hidden;
}

.mock-wearable-sleep__overview-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #7ec8ea, #00b4e4);
  transition: height 0.2s ease, transform 0.15s ease, background 0.15s ease;
}

.mock-wearable-sleep__overview-value {
  font-size: 0.62rem;
  font-weight: 800;
  color: #0a3d6e;
  line-height: 1;
}

.mock-wearable-sleep__overview-bar small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  font-size: 0.58rem;
  color: #5a7a94;
  white-space: nowrap;
}

.mock-wearable-sleep__overview-bar small b {
  font-weight: 700;
  color: #486074;
}

.mock-wearable-sleep__overview-bar small em {
  font-style: normal;
  color: #8aa2b5;
}

.mock-wearable-sleep__overview-bar.is-active .mock-wearable-sleep__overview-fill,
.mock-wearable-sleep__overview-bar:hover .mock-wearable-sleep__overview-fill {
  background: linear-gradient(180deg, #2980b9, #0a3d6e);
  transform: scaleY(1.03);
}

.mock-wearable-sleep__timeline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mock-wearable-sleep__hypnogram {
  position: relative;
  height: 2.75rem;
  border-radius: 10px;
  background: #f1f5f9;
  overflow: hidden;
}

.mock-wearable-sleep__hypnogram--stacked {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 2.75rem;
}

.mock-wearable-sleep__hypnogram--stacked .mock-wearable-sleep__hypno-block {
  position: relative;
  left: auto !important;
  top: 0;
  bottom: 0;
  height: 100%;
  flex: 0 0 auto;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}

.mock-wearable-sleep__hypno-block[data-stage='deep'],
.mock-wearable-sleep__stack-block[data-stage='deep'] {
  background-color: var(--sleep-deep);
}

.mock-wearable-sleep__hypno-block[data-stage='light'],
.mock-wearable-sleep__stack-block[data-stage='light'] {
  background-color: var(--sleep-light);
}

.mock-wearable-sleep__hypno-block[data-stage='rem'],
.mock-wearable-sleep__stack-block[data-stage='rem'] {
  background-color: var(--sleep-rem);
}

.mock-wearable-sleep__hypno-block[data-stage='awake'],
.mock-wearable-sleep__stack-block[data-stage='awake'] {
  background-color: var(--sleep-awake);
}

.mock-wearable-sleep__hypno-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: #94a3b8;
}

.mock-wearable-sleep__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-top: 0.25rem;
}

.mock-wearable-sleep__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: #64748b;
}

.mock-wearable-sleep__legend-swatch {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 0.7rem;
}

.mock-wearable-sleep__legend-swatch circle {
  fill: currentColor;
  stroke: currentColor;
}

.mock-wearable-sleep__legend-item--deep {
  color: var(--sleep-deep);
}

.mock-wearable-sleep__legend-item--light {
  color: var(--sleep-light);
}

.mock-wearable-sleep__legend-item--rem {
  color: var(--sleep-rem);
}

.mock-wearable-sleep__legend-item--awake {
  color: var(--sleep-awake);
}

.mock-wearable-sleep__stack {
  display: flex;
  width: 100%;
  height: 0.55rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
}

.mock-wearable-sleep__stack-block {
  display: block;
  height: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

.mock-wearable-sleep__hypno-block {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.mock-wearable-sleep__stage-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mock-wearable-sleep__stage-row {
  display: grid;
  grid-template-columns: auto minmax(3.5rem, 4.5rem) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem;
}

.mock-wearable-sleep__stage-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.mock-wearable-sleep__stage-name {
  font-size: 0.72rem;
  color: #475569;
}

.mock-wearable-sleep__stage-track {
  display: block;
  width: 100%;
  min-width: 0;
  height: 0.5rem;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.mock-wearable-sleep__stage-fill {
  display: block;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.mock-wearable-sleep__stage-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.mock-wearable-sleep__stage-pct {
  font-size: 0.68rem;
  color: #94a3b8;
  min-width: 2rem;
  text-align: right;
}

.mock-wearable-sleep__stage-cards-grid,
.mock-wearable-sleep__factor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.mock-wearable-sleep__factor-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.6rem 0.65rem 0.6rem 0.75rem;
  border: 1px solid #eef2f7;
  border-left: 3px solid var(--factor-accent, #94a3b8);
  border-radius: 10px;
  background: #fafbfc;
}

.mock-wearable-sleep__factor-card strong {
  font-size: 0.86rem;
  color: #0f172a;
}

.mock-wearable-sleep__factor-label {
  font-size: 0.66rem;
  color: #64748b;
}

.mock-wearable-sleep__factor-card small {
  font-size: 0.64rem;
  color: #94a3b8;
}

.mock-wearable-sleep__factor-track {
  display: block;
  width: 100%;
  height: 0.34rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.mock-wearable-sleep__factor-fill {
  display: block;
  height: 100%;
  max-width: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.mock-wearable-sleep__source {
  margin: 0;
  font-size: 0.72rem;
  color: #5a7a94;
}

.mock-wearable-sleep__summary {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.mock-wearable-sleep__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #00b4e4, #2980b9);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 180, 228, 0.22);
}

.mock-wearable-sleep__score--a { background: linear-gradient(135deg, #22c55e, #16a34a); }
.mock-wearable-sleep__score--b { background: linear-gradient(135deg, #00b4e4, #2980b9); }
.mock-wearable-sleep__score--c { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mock-wearable-sleep__score--d { background: linear-gradient(135deg, #ef4444, #dc2626); }

.mock-wearable-sleep__score-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.mock-wearable-sleep__score-label {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.mock-wearable-sleep__meta {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #486074;
}

.mock-wearable-sleep__meta p {
  margin: 0 0 0.2rem;
}

.mock-wearable-sleep__meta strong {
  color: #0a3d6e;
}

.mock-wearable-sleep__stages h5,
.mock-wearable-sleep__factors h5 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a3d6e;
}

.mock-wearable-sleep__stage + .mock-wearable-sleep__stage {
  margin-top: 0.45rem;
}

.mock-wearable-sleep__stage-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  color: #5a7a94;
}

.mock-wearable-sleep__stage-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e8f2f9;
  overflow: hidden;
}

.mock-wearable-sleep__stage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.mock-wearable-sleep__factor {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e3f0f8;
  border-radius: 10px;
  background: #fff;
}

.mock-wearable-sleep__factor span {
  display: block;
  font-size: 0.68rem;
  color: #5a7a94;
}

.mock-wearable-sleep__factor strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #0a3d6e;
}

.mock-wearable-sleep__factor small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: #2980b9;
}

@media (max-width: 720px) {
  .mock-wearable-sources {
    grid-template-columns: 1fr;
  }

  .mock-wearable-sources__grid {
    grid-template-columns: 1fr;
  }

  .mock-wearable-source-card__meta div {
    grid-template-columns: 1fr;
    gap: 0.08rem;
  }

  .mock-wearable-sleep__header {
    flex-direction: column;
  }

  .mock-wearable-sleep__score-ring {
    align-self: flex-start;
  }

  .mock-wearable-sleep__stage-row {
    grid-template-columns: auto minmax(3rem, 3.5rem) 1fr auto;
  }

  .mock-wearable-sleep__stage-pct {
    display: none;
  }

  .mock-wearable-sleep__factor-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 768px) {
  .mock-wearable-hub__grid,
  .mock-wearable-hub__summary {
    grid-template-columns: 1fr;
  }

  .menu-mockup--watch .mock-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .mock-wearable-hub__hero {
    align-items: flex-start;
  }

  .mock-wearable-hub__chip {
    flex-wrap: wrap;
  }

  .mock-wearable-hub__chip-action {
    width: 100%;
    text-align: center;
  }

  .mock-wearable-provider__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-chat-ai__main {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .mock-chat-ai__composer {
    flex-direction: column;
    align-items: stretch;
  }

  .mock-chat-ai__send {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
  }
}
