.watch-eyebrow {
  margin: 0 0 7px;
  color: #ee4dff !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.watch-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.watch-summary > div {
  padding: 22px;
  border: 1px solid #352141;
  border-radius: 14px;
  background: #100a16;
}

.watch-summary small {
  display: block;
  color: #9586a1;
  font-size: 12px;
}

.watch-summary strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 25px;
}

.watch-panel {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid #352141;
  border-radius: 16px;
  background: #100a16;
}

.watch-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.watch-panel-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

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

.watch-form-grid label {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: #d9cce2;
  font-size: 13px;
  font-weight: 700;
}

.watch-form-grid select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 42px 0 14px;

  border: 1px solid #513061;
  border-radius: 10px;

  background-color: #0c0810;
  color: #fff;

  font: inherit;
  font-size: 14px;

  cursor: pointer;

  appearance: auto;
  -webkit-appearance: menulist;
}

.watch-form-grid select:hover {
  border-color: #80509a;
}

.watch-form-grid select:focus {
  border-color: #ee4dff;
  outline: 2px solid rgba(238, 77, 255, .18);
  outline-offset: 2px;
}

.watch-form-grid option {
  background: #100a16;
  color: #fff;
}

.watch-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

#watch-status {
  color: #9586a1;
  font-size: 13px;
}

.watch-primary-button,
.watch-secondary-button {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    border-color 160ms ease;
}

.watch-primary-button {
  border: 1px solid #ee4dff;
  background:
    linear-gradient(
      135deg,
      #b54cff,
      #ee4dff
    );
  color: #fff;

  box-shadow:
    0 10px 28px rgba(181, 76, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.watch-primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);

  box-shadow:
    0 11px 30px rgba(181, 76, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

.watch-primary-button:focus-visible,
.watch-secondary-button:focus-visible {
  outline: 2px solid #f3b4ff;
  outline-offset: 3px;
}

.watch-primary-button:disabled {
  opacity: .6;
  cursor: wait;
}

.watch-secondary-button {
  border: 1px solid #433052;
  background: #150c1c;
  color: #d8b6ff;
}

.watch-secondary-button:hover {
  border-color: #80509a;
  background: #1e1028;
}

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

.watch-detail-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid #2f1d3a;
  border-radius: 11px;
  background: #0c0810;
}

.watch-detail-item small {
  display: block;
  margin-bottom: 6px;
  color: #8d7d99;
  font-size: 11px;
}

.watch-detail-item strong {
  display: block;
  color: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.watch-change-section {
  margin-top: 25px;
}

.watch-change-section h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

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

.watch-signal-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;

  padding: 16px;

  border: 1px solid #2f1d3a;
  border-radius: 11px;
  background: #0c0810;
}

.watch-signal-card strong {
  color: #fff;
  font-size: 13px;
}

.watch-signal-card small {
  grid-column: 1 / -1;
  color: #8d7d99;
  line-height: 1.45;
}

.watch-change-badge {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.watch-change-badge.changed {
  border: 1px solid rgba(238, 77, 255, .4);
  background: rgba(238, 77, 255, .12);
  color: #f3b4ff;
}

.watch-change-badge.stable {
  border: 1px solid #433052;
  background: #150c1c;
  color: #d8b6ff;
}

.watch-change-row {
  padding: 12px 14px;
  border: 1px solid #2f1d3a;
  border-radius: 9px;
  background: #0c0810;
  color: #d9cce2;
  font-size: 13px;
}

.watch-change-row + .watch-change-row {
  margin-top: 8px;
}

.watch-history-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;

  padding: 15px;

  border: 1px solid #2f1d3a;
  border-radius: 11px;
  background: #0c0810;
}

.watch-history-card + .watch-history-card {
  margin-top: 10px;
}

.watch-history-card strong {
  color: #fff;
}

.watch-history-card span {
  color: #d8b6ff;
  font-size: 12px;
}

.watch-history-card small {
  grid-column: 1 / -1;
  color: #776984;
  overflow-wrap: anywhere;
}

.watch-empty,
#watch-history {
  color: #9586a1;
  font-size: 13px;
}

.watch-disclaimer {
  max-width: 900px;
  margin: 24px 0 8px;
  padding: 15px 17px;

  border-left: 2px solid #513061;

  color: #776984;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .watch-summary,
  .watch-form-grid,
  .watch-result-grid,
  .watch-signals {
    grid-template-columns: 1fr;
  }

  .watch-panel-heading,
  .watch-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Watch uses the standard Aethelis authenticated workspace shell. */
.mobile-nav a.active {
  background: #17101e;
  color: #fff;
  border-color: #513061;
}

/* Watch monitoring visualizations */

.watch-chart-intro {
  margin: -4px 0 14px;
  color: #9586a1;
  font-size: 12px;
}

.watch-chart-card {
  padding: 18px;
  border: 1px solid #2f1d3a;
  border-radius: 12px;
  background: #0c0810;
  overflow: hidden;
}

.watch-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.watch-chart-heading strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.watch-chart-heading small {
  display: block;
  margin-top: 4px;
  color: #776984;
  font-size: 11px;
}

.watch-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 220px;
  padding: 18px 8px 0;
  border-bottom: 1px solid #352141;
}

.watch-version-bar-wrap {
  display: flex;
  flex: 1 1 0;
  min-width: 44px;
  height: 200px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.watch-version-value {
  margin-bottom: 7px;
  color: #d8b6ff;
  font-size: 11px;
  font-weight: 800;
}

.watch-version-bar {
  width: min(54px, 75%);
  min-height: 4px;
  border: 1px solid rgba(238, 77, 255, .45);
  border-radius: 7px 7px 2px 2px;
  background:
    linear-gradient(
      180deg,
      #ee4dff,
      #8d3cff
    );
  box-shadow: 0 0 18px rgba(181, 76, 255, .14);
}

.watch-version-label {
  margin-top: 9px;
  color: #8d7d99;
  font-size: 11px;
  font-weight: 700;
}

.watch-diagnostic-chart {
  display: grid;
  gap: 11px;
}

.watch-diagnostic-bar-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(120px, 2fr) 54px;
  gap: 12px;
  align-items: center;
}

.watch-diagnostic-name {
  color: #d9cce2;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.watch-diagnostic-track {
  position: relative;
  height: 12px;
  border: 1px solid #352141;
  border-radius: 999px;
  background: #150c1c;
  overflow: hidden;
}

.watch-diagnostic-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #8d3cff,
      #ee4dff
    );
}

.watch-diagnostic-delta {
  color: #d8b6ff;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.watch-chart-empty {
  padding: 34px 16px;
  border: 1px dashed #352141;
  border-radius: 10px;
  color: #776984;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 700px) {
  .watch-diagnostic-bar-row {
    grid-template-columns: 1fr 70px;
  }

  .watch-diagnostic-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .watch-diagnostic-delta {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Aethelis-themed Watch refresh action */
#watch-refresh {
  border: 1px solid #ee4dff;
  background: linear-gradient(
    135deg,
    #b54cff,
    #ee4dff
  );
  color: #fff;
  box-shadow: 0 8px 24px rgba(181, 76, 255, 0.18);
}

#watch-refresh:hover {
  border-color: #f27cff;
  background: linear-gradient(
    135deg,
    #c05cff,
    #f45cff
  );
  box-shadow: 0 10px 28px rgba(181, 76, 255, 0.28);
  transform: translateY(-1px);
}

#watch-refresh:active {
  transform: translateY(0);
}
