/* Today dashboard-specific cards and summaries. */
.today-panel { padding: 22px; }

.summary-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(36, 124, 95, 0.14); color: var(--accent); }

.today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.today-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(36, 124, 95, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.today-card:hover { border-color: rgba(36, 124, 95, 0.36); background: rgba(36, 124, 95, 0.13); transform: translateY(-1px); }

.today-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(36, 124, 95, 0.13); color: var(--accent); }

.today-card strong, .today-card small { display: block; overflow-wrap: anywhere; }

.today-card strong { margin-top: 1px; font-size: 0.88rem; }

.today-card small { margin-top: 4px; color: var(--muted); font-size: 0.72rem; line-height: 1.38; }

.today-state {
  align-self: start;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-shortcuts { padding: 22px 0 4px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.dashboard-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dashboard-card:hover { border-color: rgba(36, 124, 95, 0.36); background: rgba(255, 255, 255, 0.68); transform: translateY(-1px); }

.dashboard-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(36, 124, 95, 0.12); color: var(--accent); }

.dashboard-card strong, .dashboard-card small, .dashboard-freshness { display: block; overflow-wrap: anywhere; }

.dashboard-card strong { margin-top: 1px; font-size: 0.9rem; }

.dashboard-card small { margin-top: 4px; color: var(--muted); font-size: 0.72rem; line-height: 1.35; }

.dashboard-freshness { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 0.72rem; font-weight: 740; }

.joke-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }

.joke-mark { width: 44px; height: 44px; border-radius: 8px; background: rgba(182, 107, 39, 0.13); color: var(--accent-2); }

.joke-copy h2 { margin-bottom: 8px; }

.joke-copy p { margin: 0; line-height: 1.6; }

.joke-answer { margin-top: 8px !important; color: var(--accent); font-weight: 720; }

.today-location-row { margin: 12px 0 16px; }

.today-command { display: grid; gap: 16px; }

.today-command-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.today-command-header h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.8rem); }

.today-command-header p { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.today-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.today-command-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.today-command-actions .button { min-height: 32px; padding-inline: 11px; font-size: .72rem; }
.today-briefing { display: grid; gap: 16px; }
.today-briefing-group { display: grid; gap: 8px; }
.today-briefing-group > h3 { margin: 0; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.today-briefing-group .today-page-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.signal-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  min-height: 114px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
  color: inherit;
  box-shadow: 0 12px 28px rgba(27, 38, 32, 0.07);
}

.signal-card:hover { border-color: rgba(36, 124, 95, 0.38); background: rgba(255, 255, 255, 0.58); }

.signal-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: rgba(36, 124, 95, 0.12);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
}

.signal-card strong, .signal-card small { display: block; min-width: 0; overflow-wrap: break-word; word-break: normal; }

.signal-card strong { font-size: 0.96rem; }

.signal-card small { margin-top: 6px; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.signal-card em { display: block; margin-top: 9px; color: var(--muted); font-size: .66rem; font-style: normal; font-weight: 720; }

.today-detail-panel { margin-top: 18px; }

.today-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.today-notes article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(36, 124, 95, 0.06);
}

.today-notes h3 { margin: 0 0 7px; font-size: 0.95rem; }

.today-notes p { margin: 0; color: var(--muted); line-height: 1.55; }

@media (max-width: 820px) {
.today-grid, .dashboard-grid, .today-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
.summary-icon { width: 42px; height: 42px; }

.joke-panel { grid-template-columns: 1fr; }

.today-card { grid-template-columns: auto minmax(0, 1fr); }

.today-state { grid-column: 2; width: max-content; }

.today-grid, .dashboard-grid, .today-page-grid, .today-notes { grid-template-columns: 1fr; }

.signal-card { min-height: auto; }
}
