/* Carried over from the wake_tracker.html prototype almost verbatim. The only
   structural change: color tokens were hoisted from `#app { ... }` to `:root`
   so `html, body` can also use them — the prototype was a fragment embedded in
   a host page, so it never needed the page background to match the card. */

:root {
  --ink: #1b1f27;
  --paper: #eef1f6;
  --line: #c9d0dc;
  --dawn: #d4762a;
  --dawn-soft: #f0ddc8;
  --good: #3f7d5c;
  --bad: #b34a3f;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
}

#app {
  font-family: 'Georgia', 'Iowan Old Style', serif;
  color: var(--ink);
  background: var(--paper);
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  border-radius: 4px;
}
#app * { box-sizing: border-box; }
.eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dawn);
  margin: 0 0 4px;
}
h1 {
  font-size: 26px;
  margin: 0 0 4px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.sub {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: #5a6272;
  margin: 0 0 22px;
}
.streak-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.streak-num {
  font-size: 42px;
  line-height: 1;
  color: var(--dawn);
}
.streak-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: #5a6272;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: #5a6272;
  margin-bottom: 6px;
}
.field input[type="time"],
.field input[type="password"] {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  width: 100%;
  color: var(--ink);
}
.toggle-row {
  display: flex;
  gap: 8px;
}
.toggle-row button {
  flex: 1;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
}
.toggle-row button.active-yes {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}
.toggle-row button.active-no {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.save-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.save-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.log {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.log-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6272;
  margin-bottom: 10px;
}
.log-entry {
  display: flex;
  justify-content: space-between;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}
.log-entry:last-child { border-bottom: none; }
.log-date { color: #5a6272; }
.log-mark { font-size: 15px; }
.empty {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: #8a91a0;
  font-style: italic;
}
.status {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: #5a6272;
  margin-top: 8px;
  min-height: 16px;
}

/* New, not in the prototype: a minimal sign-out affordance, needed because this
   deployment adds a login the artifact never had. Deliberately understated —
   reuses existing type/color tokens rather than introducing new chrome. */
.logout-link {
  display: block;
  margin-top: 18px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  color: #8a91a0;
  cursor: pointer;
  text-decoration: underline;
}
