/* Today — suppression-first home */

html.thread-active,
html.thread-active body {
  height: 100%;
}

.today-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
}

/* Page-level scroll — nested flex overflow breaks on iOS when body is position:fixed */
body.today-active .thread-page.today-page {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

body.today-active .thread-page.today-page .thread-topbar {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 12;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.82) 65%,
    transparent 100%
  );
  padding-bottom: 10px;
}

.today-page .today-main {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
  gap: 1rem;
}

.today-hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.today-greeting {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 18px 18px 18px 6px;
  border: 1px solid rgba(127, 237, 199, 0.14);
  background: rgba(127, 237, 199, 0.07);
}

.today-greeting-mark {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(127, 237, 199, 0.95);
  background: rgba(127, 237, 199, 0.12);
  border: 1px solid rgba(127, 237, 199, 0.22);
}

.today-greeting-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}

body.cosmos-app-has-tabs .today-page .today-main {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.today-kicker {
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.today-headline {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Sohne", system-ui, sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
}

.today-summary {
  margin: 0;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(127, 237, 199, 0.82);
}

.today-declared {
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
  text-wrap: pretty;
}

.today-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.today-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #0a0a0a;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.today-item.is-frog {
  border-color: rgba(127, 237, 199, 0.36);
  background:
    linear-gradient(180deg, rgba(127, 237, 199, 0.08), rgba(127, 237, 199, 0.02) 32%, #0a0a0a 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(127, 237, 199, 0.06) inset;
}

.today-item.is-frog .today-item-label {
  font-size: 1.28rem;
}

.today-item.is-frog .today-item-why {
  color: rgba(255, 255, 255, 0.58);
}

.today-item-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.today-item-tag {
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fedc7;
}

.today-item-tag.is-support {
  color: rgba(255, 255, 255, 0.45);
}

.today-item-label {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-wrap: pretty;
}

.today-item-why {
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.5rem 0 0;
}

.today-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.today-item-more {
  position: relative;
  margin-left: auto;
}

.today-btn-more {
  min-width: 44px;
  padding: 0 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.125rem;
  line-height: 1;
}

.today-item-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  min-width: 10.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 17, 20, 0.96);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

.today-item-menu[hidden] {
  display: none;
}

.today-menu-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.today-menu-item:hover,
.today-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.today-btn {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.today-btn:active {
  transform: scale(0.97);
}

.today-btn-done {
  border-color: rgba(127, 237, 199, 0.35);
  background: rgba(127, 237, 199, 0.12);
  color: #7fedc7;
  flex: 1;
}

.today-btn-wrong,
.today-btn-mute {
  color: rgba(255, 255, 255, 0.55);
}

.today-stats {
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.48);
  margin: 0.25rem 0 0;
}

.today-quieter {
  font-family: var(--font-sohne, -apple-system, system-ui, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(127, 237, 199, 0.82);
  margin: 0.35rem 0 0;
  text-wrap: pretty;
}

.today-morning {
  margin-top: 0.35rem;
}

.today-morning-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  min-height: 44px;
}

.today-morning-meta {
  margin: 0.1rem 0 0;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.42);
}

.today-morning-toggle {
  width: 18px;
  height: 18px;
  accent-color: #7fedc7;
}

.today-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.today-name-label {
  flex: 1 0 100%;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.42);
}

.today-name-input {
  flex: 1 1 auto;
  min-width: 8rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 1rem;
  font-family: var(--font-sohne, -apple-system, system-ui, sans-serif);
  font-size: 0.9375rem;
}

.today-name-save {
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 237, 199, 0.35);
  background: rgba(127, 237, 199, 0.12);
  color: #7fedc7;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.today-name-save:active {
  transform: scale(0.97);
}

.today-done {
  text-align: center;
  padding: 2rem 0;
}

.today-done-msg {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
}

.today-pull {
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.today-item {
  cursor: pointer;
}

.today-item .landing-receipt-chip {
  display: inline-flex;
  margin-top: 0.45rem;
}

.today-sheet-kicker {
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 0.5rem;
}

.today-sheet-title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: pretty;
}

.today-sheet-reason {
  margin: 0 0 0.75rem;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.55);
}

.today-sheet-excerpt {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid rgba(127, 237, 199, 0.45);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}

.today-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.today-receipt-actions .today-btn-done {
  flex: 1 1 100%;
}

.today-know-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.today-know-section {
  margin-bottom: 1.35rem;
}

.today-know-k {
  margin: 0 0 0.35rem;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(127, 237, 199, 0.78);
}

.today-know-note {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
}

.today-know-intent-input {
  width: 100%;
  min-height: 72px;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.today-know-save,
.today-know-connect {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 237, 199, 0.35);
  background: rgba(127, 237, 199, 0.12);
  color: #7fedc7;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.today-know-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.today-know-row,
.today-know-belief {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.today-know-row-text,
.today-know-belief-label {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.today-know-row-tag,
.today-know-belief-type {
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.today-know-belief-excerpt {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.today-know-forget {
  min-height: 36px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6875rem;
  cursor: pointer;
}

.today-know-sources {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8125rem;
}

.today-know-stats {
  margin: 0.5rem 0 0;
  font-family: var(--font-sohne-mono, ui-monospace, monospace);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.4);
}
