.sobriety-panel {
  max-width: 580px;
  margin: 2rem auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: start;
}

.sobriety-panel h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; }
.sobriety-panel p { color: #617177; line-height: 1.5; }
.sobriety-fields {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: .4rem;
  margin: 1.25rem 0;
}

.date-part {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.date-part > label { display: block; margin-bottom: .35rem; }
.date-part-row { display: flex; gap: .25rem; min-width: 0; }
.date-part input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: .45rem .25rem;
  border: 1px solid #b9b2a5;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  caret-color: transparent;
}

.date-part input.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49,92,112,.16);
}

.date-clear {
  display: grid;
  flex: 0 0 40px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f5ed;
  color: #6b4b45;
  cursor: pointer;
}

.number-keypad {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  max-width: 300px;
  margin: 0 auto 1rem;
}

.number-keypad button {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf5;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(22,37,43,.08);
}

.number-keypad button:active { transform: translateY(1px); box-shadow: none; }
.number-keypad .keypad-delete { color: var(--blue); }
.sobriety-save {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sobriety-save:disabled { opacity: .55; cursor: wait; }
