:root {
  --gold: #F6CC6D;
  --gold-border: #BC8A36;
  --navy: #071425;
  --cream: #F7F3EB;
  --border: #E6D9BE;
  --text: #4E5968;
  --dashboard-card-gap: 24px;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--cream);
  color: var(--navy);
}

.dash-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-page .tt-header-inner {
  align-items: flex-start;
  gap: 28px;
}

.dashboard-page .tt-brand {
  align-items: flex-start;
}

.dash-top,
.case-create-area,
.admin-grid {
  width: 100%;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: #fffdf7;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e6d1a4;
  box-shadow: 0 10px 24px rgba(7, 20, 37, 0.06);
}

.dash-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.actions-left,
.actions-center,
.actions-right {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: center;
}

.actions-left {
  justify-content: flex-start;
}

.actions-center {
  justify-content: center;
}

.actions-right {
  justify-content: flex-end;
}

.case-create-area {
  margin-top: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.meta-label {
  font-weight: 700;
}

.meta-value {
  font-weight: 400;
}

.welcome-block {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1b2f46;
}

.account-meta {
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1b2f46;
}

.link-button {
  display: inline-block;
  margin-top: 6px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sign-out-btn {
  margin-top: 4px;
}

.pill {
  border: none;
  background: #013D85;
  color: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.pill.action-pill {
  min-width: 110px;
  height: 34px;
  min-height: 34px;
  padding: 6px 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

.pill.gold {
  background: var(--gold);
  color: #071425;
  border: 1px solid var(--gold-border);
}

.pill.blue {
  background: #013D85;
}

.pill.bright {
  background: #2a63bf;
}

.admin-grid {
  display: grid;
  grid-template-columns: calc((100% - var(--dashboard-card-gap)) / 2) calc((100% - var(--dashboard-card-gap)) / 2);
  column-gap: var(--dashboard-card-gap);
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.stats-column,
.activity-column {
  display: flex;
  flex-direction: column;
}

.stats-column {
  gap: var(--dashboard-card-gap);
}

.activity-column {
  align-self: stretch;
}

.activity-column {
  align-self: stretch;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(7, 20, 37, 0.05);
  box-sizing: border-box;
  width: 100%;
}

.stats-card {
  height: 140px;
}

.stats-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #0b3d79;
}

.stat-number {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 0;
}

.stat-note {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.stats-active {
  border-color: var(--gold-border);
}

.stats-saved {
  border-color: #0a2c68;
}

.activity-card {
  border-color: var(--gold-border);
  display: flex;
  flex-direction: column;
  padding: 16px;
  height: 100%;
}

.activity-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #0b3d79;
}

.activity-card .activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-card .activity-list li {
  border: 1px solid rgba(0, 54, 133, 0.2);
  background: #eef1fb;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.95rem;
  color: #0b1f44;
}

.activity-card .activity-list li strong {
  font-weight: 600;
  font-size: 0.95rem;
}

.activity-card .activity-list li span {
  color: var(--gold-border);
  font-weight: 400;
}

.activity-empty {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.tt-nav {
  width: auto;
  margin-left: auto;
}

.dashboard-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.dashboard-nav-row {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 18px;
  justify-content: flex-end;
}

.dashboard-nav-row a {
  display: block;
  padding: 6px 0;
  text-align: center;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.dashboard-nav-row a.active,
.dashboard-nav-row a:hover {
  color: #ffe082;
}

.dashboard-nav-row.simple {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.dashboard-nav-row.simple a {
  padding: 6px 2px;
  font-weight: 600;
}

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

  .tt-header-inner {
    flex-wrap: wrap;
  }
}
