.dashboard-page {
  min-height: 100vh;
  background: #fff;
}

.dashboard-nav {
  position: sticky;
  top: 0;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--ink-200);
  backdrop-filter: blur(12px);
}

.dashboard-nav .navbar-brand-medium {
  margin-right: 2rem;
}

.dashboard-nav .search-box {
  width: 260px;
}

.dashboard-write-link {
  color: var(--ink-700);
  font-size: 0.875rem;
  padding: 0.55rem 0.8rem;
}

.dashboard-write-link:hover {
  color: var(--accent);
}

.dashboard-profile {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d6e5d1;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.dashboard-profile:hover {
  color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgb(26 137 23 / 10%);
}

.dashboard-mobile-nav {
  border-bottom: 1px solid var(--ink-200);
  background: #fff;
}

.dashboard-mobile-nav a {
  color: var(--ink-700);
  font-size: 0.9rem;
}

.dashboard-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 3.2rem 0 4rem;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-kicker,
.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--ink-500);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dashboard-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dashboard-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dashboard-heading h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.3rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.dashboard-heading h1 > span {
  color: var(--accent);
}

.dashboard-intro {
  margin: 0.65rem 0 0;
  color: var(--ink-600);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.dashboard-create-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.dashboard-create-button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  color: #fff;
}

.dashboard-welcome {
  position: relative;
  display: grid;
  min-height: 260px;
  grid-template-columns: 1fr 0.85fr;
  overflow: hidden;
  border: 1px solid #dce8d8;
  border-radius: 12px;
  background: #f3f7ef;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 2.4rem 1.5rem 3.3rem 2.5rem;
}

.welcome-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.welcome-copy h2 {
  max-width: 430px;
  margin: 0.85rem 0 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.welcome-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--ink-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.welcome-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-dark);
  font-size: 0.8125rem;
  font-weight: 600;
}

.welcome-link {
  margin-top: 1.15rem;
}

.welcome-link:hover,
.text-link:hover {
  color: var(--accent);
}

.welcome-art {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #e1ecd9 0%, #d2e2c6 100%);
}

.art-sun {
  position: absolute;
  top: 29px;
  right: 53px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: #e5bf74;
  opacity: 0.82;
}

.art-window {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 180px;
  height: 150px;
  border: 9px solid rgb(255 255 255 / 72%);
  border-bottom: 0;
  background: linear-gradient(140deg, rgb(255 255 255 / 20%), rgb(83 130 82 / 22%));
  box-shadow: 18px 17px 0 rgb(255 255 255 / 30%);
}

.art-window::before,
.art-window::after {
  position: absolute;
  content: "";
  background: rgb(255 255 255 / 72%);
}

.art-window::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 7px;
}

.art-window::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 7px;
}

.art-book {
  position: absolute;
  bottom: 29px;
  left: 18%;
  width: 155px;
  height: 25px;
  border-radius: 3px 4px 2px 2px;
  box-shadow: 0 9px 16px rgb(54 72 45 / 12%);
  transform: rotate(-8deg);
}

.art-book-one {
  bottom: 55px;
  left: 26%;
  background: #f7f3e8;
  border-bottom: 6px solid #b5c29d;
  transform: rotate(7deg);
}

.art-book-two {
  background: #758b68;
  border-bottom: 5px solid #566d4c;
}

.art-cup {
  position: absolute;
  right: 20%;
  bottom: 36px;
  width: 52px;
  height: 47px;
  border-radius: 4px 4px 18px 18px;
  background: #f8f5eb;
  box-shadow: 0 8px 14px rgb(54 72 45 / 14%);
}

.art-cup::after {
  position: absolute;
  top: 10px;
  right: -15px;
  width: 21px;
  height: 22px;
  border: 5px solid #f8f5eb;
  border-left: 0;
  border-radius: 0 15px 15px 0;
  content: "";
}

.art-cup span {
  position: absolute;
  top: 6px;
  right: 7px;
  left: 7px;
  height: 6px;
  border-radius: 50%;
  background: #8d6743;
}

.art-sparkle {
  position: absolute;
  color: #fff;
  font-size: 1.1rem;
}

.sparkle-one {
  top: 39px;
  left: 23%;
}

.sparkle-two {
  top: 105px;
  left: 12%;
  font-size: 1.5rem;
}

.welcome-progress {
  position: absolute;
  z-index: 2;
  right: 2.5rem;
  bottom: 1.35rem;
  left: 2.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: var(--ink-600);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.progress-label strong {
  color: var(--accent-dark);
  font-size: 0.6875rem;
  letter-spacing: 0;
}

.progress-track,
.goal-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(25 25 25 / 10%);
}

.progress-track span,
.goal-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 3rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: #fff;
}

.metric-icon,
.aside-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.metric-card p,
.metric-card small {
  display: block;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.metric-card strong {
  display: block;
  margin: 0.13rem 0;
  color: var(--ink-900);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.metric-change,
.metric-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.metric-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink-200);
  border-radius: 50%;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: 3rem;
}

.feed-heading,
.aside-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.feed-heading {
  margin-bottom: 0.9rem;
}

.feed-heading .section-kicker {
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.feed-heading h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.dashboard-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--ink-200);
  scrollbar-width: none;
}

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

.dashboard-tabs .topic-tab {
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem;
  color: var(--ink-500);
  font-size: 0.8125rem;
}

.dashboard-tabs .topic-tab.active {
  color: var(--ink-900);
}

.dashboard-story {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.5rem 0;
}

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

.story-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-600);
  font-size: 0.75rem;
}

.story-byline img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.story-byline i {
  color: var(--accent);
  font-size: 0.7rem;
}

.story-dot {
  color: var(--ink-400);
}

.dashboard-story .article-title {
  margin-top: 0.7rem;
  font-size: 1.25rem;
  line-height: 1.28;
}

.dashboard-story .article-subtitle {
  max-width: 550px;
  margin: 0;
  font-size: 0.875rem;
}

.story-image {
  width: 128px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.story-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.story-actions .clap-btn,
.story-actions .bookmark-btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
}

.dashboard-aside {
  display: grid;
  gap: 1rem;
}

.aside-card {
  padding: 1.25rem;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: #fff;
}

.aside-card-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-500);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.aside-icon {
  width: 32px;
  height: 32px;
}

.reading-goal h2 {
  margin: 1rem 0 0.45rem;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.reading-goal > p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.goal-summary {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.1rem 0 0.45rem;
}

.goal-summary strong {
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.goal-summary span {
  color: var(--ink-500);
  font-size: 0.75rem;
}

.goal-track {
  height: 6px;
}

.goal-track span {
  width: 80%;
}

.goal-days {
  display: flex;
  justify-content: space-between;
  margin-top: 1.05rem;
}

.goal-days > span {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.goal-days i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink-300);
  border-radius: 50%;
  background: #fff;
}

.goal-days .is-read i {
  border-color: var(--accent);
  background: var(--accent);
}

.goal-days .is-today i {
  border: 2px solid var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-light);
}

.goal-days small {
  color: var(--ink-500);
  font-size: 0.625rem;
}

.aside-title-row {
  margin-bottom: 0.65rem;
}

.aside-title-row h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aside-title-row > a,
.aside-title-row > i {
  color: var(--ink-500);
  font-size: 0.85rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ink-100);
}

.list-number {
  padding-top: 0.08rem;
  color: #a4b59b;
  font-family: Georgia, serif;
  font-size: 0.8rem;
}

.list-item strong,
.list-item small {
  display: block;
}

.list-item strong {
  color: var(--ink-800);
  font-family: Georgia, serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.list-item small {
  margin-top: 0.25rem;
  color: var(--ink-500);
  font-size: 0.6875rem;
}

.list-item:hover strong {
  color: var(--accent-dark);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 1rem;
}

.topic-chips a {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 0.7rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.topic-chips a:hover {
  border-color: #b6d2af;
  background: var(--accent-light);
  color: var(--accent-dark);
}

.topic-link {
  font-size: 0.75rem;
}

.dashboard-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.2rem 0.2rem;
  color: var(--ink-500);
  font-size: 0.6875rem;
}

.dashboard-footer a:hover {
  color: var(--ink-700);
}

.dashboard-footer span {
  width: 100%;
}

@media (max-width: 900px) {
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
  }

  .dashboard-shell {
    width: min(100% - 36px, 760px);
  }

  .welcome-copy {
    padding-left: 1.7rem;
  }

  .welcome-progress {
    right: 1.7rem;
    left: 1.7rem;
  }
}

@media (max-width: 700px) {
  .dashboard-shell {
    width: min(100% - 32px, 560px);
    padding-top: 2.3rem;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .dashboard-heading h1 {
    font-size: 2.45rem;
  }

  .dashboard-welcome {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    padding: 1.6rem 1.4rem 1rem;
  }

  .welcome-art {
    min-height: 180px;
  }

  .art-window {
    right: 16%;
    width: 160px;
    height: 126px;
  }

  .welcome-progress {
    position: static;
    padding: 0 1.4rem 1.25rem;
    background: #e1ecd9;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 0.9rem 0 2.4rem;
  }

  .metric-card {
    padding: 0.9rem 1rem;
  }

  .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dashboard-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .dashboard-footer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .dashboard-shell {
    width: calc(100% - 28px);
  }

  .dashboard-nav .navbar-brand-medium {
    font-size: 1.5rem;
  }

  .dashboard-story {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .story-image {
    width: 86px;
    height: 86px;
  }

  .dashboard-story .article-title {
    font-size: 1.05rem;
  }

  .dashboard-story .article-subtitle {
    font-size: 0.8rem;
  }

  .story-byline {
    gap: 0.3rem;
    font-size: 0.68rem;
  }

  .story-byline > span:last-child {
    display: none;
  }

  .story-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *,
  .dashboard-page *::before,
  .dashboard-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
