:root {
  color-scheme: dark;
  --bg: #07080b;
  --panel: #17191f;
  --panel-soft: #20232b;
  --text: #f6f7fb;
  --muted: #9da3af;
  --hairline: #2d313a;
  --orange: #ff9f0a;
  --green: #30d158;
  --red: #ff453a;
}

* {
  box-sizing: border-box;
}

body {
  align-items: center;
  background: #111217;
  display: flex;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone {
  background: var(--bg);
  border: 1px solid #2a2d36;
  border-radius: 36px;
  box-shadow: 0 30px 90px rgb(0 0 0 / 45%);
  height: min(812px, 100vh);
  overflow: hidden;
  padding: 22px 20px;
  position: relative;
  width: min(375px, 100vw);
}

.screen {
  display: none;
  height: 100%;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.kicker {
  color: var(--orange);
  font-size: 17px;
  font-weight: 700;
}

h1 {
  color: var(--text);
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1;
  margin: 4px 0 0;
}

.icon-button {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 22px;
  color: var(--text);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.icon-button.orange {
  background: var(--orange);
  color: var(--bg);
  font-size: 28px;
  font-weight: 500;
}

.next,
.panel {
  background: var(--panel);
  border-radius: 8px;
}

.next {
  align-items: center;
  display: flex;
  gap: 14px;
  margin: 22px 0 12px;
  padding: 16px;
}

.next-icon {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 23px;
  color: var(--orange);
  display: flex;
  font-size: 22px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.next-time {
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  margin-top: 2px;
}

.list {
  flex: 1;
  margin-top: 8px;
  overflow: auto;
  padding-bottom: 16px;
}

.alarm-row {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  color: inherit;
  display: flex;
  min-height: 92px;
  padding: 12px 0;
  text-align: left;
  width: 100%;
}

.alarm-main {
  background: transparent;
  border: 0;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.alarm-time {
  color: var(--text);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: 0;
}

.alarm-row.off .alarm-time {
  color: var(--muted);
}

.alarm-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch {
  background: var(--green);
  border-radius: 16px;
  height: 31px;
  margin-left: 8px;
  padding: 2px;
  width: 51px;
}

.switch::after {
  background: white;
  border-radius: 50%;
  content: "";
  display: block;
  height: 27px;
  margin-left: 20px;
  width: 27px;
}

.alarm-row.off .switch {
  background: #3a3d46;
}

.alarm-row.off .switch::after {
  margin-left: 0;
}

.mini-button {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 18px;
  color: var(--muted);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin-left: 8px;
  width: 36px;
}

.mini-button.red {
  color: var(--red);
}

.form-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.form-scroll {
  flex: 1;
  overflow: auto;
  padding-bottom: 18px;
}

.time-preview {
  color: var(--text);
  font-size: 60px;
  font-weight: 200;
  letter-spacing: 0;
  margin: 24px 0;
  text-align: center;
}

.panel {
  margin-top: 14px;
  padding: 14px;
}

.label {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.field {
  background: var(--panel-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.field:focus {
  border-color: var(--orange);
}

.days {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.day {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 20px;
  color: var(--text);
  display: flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.day.active,
.segment.active {
  background: var(--orange);
  color: var(--bg);
}

.segments {
  background: var(--panel-soft);
  border-radius: 8px;
  display: flex;
  padding: 3px;
}

.segment {
  border-radius: 6px;
  color: var(--muted);
  flex: 1;
  font-weight: 700;
  padding: 10px 0;
  text-align: center;
}

.step-row,
.time-controls {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.time-controls {
  gap: 12px;
}

.spaced {
  margin-top: 12px;
}

.stepper {
  background: var(--panel);
  border-radius: 8px;
  flex: 1;
  padding: 14px;
}

.stepper-controls {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.step {
  align-items: center;
  background: var(--panel-soft);
  border-radius: 18px;
  color: var(--text);
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.step-value {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
}

.ringing {
  justify-content: space-between;
  padding-bottom: 10px;
  text-align: center;
}

.ring-label {
  color: var(--muted);
  font-size: 18px;
  margin-top: 44px;
}

.ring-time {
  color: var(--text);
  font-size: 76px;
  font-weight: 200;
  letter-spacing: 0;
  margin-top: 8px;
}

.clip-title {
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
}

.challenge {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.challenge-icon {
  align-items: center;
  background: var(--panel);
  border-radius: 38px;
  color: var(--green);
  display: flex;
  font-size: 34px;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.challenge h2 {
  color: var(--text);
  font-size: 24px;
  margin: 14px 0 6px;
}

.track {
  background: var(--panel-soft);
  border-radius: 5px;
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  width: 86%;
}

.fill {
  background: var(--green);
  height: 100%;
  transition: width 160ms ease;
}

.ring-actions {
  align-items: center;
  display: flex;
  justify-content: space-around;
}

.dismiss {
  align-items: center;
  background: var(--orange);
  border-radius: 42px;
  color: var(--bg);
  display: flex;
  font-size: 34px;
  font-weight: 800;
  height: 84px;
  justify-content: center;
  width: 84px;
}

.dismiss:disabled {
  background: var(--panel-soft);
  color: var(--muted);
  cursor: not-allowed;
}

.snooze-label {
  margin-top: 8px;
}
