:root {
  /* Lynn OS — aligned with lynn-nam.com */
  --bg: #faf7f0;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
  --hero-fade: #faf7f0;
  --bg-card: #ffffff;
  --bg-soft: #fbfaf7;
  --text: #1a1a1a;
  --text-muted: #6f6f6f;
  --text-light: #9a9690;
  --accent: #8a9baa;
  --accent-soft: rgba(138, 155, 170, 0.14);
  --positive: #5a6f62;
  --negative: #8a6f6a;
  --border: rgba(26, 26, 26, 0.08);
  --border-strong: rgba(26, 26, 26, 0.14);
  --shadow: none;
  --radius: 12px;
  --radius-sm: 8px;
  --topbar-h: 7.85rem;
  --topbar-bg: rgba(250, 247, 240, 0.5);
  --content-padding: clamp(2.5rem, 5vw, 4.5rem);
  --grid-gap: 1.75rem;
  --section-gap: 3.5rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar (原侧边栏) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: var(--topbar-h);
  padding: 0.75rem var(--content-padding);
  background: var(--topbar-bg);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  align-items: center;
}

.brand-logo-link {
  display: block;
  line-height: 0;
  background: transparent;
  padding: 0;
  border: none;
  transition: opacity 0.15s;
}

.brand-logo-link:hover {
  opacity: 0.8;
}

.brand-logo {
  display: block;
  height: 6.3rem;
  width: auto;
  max-width: min(420px, 85vw);
  object-fit: contain;
  object-position: left center;
}

.topbar-nav,
.sidebar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
}

.topbar-nav a,
.sidebar-nav a {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  letter-spacing: 0.06em;
  transition: color 0.15s, border-color 0.15s;
}

.topbar-nav a:hover,
.sidebar-nav a:hover {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--text);
}

.main-wrap {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-top: var(--topbar-h);
}

.main,
.content,
.page,
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--content-padding);
  box-sizing: border-box;
}

/* Quick launch */
.quick-launch {
  width: 100%;
  margin-bottom: 1.5rem;
}

.quick-launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.quick-launch-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: background 0.2s;
  min-width: 0;
}

.quick-launch-item:hover {
  background: var(--bg-soft);
  transform: none;
  box-shadow: none;
}

.quick-launch-icon {
  flex-shrink: 0;
  width: 3.5rem;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quick-launch-icon img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: block;
}

.quick-launch-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero map — homepage first screen */
.hero-map {
  position: relative;
  width: 100%;
  min-height: max(680px, 88vh);
  background-color: var(--bg);
  overflow: hidden;
  animation: fadeInSoft 1s ease-out both;
}

.hero-map__inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.hero-map__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.hero-map__line {
  stroke: rgba(26, 26, 26, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: linePulse 8s ease-in-out infinite;
}

.hero-map__line:nth-child(2) { animation-delay: 0.6s; }
.hero-map__line:nth-child(3) { animation-delay: 1.2s; }
.hero-map__line:nth-child(4) { animation-delay: 1.8s; }
.hero-map__line:nth-child(5) { animation-delay: 2.4s; }
.hero-map__line:nth-child(6) { animation-delay: 0.9s; }
.hero-map__line:nth-child(7) { animation-delay: 1.5s; }
.hero-map__line:nth-child(8) { animation-delay: 2.1s; }
.hero-map__line:nth-child(9) { animation-delay: 0.3s; }
.hero-map__line:nth-child(10) { animation-delay: 1.1s; }

.hero-map__line.is-highlight {
  stroke: rgba(26, 26, 26, 0.32);
  animation-play-state: paused;
}

.hero-map__keywords {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-keyword {
  position: absolute;
  transform: translate(
    calc(-50% + var(--parallax-x, 0px)),
    calc(-50% + var(--parallax-y, 0px))
  );
  font-family: var(--font);
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: var(--fw-light);
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: auto;
  cursor: default;
  transition: color 0.35s ease;
  animation: fadeInSoft 1s ease-out both;
  animation-delay: 0.15s;
  opacity: 0.42;
}

.hero-keyword:nth-child(2) { animation-delay: 0.22s; color: var(--text-light); }
.hero-keyword:nth-child(3) { animation-delay: 0.3s; }
.hero-keyword:nth-child(4) { animation-delay: 0.38s; color: var(--text-light); }
.hero-keyword:nth-child(5) { animation-delay: 0.45s; }
.hero-keyword:nth-child(6) { animation-delay: 0.52s; color: var(--text-light); }
.hero-keyword:nth-child(7) { animation-delay: 0.6s; }
.hero-keyword:nth-child(8) { animation-delay: 0.68s; color: var(--text-light); }
.hero-keyword:nth-child(9) { animation-delay: 0.75s; }
.hero-keyword:nth-child(10) { animation-delay: 0.82s; color: var(--text-light); }

.hero-keyword.float-a {
  animation: fadeInSoft 1s ease-out both, floatUpDown 9s ease-in-out infinite;
  animation-delay: 0.15s, 0s;
}

.hero-keyword.float-b {
  animation: fadeInSoft 1s ease-out both, floatSide 11s ease-in-out infinite;
  animation-delay: 0.22s, 0.8s;
}

.hero-keyword.float-c {
  animation: fadeInSoft 1s ease-out both, floatUpDown 7s ease-in-out infinite reverse;
  animation-delay: 0.3s, 1.4s;
}

.hero-keyword.float-a:nth-child(2) { animation-delay: 0.22s, 0.5s; }
.hero-keyword.float-b:nth-child(5) { animation-delay: 0.45s, 1.1s; }
.hero-keyword.float-c:nth-child(8) { animation-delay: 0.68s, 2s; }

.hero-keyword:hover {
  color: var(--text);
  transition: color 0.35s ease, transform 0.4s ease;
  transform: translate(
      calc(-50% + var(--parallax-x, 0px)),
      calc(-50% + var(--parallax-y, 0px))
    )
    scale(1.03);
}

.hero-map__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: min(94%, 38rem);
  pointer-events: auto;
}

.hero-map-role {
  font-family: var(--font);
  font-size: clamp(0.68rem, 1.15vw, 0.82rem);
  font-weight: var(--fw-light);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  letter-spacing: 0.01em;
}

.hero-map-role--en {
  margin-top: 0.75rem;
  color: var(--text);
  opacity: 0.88;
}

.hero-map-role--zh,
.hero-map-role--kr {
  font-size: clamp(0.62rem, 1.05vw, 0.76rem);
  opacity: 0.72;
}

.hero-map-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-hero--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-hero--primary:hover {
  opacity: 0.88;
}

.btn-hero--ghost {
  background: transparent;
  color: var(--text);
}

.btn-hero--ghost:hover {
  background: rgba(26, 26, 26, 0.04);
}

.home-contact {
  border-top: 1px solid var(--border);
  padding: clamp(2.25rem, 5vw, 3.25rem) var(--content-padding);
  background: var(--bg);
}

.home-contact__inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.home-contact__label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
}

.home-contact__location {
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.home-contact__availability {
  font-size: clamp(0.8rem, 1.1vw, 0.88rem);
  font-weight: var(--fw-light);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto clamp(1.1rem, 2.5vw, 1.5rem);
  max-width: 28em;
}

.home-contact__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.home-contact__languages {
  font-size: clamp(0.78rem, 1.05vw, 0.84rem);
  font-weight: var(--fw-light);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
}

.home-contact__email {
  font-size: clamp(0.78rem, 1.05vw, 0.84rem);
  font-weight: var(--fw-light);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.home-contact__email:hover {
  color: var(--text);
  border-bottom-color: var(--text-muted);
}

.home-contact__social {
  font-size: 0.8rem;
  margin: 1.15rem 0 0;
  color: var(--text-muted);
}

.home-contact__link {
  border-bottom: 1px solid transparent;
}

.home-contact__link:hover {
  border-bottom-color: var(--text-muted);
}

.hero-map-title {
  font-family: var(--font);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: var(--fw-regular);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  opacity: 0.8;
  margin: 0;
  animation: fadeInTitle 0.9s ease-out both;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translate(
        calc(-50% + var(--parallax-x, 0px)),
        calc(-50% + var(--parallax-y, 0px))
      );
  }
  50% {
    transform: translate(
        calc(-50% + var(--parallax-x, 0px)),
        calc(-50% + var(--parallax-y, 0px) - 6px)
      );
  }
}

@keyframes floatSide {
  0%,
  100% {
    transform: translate(
        calc(-50% + var(--parallax-x, 0px)),
        calc(-50% + var(--parallax-y, 0px))
      );
  }
  50% {
    transform: translate(
        calc(-50% + var(--parallax-x, 0px) + 5px),
        calc(-50% + var(--parallax-y, 0px))
      );
  }
}

@keyframes linePulse {
  0%,
  100% {
    stroke-opacity: 0.18;
  }
  50% {
    stroke-opacity: 0.32;
  }
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .hero-map {
    min-height: min(92vh, 640px);
  }

  .hero-map__inner {
    padding: clamp(2rem, 6vh, 3rem) 1rem;
  }

  .hero-keyword--md-hide {
    display: none;
  }

  .hero-keyword {
    font-size: 0.7rem;
    animation: fadeInSoft 1s ease-out both !important;
  }

  .hero-keyword:hover {
    transform: translate(-50%, -50%) scale(1.03);
  }

  .hero-map-title {
    font-size: clamp(2.25rem, 14vw, 3.25rem);
  }

  #kw-1 { left: 10% !important; top: 22% !important; }
  #kw-2 { left: 62% !important; top: 18% !important; }
  #kw-5 { left: 88% !important; top: 44% !important; }
  #kw-7 { left: 52% !important; top: 82% !important; }
  #kw-8 { left: 18% !important; top: 74% !important; }
  #kw-9 { left: 4% !important; top: 50% !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map,
  .hero-map-title {
    animation: none !important;
    opacity: 0.8;
  }

  .hero-keyword,
  .hero-map__line {
    animation: none !important;
  }
}

/* Welcome */
.welcome {
  width: 100%;
  padding: clamp(2.5rem, 8vh, 4rem) 0 clamp(2rem, 5vh, 3rem);
  text-align: center;
  background: var(--hero-fade);
}

.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.welcome-greeting {
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 clamp(0.75rem, 2vh, 1rem);
  color: var(--text);
}

.welcome-meta {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin: 0 0 clamp(2rem, 4vh, 2.75rem);
}

.welcome .quick-launch {
  max-width: 52rem;
  margin-inline: auto;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.welcome-tagline {
  margin: 0 0 clamp(1.25rem, 3vh, 1.75rem);
  font-family: var(--font-avenir);
  font-size: clamp(0.8rem, 1.6vw, 0.92rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.welcome .quick-launch-grid {
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid var(--border);
}

.welcome-tip {
  display: inline-block;
  max-width: 36em;
  margin: 2rem auto 0;
  padding: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
  line-height: 1.7;
}

.welcome-tip::before {
  content: none;
}

/* Dashboard layout */
.dashboard,
.section-grid {
  width: 100%;
  max-width: none;
  padding: 0 0 3rem;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.section {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 1rem;
}

.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-num {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.section-label {
  font-weight: 400;
}

.section-subtitle {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-light);
  margin-top: 0.65rem;
  letter-spacing: 0.06em;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 1.5rem 1.6rem;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-subtitle {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-light);
  margin: -0.5rem 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

/* Shared responsive grids */
.brief-grid,
.card-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

.brief-grid {
  grid-template-columns: 1fr;
}

.brief-grid .card {
  min-width: 0;
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-item a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}

.news-item:last-child a {
  border-bottom: none;
}

.news-item a:hover {
  opacity: 0.7;
}

.news-title {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.text-link,
.card-more {
  display: inline-block;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.text-link:hover,
.card-more:hover {
  color: var(--text);
}

.btn-outline {
  box-shadow: none;
}

.youtube-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.youtube-item .resource-chip {
  width: 100%;
}

/* Design Workbench */
.workbench-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  width: 100%;
  min-width: 0;
}

.workbench-grid .card {
  min-width: 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.resource-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  background: var(--bg-soft);
  border: none;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s;
}

.resource-chip:hover {
  opacity: 0.7;
  transform: none;
  background: var(--bg-soft);
}

.resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.resource-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.resource-icon {
  flex-shrink: 0;
  width: 3.25rem;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.resource-icon img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.resource-name {
  font-size: 0.85rem;
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-category {
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--text-muted);
  background: transparent;
  padding: 0.1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

.resource-note {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.45;
}

/* Today */
.today-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  width: 100%;
  min-width: 0;
}

.today-grid .card {
  min-width: 0;
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-item input {
  margin-top: 0.2rem;
  accent-color: var(--text-muted);
  cursor: pointer;
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--text-light);
}

.todo-text {
  font-size: 0.85rem;
}

.quick-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick-links a {
  display: inline-block;
  padding: 0.35rem 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 300;
  transition: color 0.15s, border-color 0.15s;
}

.quick-links a:hover {
  color: var(--text);
  border-color: var(--text);
  background: transparent;
}

.reminder-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.reminder-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.reminder-item:last-child {
  border-bottom: none;
}

.reminder-time {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  min-width: 3rem;
  letter-spacing: 0.06em;
}

.reminder-text {
  color: var(--text-muted);
}

/* Media ratio */
.media-16x9 {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Footer */
.footer {
  padding: 2.5rem 0 3rem;
  width: 100%;
  max-width: none;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* Loading & error */
.app-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.app-loading[hidden] {
  display: none;
}

.app[hidden] {
  display: none;
}

.loading,
.error-state {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.error-state {
  color: var(--negative);
}

@media (max-width: 767px) {
  .quick-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .brief-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .today-grid .card:last-child {
    grid-column: 1 / -1;
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .brief-grid,
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .today-grid .card:last-child {
    grid-column: auto;
  }

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

/* Large desktop */
@media (min-width: 1400px) {
  .workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .quick-launch-grid {
    grid-template-columns: 1fr;
  }

  .resource-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-hero {
    min-height: auto;
  }

  .welcome-greeting {
    font-size: clamp(1.125rem, 6.5vw, 1.5rem);
  }

  .welcome-meta {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    line-height: 1.5;
    padding-inline: 0.25rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --content-padding: 1.25rem;
    --topbar-h: 10.5rem;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0.85rem var(--content-padding);
    gap: 0.75rem;
  }

  .topbar-nav a,
  .sidebar-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }

  .brand-logo {
    height: 3.15rem;
    max-width: min(210px, 92vw);
  }

  .welcome {
    padding-top: 2rem;
  }

  .dashboard {
    padding-bottom: 2rem;
  }
}
