/**
 * Chart Clock v1 shell.
 *
 * Skin visuals live in chart-clock-skins.css (copied from packages/clock-skins).
 * This file is the WordPress chrome: container, switcher, extra tape, status.
 */

.chart-clock--v1 {
  --cc-green: #008000;
  --cc-green-bright: #16d016;
  --cc-red: #ff0000;
  --cc-amber: #ff8c1a;
  --cc-ink: #f4f6f5;
  --cc-dim: rgba(244, 246, 245, 0.7);
  --chart-clock-green: #008000;
  --chart-clock-red: #ff0000;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 12em;
  font-family: 'Lato', sans-serif;
  background: #000;
  color: var(--cc-ink);
  container-type: inline-size;
}

.chart-clock-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  padding: 0.35em 0.5em;
  background: rgba(255, 255, 255, 0.05);
}

.chart-clock-chrome__skin {
  padding: 0.2em 0.55em;
  font-family: inherit;
  font-size: clamp(9px, 1.8cqw, 14px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.chart-clock-chrome__skin:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.chart-clock-chrome__skin.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.chart-clock--v1[data-switcher='0'] .chart-clock-chrome {
  display: none;
}

.chart-clock-surface {
  flex: 1;
  min-height: min(42cqw, 320px);
  display: flex;
  container-type: inline-size;
}

.chart-clock-surface > * {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.chart-clock-surface.is-confluence {
  box-shadow: inset 0 0 0 1px var(--cc-amber);
}

.chart-clock--v1.has-builtin-tape .chart-clock-tape {
  display: none;
}

.chart-clock-tape {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #111;
}

.chart-clock-tape__labels {
  display: flex;
  width: 100%;
}

.chart-clock-tape__label {
  flex: 1;
  min-width: 0;
  padding: 0.45em 0.15em;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  font-size: clamp(9px, 1.8cqw, 14px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.chart-clock-tape__label.is-active {
  color: #fff;
  font-weight: 700;
}

.chart-clock-tape__label.is-empty {
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.4);
}

.chart-clock-tape__strip {
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(6px, 1.6cqw, 12px);
  overflow: hidden;
  background: #0a0a0a;
}

.chart-clock-tape__swatch {
  flex-basis: 0;
  min-width: 0;
  background: #1b1b1b;
}

.chart-clock-tape__swatch--pre,
.chart-clock-tape__swatch--ah {
  background: #2a2a2a;
}

.chart-clock-tape__swatch--orb {
  background: #243b24;
}

.chart-clock-tape__swatch--am,
.chart-clock-tape__swatch--pm {
  background: #1e2a1e;
}

.chart-clock-tape__swatch--lunch {
  background: #1a1a22;
}

.chart-clock-tape__swatch--power {
  background: #3a2a12;
}

.chart-clock-tape__swatch--moc {
  background: #4a1414;
}

.chart-clock-tape__swatch.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.chart-clock-tape__swatch.is-empty {
  flex-grow: 1;
}

.chart-clock-tape__playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  pointer-events: none;
  transform: translateX(-1px);
}

.chart-clock-status {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.5em 0.9em;
  font-size: clamp(10px, 1.8cqw, 14px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: #000;
  text-transform: uppercase;
}

.chart-clock-status__next {
  color: rgba(255, 255, 255, 0.6);
}

.chart-clock--v1.is-closed .classic__clock {
  background: #0b3d0b;
}

.chart-clock--v1.is-closed .classic__values {
  background: #7a0000;
}
