/* Sherpa — Settings (Kai's): the three Today toggles, his goals, the
   quotes. Same shell and tokens as the other screens. */

* { 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);
}

.head { padding: 20px 20px 8px; }

.back {
  font-size: 11px;
  letter-spacing: .08em;
  color: #7fa8ad;
  text-decoration: none;
}

.title {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f7f7;
}

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

.section { padding: 14px 20px 6px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label {
  font-size: 11px;
  letter-spacing: .1em;
  color: #7c8a8b;
  font-weight: 600;
}

.section-note {
  margin: 6px 0 8px;
  font-size: 12.5px;
  color: #8a9798;
}

.add-btn {
  border: none;
  background: transparent;
  color: #6fe3d2;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* toggles */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #131617;
  font-size: 14.5px;
  color: #dfe9e9;
}

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

.chip {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: rgba(0, 73, 83, 0.45);
  color: #7fa8ad;
}

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

/* goal and quote rows */

.entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #131617;
}

.entry-body { flex: 1; min-width: 0; }

.entry-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #f2f7f7;
  overflow-wrap: break-word;
}

.entry-quote {
  font-size: 13.5px;
  line-height: 1.45;
  color: #cfe6e4;
  font-style: italic;
  overflow-wrap: break-word;
}

.entry-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #8a9798;
  overflow-wrap: break-word;
}

.entry-actions { display: flex; gap: 4px; flex: none; }

.icon-btn {
  border: none;
  background: transparent;
  color: #7fa8ad;
  font: inherit;
  font-size: 13px;
  padding: 2px 6px;
  cursor: pointer;
}

.empty {
  padding: 10px 0;
  font-size: 13px;
  color: #7c8a8b;
}

.confirm {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: #dfe9e9;
}

.confirm-actions { display: flex; gap: 6px; flex: none; }

.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary { background: #6fe3d2; color: #00181c; }
.btn-danger { background: #5a2420; color: #f3d6d3; }
.btn-plain { background: rgba(0, 73, 83, 0.45); color: #b9d4d6; }
.btn:disabled { opacity: .5; cursor: default; }

/* add / edit forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 16px;
  border-bottom: 1px solid #1c1f20;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1c3a3e;
  background: rgba(0, 73, 83, 0.25);
  color: #f2f7f7;
  font: inherit;
  font-size: 14px;
  color-scheme: dark;
}

textarea.input { min-height: 80px; resize: vertical; }

.field-label {
  font-size: 12px;
  color: #7fa8ad;
}

.form-error { font-size: 12.5px; color: #e08a83; }

.form-actions { display: flex; gap: 8px; }

/* Tab bar */

.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;
}
