.glass-home {
  --gh-paper: #FAFAF8;
  --gh-glass: rgba(255, 255, 255, .58);
  --gh-layer: #E4E4E0;
  --gh-border: #C9C9C4;
  --gh-muted: #555555;
  --gh-ink: #111111;
  min-block-size: 100vh;
  margin: 0;
  color: var(--gh-ink);
  background: linear-gradient(145deg, #FAFAF8 0%, #E4E4E0 100%);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

.glass-home *,
.glass-home *::before,
.glass-home *::after { box-sizing: border-box; }

.glass-home a { color: inherit; text-decoration: none; }

.glass-home .gh-glass {
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 20px;
  background: var(--gh-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), 0 5px 12px rgba(17, 17, 17, .09);
}

.glass-home a:focus-visible {
  outline: 3px solid var(--gh-ink);
  outline-offset: 3px;
}

.glass-home .gh-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-block-size: 64px;
  padding: 10px max(16px, calc((100vw - 1400px) / 2));
  border-block-end: 1px solid var(--gh-border);
  background: rgba(250, 250, 248, .82);
  box-shadow: 0 2px 8px rgba(17, 17, 17, .06);
}

.glass-home .gh-brand,
.glass-home .gh-profile,
.glass-home .gh-system,
.glass-home .gh-settings {
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
}

.glass-home .gh-brand {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: .08em;
}

.glass-home .gh-profile,
.glass-home .gh-system {
  padding-inline: 12px;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: var(--gh-glass);
  color: var(--gh-muted);
  font-size: 13px;
  white-space: nowrap;
}

.glass-home .gh-profile { justify-self: start; }
.glass-home .gh-system { justify-self: end; }

.glass-home .gh-settings {
  justify-content: center;
  inline-size: 44px;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  background: var(--gh-glass);
  font-family: "Material Symbols Outlined";
  font-size: 21px;
}

.glass-home .gh-shell {
  inline-size: min(100% - 32px, 1400px);
  margin-inline: auto;
  padding-block: 16px 112px;
}

.glass-home .gh-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 16px;
}

.glass-home .gh-task,
.glass-home .gh-metrics {
  min-block-size: 188px;
  padding: 22px;
}

.glass-home .gh-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 10px 16px;
}

.glass-home .gh-eyebrow {
  margin: 0;
  color: var(--gh-muted);
  font-size: 13px;
  font-weight: 700;
}

.glass-home .gh-task h1 {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.glass-home .gh-task-detail {
  align-self: end;
  margin: 0;
  color: var(--gh-muted);
  font-size: 14px;
}

.glass-home .gh-primary-action,
.glass-home .gh-secondary-action {
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.glass-home .gh-primary-action {
  align-self: end;
  background: var(--gh-ink);
  color: var(--gh-paper);
  box-shadow: 0 3px 7px rgba(17, 17, 17, .18);
}

.glass-home .gh-primary-action:hover,
.glass-home .gh-primary-action:active { background: var(--gh-muted); }

.glass-home .gh-metrics { display: grid; gap: 14px; }

.glass-home .gh-metrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.glass-home .gh-metrics h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
}

.glass-home .gh-secondary-action {
  border: 1px solid var(--gh-border);
  background: rgba(255, 255, 255, .42);
  color: var(--gh-ink);
  white-space: nowrap;
}

.glass-home .gh-secondary-action:hover,
.glass-home .gh-secondary-action:active { background: var(--gh-layer); }

.glass-home .gh-metric-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.glass-home .gh-metric {
  min-inline-size: 0;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 14px;
  background: rgba(255, 255, 255, .38);
  text-align: center;
}

.glass-home .gh-metric dt { color: var(--gh-muted); font-size: 11px; }
.glass-home .gh-metric dd { margin: 3px 0 0; font-size: 19px; font-weight: 800; }
.glass-home .gh-metric small { font-size: 10px; font-weight: 500; }

.glass-home .gh-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-block-start: 16px;
}

.glass-home .gh-card {
  min-block-size: 198px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.glass-home .gh-card:hover,
.glass-home .gh-card:active {
  border-color: var(--gh-ink);
  background: rgba(255, 255, 255, .74);
}

.glass-home .gh-card-icon {
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border: 1px solid var(--gh-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .50);
  font-family: "Material Symbols Outlined";
  font-size: 25px;
}

.glass-home .gh-card-copy { align-self: center; }
.glass-home .gh-card-title { display: block; font-family: "Noto Serif SC", serif; font-size: 20px; line-height: 1.25; }
.glass-home .gh-card-description { display: block; margin-block-start: 6px; color: var(--gh-muted); font-size: 13px; line-height: 1.5; }

.glass-home .gh-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--gh-border);
  color: var(--gh-muted);
  font-size: 12px;
}

.glass-home .gh-card-arrow { color: var(--gh-ink); font-family: "Material Symbols Outlined"; font-size: 18px; }

.glass-home .gh-dock {
  position: fixed;
  inset-inline-start: 50%;
  inset-block-end: 18px;
  z-index: 30;
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 20px;
  background: var(--gh-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), 0 5px 12px rgba(17, 17, 17, .09);
  transform: translateX(-50%);
}

.glass-home .gh-dock-link {
  min-inline-size: 54px;
  min-block-size: 44px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding-inline: 8px;
  border-radius: 14px;
  color: var(--gh-muted);
  font-size: 11px;
}

.glass-home .gh-dock-link .material-symbols-outlined { font-size: 20px; }

.glass-home .gh-dock-link:hover,
.glass-home .gh-dock-link:active,
.glass-home .gh-dock-link.is-current {
  background: var(--gh-ink);
  color: var(--gh-paper);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-home .gh-glass,
  .glass-home .gh-profile,
  .glass-home .gh-system,
  .glass-home .gh-settings { background: var(--gh-paper); border-color: var(--gh-border); box-shadow: none; }
}

@media (max-width: 1023px) {
  .glass-home .gh-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass-home .gh-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .glass-home .gh-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-block-size: 58px;
    gap: 8px;
    padding-inline: 10px;
  }

  .glass-home .gh-profile { overflow: hidden; text-overflow: ellipsis; padding-inline: 9px; font-size: 12px; }
  .glass-home .gh-system { display: none; }
  .glass-home .gh-brand { font-size: 17px; letter-spacing: .04em; }
  .glass-home .gh-shell { inline-size: min(100% - 20px, 640px); padding-block: 10px 104px; }
  .glass-home .gh-overview { grid-template-columns: 1fr; gap: 10px; }
  .glass-home .gh-task,
  .glass-home .gh-metrics { min-block-size: unset; padding: 16px; }
  .glass-home .gh-task { grid-template-columns: minmax(0, 1fr) auto; }
  .glass-home .gh-task h1 { font-size: 25px; }
  .glass-home .gh-task-detail { font-size: 12px; }
  .glass-home .gh-metrics h2 { font-size: 16px; }
  .glass-home .gh-metric-list { gap: 5px; }
  .glass-home .gh-metric { padding: 8px 2px; }
  .glass-home .gh-metric dd { font-size: 16px; }
  .glass-home .gh-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block-start: 10px; }
  .glass-home .gh-card { min-block-size: 174px; gap: 10px; padding: 13px; border-radius: 17px; }
  .glass-home .gh-card-icon { inline-size: 42px; block-size: 42px; border-radius: 14px; font-size: 22px; }
  .glass-home .gh-card-title { font-size: 17px; }
  .glass-home .gh-card-description { font-size: 11px; }
  .glass-home .gh-card-meta { font-size: 10px; }
  .glass-home .gh-dock { inset-block-end: 10px; inline-size: min(100% - 20px, 390px); justify-content: space-around; }
  .glass-home .gh-dock-link { min-inline-size: 0; flex: 1; padding-inline: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-home *,
  .glass-home *::before,
  .glass-home *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
