/* Sherpa — Add (capture). Same shell/tokens as Today/Tasks/School/Detail
   (black background, #004953 teal, Manrope + JetBrains Mono, shared tab
   bar). One calm screen, not a wizard — chip rows for the fast choices,
   native inputs for what has to be typed/picked.

   This is the ONE add door: a door chooser (Task/One-off/Weekly) up
   top, then exactly one of three field-set blocks shows at a time —
   #task-fields, #oneoff-fields, #weekly-fields — all sharing this one
   stylesheet so switching doors never feels like a different screen. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #e8eeee;
  font-family: Manrope, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mono { font-family: 'JetBrains Mono', monospace; }

.capture {
  padding: 20px 20px 24px;
  flex: 1;
}

.back {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7fa8ad;
  text-decoration: none;
  padding: 4px 0 18px;
}

.cap-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f7f7;
  margin-bottom: 20px;
}

.message {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #1c1f20;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #b9c5c6;
}

.field {
  margin-bottom: 22px;
}

.field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #5e868b;
  margin-bottom: 9px;
}

.field-label .optional {
  text-transform: none;
  letter-spacing: normal;
  color: #3d5b5f;
  font-family: Manrope, Helvetica, sans-serif;
  font-size: 11px;
}

.capture input[type="text"],
.capture input[type="date"],
.capture input[type="number"],
.capture select {
  background: #0d1011;
  border: 1px solid #23282a;
  border-radius: 12px;
  padding: 13px 14px;
  color: #f2f7f7;
  font-family: Manrope, Helvetica, sans-serif;
  font-size: 15px;
}

.capture input[type="text"],
.capture input[type="date"],
.capture input[type="number"] {
  width: 100%;
}

.capture input[type="text"]:focus,
.capture input[type="date"]:focus,
.capture input[type="number"]:focus,
.capture select:focus { outline: 1px solid #6fe3d2; }

.capture input[type="date"],
.capture input[type="number"],
.capture select {
  color-scheme: dark;
}

#date-input,
#oneoff-date-input { margin-top: 9px; }

/* The "Remind me?" Other/note inputs stack under the reminder chips. */
.stacked-input { margin-top: 8px; }

/* Time picker (Mini App only — replaces the native <input type="time">
   wheel, which opened on "now" and had to be dragged). Hour is a plain
   <select>; minutes are quarter-hour chips (:00/:15/:30/:45) reusing
   the same .chip/.chip.active language as every other chip row here,
   plus an "Other" chip that swaps in a small number input for the
   cases that don't land on a quarter. */
.time-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.time-hour-select {
  flex: none;
  width: 68px;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

.time-sep {
  color: #5e868b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
}

.time-minute-chips {
  flex: 1 1 auto;
}

.capture input.time-minute-input {
  flex: none;
  width: 64px;
}

/* Chip rows — same idle/active language as the Tasks filter chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0, 73, 83, 0.45);
  color: #7fa8ad;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.chip:active { transform: scale(0.96); }

.chip.active {
  background: #f2f5f4;
  color: #00181c;
  font-weight: 600;
}

.btn-add {
  margin-top: 6px;
  height: 54px;
  border-radius: 16px;
  background: #f2f5f4;
  color: #00181c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.btn-add:active { transform: scale(0.975); }
.btn-add:disabled { opacity: .6; cursor: default; }

/* Tab bar (shared with Today/Tasks/School/Detail — none active here) */

.tabbar {
  margin-top: auto;
  border-top: 1px solid #131617;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 4px;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #8b9899;
  text-decoration: none;
}

.tab-icon {
  width: 17px;
  height: 17px;
  border: 1.4px solid #6d7a7b;
  border-radius: 4px;
}

.tab-fab {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.tab-fab span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #006d7c;
  color: #eafcfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}
