.dashboard-body {
  min-height: 100vh;
  background: var(--brand-paper);
}

[hidden] {
  display: none !important;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  padding: 30px 22px 24px;
  color: var(--brand-ink);
  background: var(--brand-surface);
  border-right: 1px solid var(--brand-line);
}

.dashboard-brand,
.sidebar-heading,
.dashboard-navigation,
.sidebar-status,
.logout-button,
.dashboard-version {
  position: relative;
  z-index: 1;
}

.dashboard-brand {
  flex: 0 0 auto;
  margin-bottom: 38px;
}

.sidebar-heading {
  flex: 0 0 auto;
  margin-bottom: 24px;
}

.sidebar-heading p {
  margin: 0 0 6px;
  color: var(--mint);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-heading strong {
  color: var(--brand-ink);
  font-size: 0.95rem;
}

.dashboard-navigation {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-height: 0;
  margin-right: -8px;
  padding-right: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: var(--brand-line-strong) var(--brand-soft);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  align-content: start;
}

.dashboard-navigation::-webkit-scrollbar {
  width: 6px;
}

.dashboard-navigation::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-navigation::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--brand-accent-rgb), 0.48);
}

.dashboard-navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--brand-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: 160ms ease;
}

.dashboard-navigation a span {
  color: var(--brand-muted);
  font-size: var(--type-small);
  letter-spacing: 0.08em;
}

.dashboard-navigation a:hover,
.dashboard-navigation a:focus-visible,
.dashboard-navigation a.is-active {
  border-color: var(--brand-line);
  color: var(--brand-accent-hover);
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand-accent);
  font-weight: 700;
}

.dashboard-navigation a.is-active {
  box-shadow: inset 3px 0 0 var(--mint);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: var(--brand-paper);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(var(--brand-accent-rgb), 0.12);
}

.sidebar-status strong,
.sidebar-status small {
  display: block;
  color: var(--brand-muted);
}

.sidebar-status strong {
  font-size: var(--type-caption);
}

.sidebar-status small {
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
}

.logout-button {
  flex: 0 0 auto;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  color: var(--brand-ink);
  background: var(--brand-surface);
  cursor: pointer;
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: var(--brand-line-strong);
  background: var(--brand-soft);
}

.dashboard-version {
  flex: 0 0 auto;
  margin: 18px 0 0;
  color: var(--brand-muted);
  font-size: var(--type-caption);
  text-align: center;
}

@media (min-width: 761px) and (max-height: 850px) {
  .dashboard-sidebar {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .dashboard-brand {
    margin-bottom: 28px;
  }

  .sidebar-heading {
    margin-bottom: 14px;
  }

  .dashboard-navigation a {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .sidebar-status {
    padding: 11px 13px;
  }

  .dashboard-version {
    margin-top: 12px;
  }
}

.dashboard-main {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 42px clamp(28px, 4vw, 68px) 38px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.dashboard-header .eyebrow {
  margin-bottom: 5px;
}

.dashboard-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.dashboard-header p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.dashboard-header-actions { display: flex; align-items: center; gap: 10px; }
.check-email-button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--blue); border-radius: 12px; color: #fff; background: var(--blue); box-shadow: 0 8px 24px rgba(var(--brand-accent-rgb), 0.2); font: inherit; font-weight: 700; cursor: pointer; }
.check-email-button:hover, .check-email-button:focus-visible { background: var(--blue-dark); }
.check-email-button:disabled { cursor: wait; opacity: 0.66; }
.dashboard-action-status { margin: -16px 0 24px; padding: 13px 16px; border: 1px solid rgba(13, 139, 112, 0.22); border-radius: 12px; color: #08745e; background: var(--brand-success-soft); font-weight: 700; }
.dashboard-action-status.is-error { border-color: rgba(224, 112, 61, 0.28); color: #9c3d10; background: rgba(224, 112, 61, 0.09); }

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  min-height: 44px;
  min-width: 128px;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-line-strong);
  border-radius: 10px;
  color: var(--brand-accent-hover);
  background: var(--brand-soft);
  font: inherit;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

.refresh-button:hover,
.refresh-button:focus-visible {
  border-color: var(--brand-accent);
  background: var(--brand-mint);
}

.refresh-button:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.refresh-mark {
  font-size: 1.1rem;
  line-height: 1;
}

.dashboard-refresh-status {
  min-height: 1.5em;
  margin: -12px 0 16px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
}

.dashboard-loading,
.dashboard-session-required,
.dashboard-error {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(var(--brand-ink-rgb), 0.07);
}

.dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 250px;
  color: var(--ink-soft);
}

.loading-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--brand-line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: dashboard-spin 0.9s linear infinite;
}

@keyframes dashboard-spin {
  to { transform: rotate(360deg); }
}

.dashboard-session-required {
  max-width: 660px;
  margin: 80px auto;
  padding: 56px;
  text-align: center;
}

.session-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border-radius: 22px;
  color: var(--blue);
  font-size: 2rem;
  background: rgba(var(--brand-accent-rgb), 0.08);
}

.dashboard-session-required h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.dashboard-session-required > p:not(.eyebrow) {
  max-width: 480px;
  margin: 16px auto 28px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.dashboard-login-link {
  display: inline-flex;
  max-width: 300px;
  margin: 0 auto;
  text-decoration: none;
}

.dashboard-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-color: rgba(180, 35, 24, 0.22);
  color: #8c1d18;
  background: #fff7f6;
}

.dashboard-error p {
  margin: 4px 0 0;
  color: #8a4e48;
  font-size: var(--type-small);
}

.dashboard-error button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 9px;
  color: #8c1d18;
  background: #fff;
  cursor: pointer;
}

.today-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 31px 34px;
  border: 1px solid rgba(var(--brand-accent-rgb), 0.15);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-accent-rgb), 0.2), transparent 18rem),
    linear-gradient(120deg, #fff, var(--brand-paper));
  box-shadow: 0 16px 45px rgba(var(--brand-ink-rgb), 0.06);
}

.today-intro h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 2.85rem);
  letter-spacing: -0.05em;
}

.today-intro > div:first-child > p:last-child {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.snapshot-status {
  display: flex;
  align-items: center;
  min-width: 158px;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(8, 120, 95, 0.15);
  border-radius: 14px;
  color: var(--success);
  background: var(--brand-success-soft);
}

.snapshot-status > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  background: var(--success);
}

.snapshot-status strong,
.snapshot-status small {
  display: block;
}

.snapshot-status strong {
  font-size: var(--type-caption);
}

.snapshot-status small {
  margin-top: 3px;
  color: #4c746b;
  font-size: var(--type-caption);
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.priority-card {
  position: relative;
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(var(--brand-ink-rgb), 0.045);
}

.priority-index {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.priority-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
  font-weight: 690;
}

.priority-card > strong {
  display: block;
  margin: 20px 0 9px;
  color: var(--ink);
  font-size: 2.55rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.priority-card small {
  color: var(--brand-muted);
  font-size: var(--type-caption);
}

.priority-important { border-top: 3px solid var(--brand-accent); }
.priority-high { border-top: 3px solid #f0a23b; }
.priority-meetings { border-top: 3px solid #63d8c0; }
.priority-rules { border-top: 3px solid #8f72dc; }

.dashboard-card.recommendation-card {
  margin-bottom: 20px;
  border-color: rgba(var(--brand-accent-rgb), 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-accent-rgb), 0.13), transparent 19rem),
    #fff;
}

.card-heading.recommendation-heading {
  align-items: center;
}

.recommendation-intro {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
}

.recommendation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommendation-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  min-height: 156px;
  padding: 16px;
  border: 1px solid var(--brand-line);
  border-top-width: 3px;
  border-radius: 15px;
  background: rgba(249, 252, 255, 0.92);
}

.recommendation-high { border-top-color: #e0703d; }
.recommendation-medium { border-top-color: var(--brand-accent); }
.recommendation-low { border-top-color: #63d8c0; }

.recommendation-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--brand-accent-hover);
  background: rgba(var(--brand-accent-rgb), 0.16);
  font-size: var(--type-caption);
  font-weight: 700;
}

.recommendation-copy {
  min-width: 0;
}

.recommendation-kind {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recommendation-copy strong {
  display: block;
  color: var(--ink);
  font-size: var(--type-small);
  line-height: 1.35;
}

.recommendation-copy p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
  line-height: 1.5;
}

.recommendation-link {
  align-self: end;
  grid-column: 2;
  color: var(--blue-dark);
  font-size: var(--type-small);
  font-weight: 700;
  text-decoration: none;
}

.recommendation-link:hover,
.recommendation-link:focus-visible {
  text-decoration: underline;
}

.action-center-card {
  margin-bottom: 20px;
  border-color: rgba(var(--brand-accent-rgb), 0.18);
}

.action-center-heading {
  align-items: center;
}

.action-center-intro {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
}

.action-center-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 13px;
  color: var(--blue-dark);
  background: rgba(var(--brand-accent-rgb), 0.07);
}

.action-center-summary strong {
  font-size: 1.35rem;
  line-height: 1;
}

.action-center-summary span {
  color: var(--brand-muted);
  font-size: var(--type-small);
  font-weight: 700;
}

.action-center-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed var(--brand-line);
  border-radius: 14px;
  background: var(--brand-paper);
}

.action-center-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}

.action-center-breakdown[hidden] {
  display: none;
}

.action-center-breakdown span {
  padding: 5px 9px;
  border: 1px solid var(--brand-soft);
  border-radius: 999px;
  color: var(--brand-muted);
  background: var(--brand-paper);
  font-size: var(--type-small);
  font-weight: 700;
}

.action-center-empty > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: var(--success);
}

.action-center-empty strong,
.action-center-empty p {
  display: block;
}

.action-center-empty strong {
  font-size: var(--type-small);
}

.action-center-empty p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-small);
}

.action-center-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-center-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--brand-line);
  border-left-width: 3px;
  border-radius: 14px;
  background: var(--brand-paper);
}

.action-center-item.action-urgent { border-left-color: #e0703d; }
.action-center-item.action-attention { border-left-color: var(--brand-accent); }

.action-priority {
  padding: 4px 7px;
  border-radius: 999px;
  color: #7e3d1c;
  font-size: var(--type-caption);
  font-weight: 700;
  background: #fff0e8;
}

.action-tags {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.action-type {
  max-width: 92px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 1.25;
}

.action-attention .action-priority {
  color: var(--brand-accent);
  background: var(--brand-paper);
}

.action-copy {
  min-width: 0;
}

.action-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--type-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-copy p {
  margin: 6px 0;
  color: var(--brand-muted);
  font-size: var(--type-small);
  line-height: 1.45;
}

.action-copy small {
  color: var(--brand-muted);
  font-size: var(--type-caption);
}

.action-open-link {
  color: var(--blue-dark);
  font-size: var(--type-small);
  font-weight: 700;
  text-decoration: none;
}

.action-open-link:hover,
.action-open-link:focus-visible {
  color: var(--blue);
}

.action-center-more {
  margin: 13px 0 0;
  color: var(--brand-muted);
  font-size: var(--type-small);
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 20px;
  align-items: start;
}

.dashboard-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(var(--brand-ink-rgb), 0.045);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.card-kicker {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.card-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  background: var(--brand-paper);
}

.email-empty,
.meeting-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  padding: 18px;
  border: 1px dashed var(--brand-line);
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--brand-paper);
}

.email-empty > span,
.meeting-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--blue);
  background: rgba(var(--brand-accent-rgb), 0.08);
}

.email-empty strong,
.meeting-empty strong,
.email-empty p,
.meeting-empty p {
  display: block;
}

.email-empty strong,
.meeting-empty strong {
  color: var(--ink);
  font-size: var(--type-small);
}

.email-empty p,
.meeting-empty p {
  margin: 5px 0 0;
  font-size: var(--type-small);
  line-height: 1.45;
}

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

.email-metrics div {
  padding: 16px 12px;
  border-radius: 13px;
  background: var(--brand-paper);
}

.email-metrics dt {
  min-height: 30px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
  line-height: 1.35;
}

.email-metrics dd {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.card-footnote {
  margin: 17px 0 0;
  color: var(--brand-muted);
  font-size: var(--type-small);
}

.meeting-card {
  grid-row: span 2;
}

.calendar-warning {
  margin: -5px 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(240, 162, 59, 0.28);
  border-radius: 11px;
  color: #78511d;
  font-size: var(--type-small);
  line-height: 1.45;
  background: #fff9ef;
}

.meeting-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meeting-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: var(--brand-paper);
}

.meeting-time {
  color: var(--blue-dark);
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 1.35;
}

.meeting-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--type-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-copy p {
  margin: 7px 0 0;
  color: var(--brand-muted);
  font-size: var(--type-small);
  line-height: 1.4;
}

.meeting-conflict {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #8c4d0d;
  font-size: var(--type-caption);
  font-weight: 700;
  background: #fff0d9;
}

.account-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--brand-line);
  border-radius: 13px;
  background: var(--brand-paper);
}

.provider-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--blue-dark);
  font-size: var(--type-caption);
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(var(--brand-accent-rgb), 0.08);
}

.account-copy {
  min-width: 0;
  flex: 1;
}

.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: var(--type-small);
}

.account-copy small {
  margin-top: 3px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
}

.workload-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.workload-chips span {
  padding: 4px 6px;
  border-radius: 999px;
  color: var(--brand-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  background: rgba(var(--brand-accent-rgb), 0.12);
}

.account-empty {
  padding: 18px;
  border: 1px dashed var(--brand-line);
  border-radius: 13px;
  text-align: center;
  background: var(--brand-paper);
}

.account-empty p {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: var(--type-small);
}

.account-empty a,
.card-link {
  color: var(--blue-dark);
  font-size: var(--type-small);
  font-weight: 700;
}

.card-link {
  display: inline-flex;
  gap: 5px;
  margin-top: 17px;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible,
.account-empty a:hover,
.account-empty a:focus-visible {
  color: var(--blue);
}

.rule-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px;
  border-radius: 15px;
  background: linear-gradient(125deg, rgba(143, 114, 220, 0.09), rgba(var(--brand-accent-rgb), 0.05));
}

.rule-count {
  color: #684db4;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.rule-summary strong,
.rule-summary p {
  display: block;
}

.rule-summary strong {
  font-size: var(--type-small);
}

.rule-summary p {
  margin: 5px 0 0;
  color: var(--brand-muted);
  font-size: var(--type-small);
  line-height: 1.45;
}

.dashboard-footer {
  padding: 24px 4px 0;
  color: var(--brand-muted);
  font-size: var(--type-small);
  text-align: center;
}

@media (max-width: 1080px) {
  .dashboard-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .dashboard-sidebar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .action-center-list {
    grid-template-columns: 1fr;
  }

  .meeting-card {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 0;
    padding: 20px;
  }

  .dashboard-brand {
    margin: 0;
  }

  .sidebar-heading,
  .sidebar-status,
  .dashboard-version {
    display: none;
  }

  .dashboard-navigation {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 5px;
    margin-top: 18px;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 2px;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  .dashboard-navigation::-webkit-scrollbar {
    display: none;
  }

  .dashboard-navigation a {
    flex: 0 0 auto;
    padding: 9px 11px;
  }

  .logout-button {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 9px 12px;
  }

  .dashboard-main {
    padding: 28px 18px 30px;
  }

  .dashboard-header {
    align-items: center;
    margin-bottom: 24px;
  }

  .dashboard-header-actions { gap: 7px; }

  .check-email-button span:last-child { display: none; }

  .check-email-button { padding: 10px 12px; }

  .refresh-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .refresh-button {
    min-width: 44px;
    padding: 10px 12px;
  }

  .today-intro {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px;
  }

  .recommendation-list {
    grid-template-columns: 1fr;
  }

  .snapshot-status {
    min-width: 0;
  }

  .dashboard-session-required {
    margin: 25px auto;
    padding: 34px 22px;
  }
}

@media (max-width: 520px) {
  .priority-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .priority-card {
    min-height: 140px;
    padding: 18px;
  }

  .priority-card > strong {
    margin-top: 18px;
    font-size: 2.15rem;
  }

  .dashboard-card {
    padding: 20px;
  }

  .action-center-item {
    grid-template-columns: 1fr auto;
  }

  .action-priority {
    justify-self: start;
  }

  .action-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .action-open-link {
    grid-column: 2;
    grid-row: 1;
  }

  .card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .email-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meeting-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 13px;
  }

  .account-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .workload-chips {
    width: 100%;
    justify-content: flex-start;
    padding-left: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .loading-mark {
    animation-duration: 1.8s;
  }
}

/* Inputs and actions share the public site's shape and keyboard treatment. */
.dashboard-main h2, .dashboard-main h3 { letter-spacing: -.035em; }
.dashboard-main button { border-radius: 10px; }
.dashboard-navigation a:focus-visible, .logout-button:focus-visible,
.dashboard-main button:focus-visible, .dashboard-main a:focus-visible {
  outline: 3px solid var(--brand-accent-hover);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .dashboard-sidebar { border-right: 0; border-bottom: 1px solid var(--brand-line); }
}

@media (max-width: 760px) {
  .dashboard-header { flex-wrap: wrap; }
  .dashboard-header > div { min-width: 0; }
}
@media (max-width: 520px) {
  .dashboard-header { align-items: stretch; flex-direction: column; gap: 16px; }
  .dashboard-header-actions { align-self: flex-start; }
}

/* Contextual shortcuts keep each feature with its related workspace task. */
.dashboard-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; border: 1px solid var(--brand-line); border-radius: 20px; padding: 24px 28px; background: #fff; }
.dashboard-shortcut[hidden] { display: none; }
.dashboard-shortcut > div { min-width: 0; }
.dashboard-shortcut h2 { margin: 6px 0 8px; font-size: 1.35rem; letter-spacing: -.025em; }
.dashboard-shortcut p:last-child { max-width: 65ch; margin: 0; color: var(--brand-muted); line-height: 1.6; }
.dashboard-shortcut > a { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; max-width: 100%; min-height: 44px; border: 1px solid var(--brand-line-strong); border-radius: 12px; padding: 10px 16px; color: var(--brand-accent); font-weight: 700; text-decoration: none; }
.dashboard-shortcut > a:visited { color: var(--brand-accent); }
.dashboard-shortcut > a:hover { background: var(--brand-paper); }
.dashboard-shortcut > a:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.dashboard-shortcut > a span { flex-shrink: 0; }
@media (max-width: 760px) {
  .dashboard-shortcut { align-items: flex-start; flex-direction: column; padding: 22px; gap: 18px; }
}

/* Today keeps the shared dashboard shell; these rules only affect its overview. */
.today-page .today-intro { padding: 26px 30px; gap: 24px; margin-bottom: 12px; }
.today-page .today-intro h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 8px 0 10px; }
.today-page .today-intro > div:first-child > p:last-child { font-size: 1rem; margin: 0; }
.today-page .snapshot-status { flex-shrink: 0; min-width: 0; }
.today-page .snapshot-status.needs-attention { color: var(--brand-accent-hover); background: var(--brand-soft); border-color: var(--brand-line-strong); }
.today-page .snapshot-status.needs-attention > span { background: var(--brand-accent); }
.today-page .today-source-note { margin: 12px 0 18px; max-width: 95ch; color: var(--brand-muted); font-size: .88rem; line-height: 1.65; }
.today-quick-actions, .dashboard-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.today-quick-actions a, .dashboard-quick-actions a, .dashboard-secondary-action { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 9px 15px; border: 1px solid var(--brand-line); border-radius: 10px; background: var(--brand-surface); color: var(--brand-ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.today-page .priority-card { display: block; min-width: 0; color: var(--brand-ink); text-decoration: none; padding: 20px; }
.today-page .priority-card > strong { font-size: 2.35rem; margin: 12px 0 8px; }
.today-page .priority-card small { overflow-wrap: anywhere; }
.today-page a:focus-visible, .today-page summary:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 4px; }
.today-page .priority-card:hover, .today-quick-actions a:hover, .dashboard-quick-actions a:hover, .dashboard-secondary-action:hover:not(:disabled) { border-color: var(--brand-accent); background: var(--brand-soft); }
.today-page .today-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 24px 28px; border-left: 4px solid var(--brand-accent); }
.today-next > div { min-width: 0; }
.today-next h2 { margin: 6px 0 8px; font-size: 1.5rem; overflow-wrap: anywhere; }
.today-next p { margin: 6px 0; overflow-wrap: anywhere; }
.today-page .card-link { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.today-page .today-next .card-link { flex-shrink: 0; margin: 0; }
.today-page .recommendation-list { grid-template-columns: 1fr; gap: 12px; }
.today-page .recommendation-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; border-top-width: 1px; border-left: 3px solid var(--brand-line-strong); }
.today-page .recommendation-copy { min-width: 0; }
.today-page .recommendation-copy strong { display: block; }
.today-page .recommendation-link { margin: 0; }
.today-page .meeting-state, .today-page .connection-state { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-muted); font-size: .8rem; }
.today-page .connection-state.needs-attention { color: var(--brand-accent-hover); font-weight: 700; }
.today-page .account-item { min-width: 0; }
.today-page .account-copy, .today-page .meeting-copy { min-width: 0; overflow-wrap: anywhere; }
.today-page .provider-mark img { object-fit: contain; }
.today-page #completed-meetings { margin-top: 18px; border-top: 1px solid var(--brand-line); }
.today-page #completed-meetings summary { cursor: pointer; padding: 16px 0; min-height: 44px; font-weight: 650; }
.today-page #completed-meeting-list { opacity: .8; }
.today-page .dashboard-footer { font-size: .85rem; line-height: 1.6; }
@media (max-width: 1000px) {
  .today-page .today-intro { align-items: flex-start; flex-direction: column; }
  .today-page .snapshot-status { max-width: 100%; }
}
@media (max-width: 760px) {
  .today-page .today-intro, .today-page .today-next { padding: 20px; }
  .today-page .today-next { align-items: flex-start; flex-direction: column; gap: 8px; }
  .today-page .recommendation-item { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .today-page .recommendation-link { grid-column: 2; }
  .today-page .today-source-note { font-size: .88rem; }
  .today-quick-actions, .dashboard-quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .today-quick-actions a, .dashboard-quick-actions a { justify-content: space-between; gap: 5px; padding: 10px; }
}
@media (max-width: 380px) { .today-quick-actions, .dashboard-quick-actions { grid-template-columns: 1fr; } }
.today-root, .today-page { min-width: 0; }
@media (max-width: 760px) {
  .today-page .dashboard-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .today-page .dashboard-header-actions { flex-wrap: wrap; width: 100%; }
  .today-page .check-email-button, .today-page .refresh-button { flex: 1 1 auto; min-height: 44px; }
  .today-page .check-email-button span:last-child { display: inline; }
  .today-page .refresh-button span:last-child { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .today-page .meeting-item { grid-template-columns: 1fr; gap: 6px; }
}

/* Reusable Today controls for other dashboard review pages. */
.dashboard-secondary-action { font-family: inherit; line-height: inherit; cursor: pointer; }
.dashboard-secondary-action:disabled { cursor: wait; opacity: .66; }

/* Icons use a stable box rather than font-dependent envelope glyphs. */
.button-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.recommendation-link.card-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
