.cc-console {
  --cc-ink: #243236;
  --cc-paper: #eee9dc;
  --cc-mark: #b34d32;
  --cc-rule: #697370;
  color-scheme: dark;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 44px);
  position: relative;
  min-width: 0;
  min-height: 90px;
  padding: 11px clamp(17px, 2.4vw, 46px) calc(11px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid #c6bd9f;
  color: var(--cc-paper);
  background: var(--cc-ink);
  font: 400 1rem/1.2 var(--body, sans-serif);
  isolation: isolate;
}
.cc-console *,
.cc-console *::before,
.cc-console *::after {
  box-sizing: border-box;
}
.cc-watch {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.05vw, 18px);
}
.cc-winder {
  width: clamp(54px, 5vw, 70px);
  aspect-ratio: 1;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 4px;
}
.cc-bezel {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cc-crown {
  transform-box: view-box;
  transform-origin: center;
  transform: rotate(var(--cc-angle, 0deg));
}
.cc-dial-type {
  font: 600 8.3px var(--body, sans-serif);
}
.cc-turning {
  cursor: grabbing;
}
.cc-winder:focus-visible {
  outline: 2px solid var(--cc-paper);
}
.cc-time {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: clamp(1.65rem, 2.25vw, 2.45rem);
}
.cc-caption,
.cc-period,
.cc-dates span,
.cc-tick-label {
  font-family: var(--mono, monospace);
  font-weight: 400;
}
.cc-caption {
  font-size: 0.73rem;
  color: #d0d2c6;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cc-caption i {
  font-style: normal;
  font-size: inherit;
  letter-spacing: 0;
  padding-left: 5px;
  margin-left: 1px;
  border-left: 1px solid var(--cc-rule);
}
.cc-readout {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: calc(4.6ch + 20px);
  font-family: var(--mono, monospace);
  white-space: nowrap;
}
.cc-digits {
  font: inherit;
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.cc-period {
  font-size: 0.74rem;
}
.cc-lapse {
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #87908a;
  border-radius: 50%;
  background: transparent;
  color: var(--cc-paper);
}
.cc-lapse svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.cc-lapse .cc-pause,
.cc-lapse[aria-pressed='true'] .cc-play {
  display: none;
}
.cc-lapse[aria-pressed='true'] .cc-pause {
  display: block;
}
.cc-lapse:hover,
.cc-lapse[aria-pressed='true'] {
  background: var(--cc-paper);
  color: var(--cc-ink);
}
.cc-lapse:disabled {
  opacity: 0.4;
  cursor: default;
}
.cc-scale {
  --cc-position: 0%;
  min-width: 0;
  position: relative;
  container-type: inline-size;
  padding: 0 13px;
  border-block: 1px solid #90968a;
  color: var(--cc-ink);
  background: var(--cc-paper);
}
.cc-glass {
  height: 52px;
  position: relative;
}
.cc-graduations {
  position: absolute;
  inset: 0;
}
.cc-graduations::before {
  content: '';
  position: absolute;
  inset: auto 0 41%;
  border-top: 1px solid #7e877d;
}
.cc-tick {
  position: absolute;
  bottom: 41%;
  width: 1px;
  background: #626e67;
  transform: translateX(-0.5px);
}
.cc-quarter {
  height: 10%;
}
.cc-half {
  height: 19%;
}
.cc-hour {
  height: 33%;
  background: var(--cc-ink);
}
.cc-tick-label {
  position: absolute;
  bottom: 6%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: nowrap;
  letter-spacing: -0.035em;
}
.cc-tick-label.cc-start {
  transform: none;
}
.cc-tick-label.cc-end {
  transform: translateX(-100%);
}
.cc-needle {
  width: 2px;
  position: absolute;
  left: var(--cc-position);
  top: 0;
  height: 65%;
  transform: translateX(-50%);
  background: var(--cc-mark);
  pointer-events: none;
}
.cc-needle::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 8px;
  transform: translateX(-50%);
  background: var(--cc-mark);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 50% 100%, 0 35%);
}
.cc-range {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0 -8px;
  width: calc(100% + 16px);
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}
.cc-range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}
.cc-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 100%;
  background: transparent;
  border: 0;
}
.cc-range::-moz-range-track {
  background: transparent;
  border: 0;
}
.cc-range::-moz-range-thumb {
  width: 16px;
  height: 100%;
  background: transparent;
  border: 0;
}
.cc-range:focus-visible {
  outline: none;
}
.cc-scale:focus-within {
  outline: 2px solid var(--cc-paper);
  outline-offset: 3px;
}
.cc-dates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-block: 1px solid var(--cc-rule);
}
.cc-dates button {
  min-width: 42px;
  min-height: 48px;
  padding: 5px clamp(6px, 0.8vw, 15px);
  border: none;
  border-right: 1px solid var(--cc-rule);
  border-radius: 0;
  background: transparent;
  color: var(--cc-paper);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
}
.cc-dates button:last-child {
  border-right: 0;
}
.cc-dates span {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cc-dates b {
  font: 400 1.15rem/1 var(--mono, monospace);
  letter-spacing: -.05em;
}
.cc-dates button:hover {
  background: #3c494a;
}
.cc-dates button[aria-pressed='true'] {
  background: var(--cc-paper);
  color: var(--cc-ink);
  box-shadow: inset 0 -3px var(--cc-mark);
}
.cc-dates button:focus-visible {
  outline: 2px solid #df885c;
  outline-offset: -3px;
}
.cc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@container (max-width: 520px) {
  .cc-tick-label.cc-two {
    display: none;
  }
}
@container (max-width: 370px) {
  .cc-tick-label.cc-edge-neighbor {
    display: none;
  }
}
@media (max-width: 740px) {
  .cc-console {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'watch dates' 'scale scale';
    gap: 6px 10px;
    padding: 7px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left));
  }
  .cc-watch {
    grid-area: watch;
    gap: 9px;
  }
  .cc-winder {
    width: 45px;
  }
  .cc-time {
    gap: 0;
    min-width: 0;
  }
  .cc-caption {
    font-size: 0.67rem;
  }
  .cc-time {
    font-size: 1.57rem;
  }
  .cc-period {
    font-size: 0.69rem;
  }
  .cc-lapse {
    width: 30px;
    height: 30px;
    margin-left: 0;
  }
  .cc-lapse svg {
    width: 14px;
    height: 14px;
  }
  .cc-dates {
    grid-area: dates;
  }
  .cc-dates button {
    min-width: 33px;
    min-height: 41px;
    padding: 4px 6px;
  }
  .cc-dates span {
    font-size: 0.66rem;
    letter-spacing: 0;
  }
  .cc-dates b {
    font-size: 1.02rem;
  }
  .cc-scale {
    grid-area: scale;
    padding-inline: 10px;
  }
  .cc-glass {
    height: 43px;
  }
  .cc-tick-label {
    font-size: 0.73rem;
  }
}
@media (max-width: 350px) {
  .cc-watch {
    gap: 6px;
  }
  .cc-winder {
    width: 41px;
  }
  .cc-dates button {
    min-width: 30px;
    padding-inline: 4px;
  }
  .cc-time {
    font-size: 1.38rem;
  }
}
@media (max-width: 305px) {
  .cc-console {
    padding-inline: 6px;
    column-gap: 5px;
  }
  .cc-watch {
    gap: 4px;
  }
  .cc-winder {
    width: 36px;
  }
  .cc-dates button {
    min-width: 26px;
    padding-inline: 2px;
  }
}
@media (min-width: 600px) and (max-height: 490px) {
  .cc-console {
    min-height: 58px;
    padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'watch scale dates';
    column-gap: 12px;
  }
  .cc-watch { gap: 8px; }
  .cc-winder { width: 44px; }
  .cc-time { font-size: 1.44rem; }
  .cc-lapse { width: 32px; height: 32px; }
  .cc-dates button { min-width: 34px; min-height: 39px; padding: 3px 6px; }
  .cc-glass { height: 39px; }
}
