:root {
  color-scheme: dark;
  --bg: #14171f;
  --text: #ffffff;
  --muted: #aab2c2;
  --accent: #85b7eb;
  --line: #39404f;
  --button-border: #4a5060;
  --amber: #ef9f27;
  --blue: #378add;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

main {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

h2 {
  margin: 0 0 5px;
  padding-top: 10px;
  border-top: 0.5px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

section {
  margin-bottom: 12px;
}

#brief > section:first-of-type h2 {
  border-top: 0;
  padding-top: 0;
}

.item {
  margin-bottom: 8px;
}

.sub {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  margin: 0 0 8px;
}

.day {
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.45;
}

.day-label {
  font-weight: 500;
}

.alert {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  background: #1b2233;
}

.alert-warn {
  border-left-color: var(--amber);
}

.message {
  min-height: 1.4em;
  margin: 8px 0;
  color: var(--muted);
}

button,
.button,
input,
summary {
  font: inherit;
  font-size: 14px;
}

button,
.button {
  display: inline-block;
  min-height: 44px;
  margin: 6px 6px 0 0;
  padding: 7px 12px;
  color: #f2f4f8;
  background: transparent;
  border: 0.5px solid var(--button-border);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  margin-top: 6px;
  color: var(--accent);
}

input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 4px 0 6px;
  padding: 7px 12px;
  color: var(--text);
  background: #1b2233;
  border: 0.5px solid var(--button-border);
  border-radius: 8px;
  letter-spacing: 0.08em;
}

summary {
  min-height: 44px;
  padding: 12px 0;
  border-top: 0.5px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}

.setup-body {
  padding-bottom: 8px;
}
