:root {
  color-scheme: dark;
  --bg: #070b0e;
  --surface: #10171d;
  --surface-2: #16212a;
  --surface-3: #0c1116;
  --ink: #f4f7f8;
  --muted: #9ba8af;
  --line: rgba(220, 235, 242, 0.15);
  --red: #d9333a;
  --cyan: #28c6e2;
  --accent: #28c6e2;
  --accent-strong: #69e7f7;
  --green: #9bd23c;
  --yellow: #f0b429;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(40, 198, 226, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(105, 231, 247, 0.12), transparent 30rem),
    linear-gradient(180deg, #11191f 0, var(--bg) 420px);
  color: var(--ink);
}

body.personal-home-page {
  --home-paper: #fbfaf6;
  --home-ink: #22211f;
  --home-muted: #5f5a53;
  --home-soft: #f2eee6;
  --home-line: rgba(34, 33, 31, 0.14);
  --home-accent: #7a633f;
  background:
    radial-gradient(circle at 78% 18%, rgba(177, 148, 105, 0.16), transparent 28rem),
    linear-gradient(180deg, #fffefd 0, var(--home-paper) 38rem);
  color: var(--home-ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 14, 0.78);
  backdrop-filter: blur(16px);
}

.personal-home-page .app-shell {
  width: min(100vw, 1680px);
  padding: 0;
}

.personal-home-page .topbar {
  position: static;
  min-height: 86px;
  justify-content: center;
  border-bottom: 1px solid var(--home-line);
  background: rgba(255, 254, 253, 0.82);
  backdrop-filter: none;
  padding: 0 clamp(18px, 5vw, 96px);
}

.personal-home-page .brand {
  position: absolute;
  left: clamp(18px, 5vw, 96px);
  color: var(--home-ink);
}

.personal-home-page .brand-mark {
  border-color: var(--home-line);
  background: var(--home-soft);
  color: var(--home-ink);
}

.personal-home-page .brand small {
  color: var(--home-muted);
}

.home-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 5vw, 76px);
}

.home-nav-links a {
  position: relative;
  color: var(--home-ink);
  font-size: 18px;
  font-weight: 520;
  line-height: 1;
  text-decoration: none;
}

.home-nav-links a[aria-current="page"]::after,
.home-nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  height: 2px;
  background: var(--home-ink);
}

/* Keep the brand and navigation in separate layout columns before mobile. */
@media (max-width: 1180px) and (min-width: 761px) {
  .personal-home-page .topbar {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto;
    justify-content: initial;
    padding-inline: clamp(24px, 4vw, 56px);
  }

  .personal-home-page .brand {
    position: static;
    min-width: 0;
  }

  .home-nav-links {
    justify-self: end;
    gap: clamp(18px, 2.8vw, 34px);
  }

  .home-nav-links a {
    font-size: 16px;
  }

  .home-nav-links a[aria-current="page"]::after,
  .home-nav-links a:hover::after {
    bottom: -33px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 144px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(105, 231, 247, 0.34);
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 20%, rgba(105, 231, 247, 0.24), transparent 58%),
    rgba(40, 198, 226, 0.08);
  color: #69e7f7;
  font-weight: 950;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 29, 0.78);
  backdrop-filter: blur(12px);
}

.identity-chip span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.identity-chip button,
.result-meta button {
  border: 0;
  border-radius: 6px;
  background: rgba(220, 235, 242, 0.1);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
  scroll-margin-top: 84px;
}

.home-landing {
  display: grid;
  grid-template-columns: minmax(480px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: stretch;
  height: calc(100dvh - 86px);
  min-height: 520px;
  max-height: 820px;
  margin-top: 0;
  border-bottom: 1px solid var(--home-line);
  padding: 0;
}

.home-profile-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 320px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.06), rgba(247, 244, 236, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px;
  text-align: center;
}

.home-profile-mark {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  margin-bottom: 22px;
  border: 2px solid var(--home-accent);
  border-radius: 999px;
  background: rgba(53, 214, 200, 0.08);
  color: var(--home-ink);
  font-size: 58px;
  font-weight: 950;
}

.home-landing .home-profile-card p {
  margin: 0;
  color: var(--home-ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.home-landing .home-profile-card span {
  display: block;
  margin-top: 12px;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.home-landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 680px;
  padding: clamp(38px, 6dvh, 72px) clamp(28px, 4.5vw, 76px);
}

.home-landing h1 {
  max-width: 640px;
  margin: 0;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(42px, 3.9vw, 60px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-landing h1 span {
  display: inline-block;
  white-space: nowrap;
}

.home-landing p:not(.section-label) {
  max-width: 780px;
  color: rgba(220, 235, 242, 0.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.home-landing .home-intro {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.02;
}

.home-landing p.hero-motto {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.45;
}

.home-landing p.home-explainer {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--home-muted);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 450;
  line-height: 1.68;
}

.home-sharing-note {
  max-width: 520px;
  margin-top: 0;
}

.home-sharing-note p {
  margin: 0;
}

.home-landing .home-sharing-quote {
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.16;
}

.home-landing p.home-sharing-quote-translation {
  margin-top: 10px;
  color: var(--home-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.home-landing p.home-sharing-detail {
  margin-top: 20px;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.65;
}

.home-landing p.home-sharing-translation {
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.5;
}

body.personal-home-page > .mal-privacy-notice {
  margin-top: 0;
  border-top-color: var(--home-line);
  background: var(--home-paper);
  color: var(--home-muted);
  opacity: 1;
  padding: 16px 22px 26px;
}

.home-landing-actions,
.home-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 28px;
}

.home-text-links a {
  color: var(--home-accent);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--home-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
}

.home-hero-visual {
  display: grid;
  place-items: center;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f7f4ed;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: clamp(42px, 5vw, 72px) clamp(28px, 8vw, 144px);
  border-bottom: 1px solid var(--home-line);
}

.home-pillars article {
  min-height: 178px;
  border-left: 1px solid var(--home-line);
  padding: 0 clamp(24px, 4vw, 64px);
}

.home-pillars article:first-child {
  border-left: 0;
  padding-left: 0;
}

.home-pillars span {
  display: block;
  margin-bottom: 26px;
  color: var(--home-accent);
  font-size: 15px;
  font-weight: 650;
}

.home-pillars h2 {
  margin: 0 0 14px;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}

.home-pillars p {
  max-width: 330px;
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 430;
  line-height: 1.75;
}

.home-landing-board {
  display: grid;
  gap: 14px;
  align-self: center;
}

.home-landing-board div {
  border: 1px solid rgba(220, 235, 242, 0.14);
  border-radius: 8px;
  background: rgba(7, 11, 14, 0.38);
  padding: 22px;
}

.home-landing-board strong,
.home-landing-board span {
  display: block;
}

.home-landing-board strong {
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.06;
}

.home-landing-board span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.home-project-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: clamp(72px, 12vw, 128px);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: linear-gradient(90deg, rgba(53, 214, 200, 0.07), transparent 58%);
  box-shadow: none;
  padding: clamp(22px, 3.2vw, 30px) 0;
}

.home-project-strip h2 {
  margin: 0 0 8px;
  color: var(--home-ink);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.08;
}

.home-project-strip p:not(.section-label) {
  max-width: 800px;
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

.home-project-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1.5px solid var(--home-accent);
  border-radius: 999px;
  background: rgba(53, 214, 200, 0.08);
  color: var(--home-accent);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.left-rail {
  display: grid;
  gap: 16px;
}

.summary-panel,
.library-panel,
.focus-panel,
.learning-path-section,
.side-notices {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.focus-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
  min-height: calc(100dvh - 120px);
  background:
    radial-gradient(circle at 8% 0%, rgba(40, 198, 226, 0.14), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(167, 139, 250, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(16, 23, 29, 0.98), rgba(10, 15, 20, 0.98));
}

.summary-visual {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(40, 198, 226, 0.12), transparent 42%),
    var(--surface-3);
  overflow: hidden;
}

@media (min-width: 1041px) {
  body.home-page {
    overflow-y: auto;
  }

  body.home-page .app-shell {
    padding-bottom: 18px;
  }

  body.home-page .workspace {
    height: calc(100dvh - 36px);
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  body.home-page .left-rail,
  body.home-page .focus-panel {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(105, 231, 247, 0.62) rgba(220, 235, 242, 0.08);
  }

  body.home-page .left-rail {
    display: flex;
    flex-direction: column;
    padding-right: 6px;
  }

  body.home-page .left-rail > * {
    flex: 0 0 auto;
  }

  body.home-page .focus-panel {
    position: static;
  }

  body.home-page .left-rail::-webkit-scrollbar,
  body.home-page .focus-panel::-webkit-scrollbar {
    width: 10px;
  }

  body.home-page .left-rail::-webkit-scrollbar-track,
  body.home-page .focus-panel::-webkit-scrollbar-track {
    background: rgba(220, 235, 242, 0.06);
    border-radius: 999px;
  }

  body.home-page .left-rail::-webkit-scrollbar-thumb,
  body.home-page .focus-panel::-webkit-scrollbar-thumb {
    background: rgba(105, 231, 247, 0.38);
    border: 2px solid rgba(7, 11, 14, 0.72);
    border-radius: 999px;
  }
}

.summary-visual {
  display: grid;
  place-items: end start;
  padding: 22px;
}

.summary-visual span {
  max-width: 8ch;
  color: rgba(244, 247, 248, 0.92);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 950;
  line-height: 0.96;
}

.hero-motto {
  color: #69e7f7;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  text-transform: uppercase;
}

.summary-copy {
  padding: 22px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.personal-home-page .section-label,
.personal-home-page .home-landing .home-intro,
.personal-home-page .home-landing .home-profile-card p {
  color: var(--home-ink);
}

.personal-home-page .section-label {
  color: var(--home-accent);
  font-size: 11px;
}

.personal-home-page .home-landing p:not(.section-label) {
  color: var(--home-muted);
}

.personal-home-page .home-landing p.hero-motto {
  color: var(--home-accent);
}

.personal-home-page .home-landing p.home-explainer,
.personal-home-page .home-landing .home-profile-card span {
  color: var(--home-muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.summary-copy p:last-child,
.tutorial-card p {
  color: var(--muted);
  line-height: 1.62;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.metric-grid div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.metric-grid div:last-child {
  border-right: 0;
}

.metric-grid dt {
  font-size: 28px;
  font-weight: 900;
}

.metric-grid dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.learning-path-section {
  padding: 18px;
}

.learning-path-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.learning-path-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.learning-path-header span {
  border: 1px solid rgba(167, 139, 250, 0.38);
  border-radius: 999px;
  padding: 5px 9px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 950;
}

.learning-path-section > p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.learning-stage-grid {
  display: grid;
  gap: 10px;
}

.learning-stage-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.10), rgba(40, 198, 226, 0.035));
  padding: 14px;
}

.learning-stage-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.learning-stage-top span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #a78bfa;
  color: #071016;
  font-weight: 1000;
}

.learning-stage-top strong {
  color: #c4b5fd;
  font-size: 12px;
}

.learning-stage-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.learning-stage-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.learning-stage-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-stage-card li {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.learning-stage-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #48cfff;
}

.learning-stage-card a {
  color: inherit;
  text-decoration: none;
}

.learning-stage-card a:hover {
  color: var(--accent-strong);
}

.learning-stage-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  border-radius: 8px;
  background: rgba(40, 198, 226, 0.90);
  color: #031318 !important;
  font-size: 13px;
  font-weight: 950;
}

.library-panel,
.focus-panel {
  padding: 22px;
}

.library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.library-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.library-title-link {
  color: inherit;
  text-decoration: none;
}

.library-title-link:hover {
  color: var(--accent-strong);
}

.library-open-link,
.catalog-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(40, 198, 226, 0.32);
  border-radius: 7px;
  background: rgba(40, 198, 226, 0.10);
  color: var(--accent-strong);
  padding: 0 11px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.library-open-link:hover,
.catalog-home-link:hover {
  border-color: rgba(105, 231, 247, 0.62);
  background: rgba(40, 198, 226, 0.18);
}

.catalog-shell {
  width: min(1360px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 0%, rgba(40, 198, 226, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(16, 23, 29, 0.96), rgba(12, 17, 22, 0.88));
  box-shadow: var(--shadow);
  padding: 28px;
}

.catalog-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 72px);
}

.catalog-hero p:last-child {
  margin: 0;
  max-width: 760px;
  color: rgba(220, 235, 242, 0.76);
  font-size: 16px;
  line-height: 1.7;
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-self: stretch;
  margin: 0;
  border: 1px solid rgba(220, 235, 242, 0.13);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 11, 14, 0.28);
}

.catalog-stats div {
  display: grid;
  place-content: center;
  padding: 18px;
}

.catalog-stats div + div {
  border-left: 1px solid rgba(220, 235, 242, 0.13);
}

.catalog-stats dt {
  color: var(--ink);
  font-size: 34px;
  font-weight: 1000;
}

.catalog-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-controls {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 29, 0.82);
  padding: 18px;
}

.catalog-search {
  display: grid;
  gap: 8px;
}

.catalog-search span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.catalog-search input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 14, 0.72);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.catalog-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 198, 226, 0.18);
}

.catalog-filter-row,
.catalog-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter-button,
.catalog-jump-nav a {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(12, 17, 22, 0.86);
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.catalog-filter-button[aria-pressed="true"] {
  border-color: rgba(105, 231, 247, 0.82);
  background: var(--accent);
  color: #061014;
}

.catalog-jump-nav {
  margin-top: 18px;
}

.catalog-jump-nav a {
  color: var(--accent-strong);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-meta button {
  border: 0;
  border-radius: 7px;
  background: rgba(220, 235, 242, 0.1);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
}

.catalog-groups {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.catalog-group {
  scroll-margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 29, 0.82);
  padding: 18px;
}

.catalog-group-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(220, 235, 242, 0.12);
}

.catalog-group-header h2 {
  margin: 0;
  font-size: 24px;
}

.catalog-group-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.catalog-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-item {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(220, 235, 242, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 198, 226, 0.075), transparent 62%),
    rgba(7, 11, 14, 0.42);
  padding: 15px;
}

.catalog-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.catalog-item h3 {
  margin: 0;
  font-size: 18px;
}

.catalog-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.catalog-item h3 a:hover {
  color: var(--accent-strong);
}

.catalog-item p {
  margin: 0;
  color: rgba(220, 235, 242, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.catalog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-tag-row span {
  border-radius: 6px;
  background: rgba(220, 235, 242, 0.09);
  color: var(--muted);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
}

.focus-copy {
  max-width: 760px;
  padding: 8px 2px 18px;
}

.focus-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.02;
}

.focus-copy p:last-child {
  margin: 0;
  color: rgba(220, 235, 242, 0.76);
  font-size: 16px;
  line-height: 1.75;
}

.recent-updates {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.recent-updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.recent-updates-header h3 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 18px;
}

.recent-subtitle {
  margin: 16px 0 8px;
  color: #b8ec72;
  font-size: 13px;
  line-height: 1.3;
}

.recent-updates-header h3,
.recent-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.recent-updates-header h3::before,
.recent-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.recent-updates-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.feature-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-entry-card {
  --entry-color: var(--accent);
  --entry-soft: rgba(40, 198, 226, 0.12);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  min-height: 248px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--entry-color) 36%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--entry-soft), rgba(7, 11, 14, 0.12) 58%),
    rgba(12, 17, 22, 0.84);
  padding: 18px;
}

.feature-entry-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--entry-color);
  box-shadow: 0 0 22px color-mix(in srgb, var(--entry-color) 62%, transparent);
}

.feature-entry-card--github {
  --entry-color: #a78bfa;
  --entry-soft: rgba(167, 139, 250, 0.15);
}

.feature-entry-card--daily {
  --entry-color: #f0b429;
  --entry-soft: rgba(240, 180, 41, 0.14);
}

.feature-entry-card--local {
  --entry-color: #48cfff;
  --entry-soft: rgba(72, 207, 255, 0.14);
}

.feature-entry-card--openclaw {
  --entry-color: #f472b6;
  --entry-soft: rgba(244, 114, 182, 0.14);
}

.feature-entry-card--video {
  --entry-color: #fb923c;
  --entry-soft: rgba(251, 146, 60, 0.14);
}

.feature-entry-card--hermes {
  --entry-color: #60a5fa;
  --entry-soft: rgba(96, 165, 250, 0.14);
}

.feature-entry-card--gods {
  --entry-color: #2dd4bf;
  --entry-soft: rgba(45, 212, 191, 0.13);
}

.feature-entry-label {
  color: var(--entry-color);
  font-size: 12px;
  font-weight: 950;
}

.feature-entry-card h3 {
  margin: 8px 0 8px;
  font-size: 23px;
  line-height: 1.16;
}

.feature-entry-card p {
  margin: 0;
  color: rgba(220, 235, 242, 0.78);
  font-size: 14px;
  line-height: 1.62;
}

.feature-entry-latest {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(220, 235, 242, 0.12);
}

.feature-entry-latest span {
  color: var(--entry-color);
  font-size: 11px;
  font-weight: 950;
}

.feature-entry-latest strong {
  color: rgba(244, 247, 248, 0.86);
  font-size: 12px;
  line-height: 1.4;
}

.feature-entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 7px;
  background: var(--entry-color);
  color: #061014;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.lesson-update-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lesson-update-section--priority {
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 0;
  background: var(--home-soft);
}

.lesson-update-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lesson-update-heading span {
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 800;
}

.lesson-update-section h3 {
  margin: 0 0 8px;
  color: var(--home-ink);
  font-size: 15px;
}

.lesson-update-heading h3 {
  margin: 0;
}

.recent-update-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-update-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 0 10px 12px;
  border-top: 1px solid rgba(220, 235, 242, 0.12);
}

.recent-update-item::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(220, 235, 242, 0.25);
}

.recent-update-item:first-child {
  border-top: 0;
  padding-top: 2px;
}

.recent-update-item:first-child::before {
  top: 4px;
}

.github-hot-list {
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(236, 72, 153, 0.04));
  padding: 0 10px;
}

.github-hot-list .recent-update-item::before {
  background: #a78bfa;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.52);
}

.github-hot-list .recent-update-item span {
  color: #c4b5fd;
}

.daily-subtitle {
  color: #f0b429;
}

.daily-hot-list {
  border: 1px solid rgba(240, 180, 41, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.11), rgba(251, 146, 60, 0.04));
  padding: 0 10px;
}

.daily-hot-list .recent-update-item::before {
  background: #f0b429;
  box-shadow: 0 0 16px rgba(240, 180, 41, 0.48);
}

.daily-hot-list .recent-update-item span {
  color: #f6cf74;
}

.local-subtitle {
  color: #48cfff;
}

.local-hot-list {
  border: 1px solid rgba(72, 207, 255, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(72, 207, 255, 0.12), rgba(117, 92, 255, 0.05));
  padding: 0 10px;
}

.local-hot-list .recent-update-item::before {
  background: #48cfff;
  box-shadow: 0 0 16px rgba(72, 207, 255, 0.52);
}

.local-hot-list .recent-update-item span {
  color: #8be3ff;
}

.openclaw-subtitle {
  color: #f472b6;
}

.openclaw-case-list {
  border: 1px solid rgba(244, 114, 182, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.12), rgba(40, 198, 226, 0.04));
  padding: 0 10px;
}

.openclaw-case-list .recent-update-item::before {
  background: #f472b6;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.52);
}

.openclaw-case-list .recent-update-item span {
  color: #f9a8d4;
}

.hermes-subtitle {
  color: #60a5fa;
}

.hermes-resource-list {
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(40, 198, 226, 0.04));
  padding: 0 10px;
}

.hermes-resource-list .recent-update-item::before {
  background: #60a5fa;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.52);
}

.hermes-resource-list .recent-update-item span {
  color: #93c5fd;
}

.ai-video-subtitle {
  color: #fb923c;
}

.ai-video-list {
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(240, 180, 41, 0.04));
  padding: 0 10px;
}

.ai-video-list .recent-update-item::before {
  background: #fb923c;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.52);
}

.ai-video-list .recent-update-item span {
  color: #fdba74;
}

.lesson-subtitle {
  color: #9bd23c;
}

.lesson-update-list .recent-update-item {
  background: transparent;
}

.lesson-update-list .recent-update-item::before {
  background: var(--home-accent);
  box-shadow: none;
}

.lesson-update-list .recent-update-item span {
  color: var(--home-muted);
}

.lesson-update-list .recent-update-item a,
.lesson-update-list .recent-update-item strong {
  color: var(--home-ink);
}

.lesson-update-list .recent-update-item p {
  color: var(--home-muted);
}

.recent-update-item a {
  display: grid;
  gap: 3px;
  color: var(--ink);
  text-decoration: none;
}

.recent-update-item strong {
  font-size: 13px;
  line-height: 1.35;
}

.recent-update-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recent-update-item p {
  margin: 0;
  color: rgba(220, 235, 242, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.search-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.search-box span,
.signin-card label span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.search-box input,
.signin-card input,
.signin-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 14, 0.72);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.search-box input:focus,
.signin-card input:focus,
.signin-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 198, 226, 0.18);
}

.search-box input::placeholder,
.signin-card input::placeholder {
  color: #7f8c94;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 29, 0.74);
  color: var(--ink);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.filter-button[data-active="true"] {
  border-color: rgba(105, 231, 247, 0.86);
  background: var(--accent);
  color: #061014;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.tutorial-card {
  display: grid;
  gap: 10px;
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(40, 198, 226, 0.08), transparent 92px),
    rgba(12, 17, 22, 0.86);
  padding: 16px;
}

.tutorial-card h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.tutorial-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  background: rgba(40, 198, 226, 0.12);
  color: #8aefff;
}

.card-meta span + span {
  background: rgba(155, 210, 60, 0.12);
  color: #bfe981;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span {
  padding: 3px 7px;
  background: var(--surface-2);
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  width: 100%;
  margin-top: 2px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #061014;
  text-decoration: none;
  font-weight: 900;
}

.card-link:active,
.primary-button:active,
.filter-button:active,
.identity-chip button:active,
.result-meta button:active {
  transform: translateY(1px);
}

.empty-state {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-2);
}

.signin-dialog {
  width: min(980px, calc(100vw - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.signin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.signin-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 0;
  background:
    radial-gradient(circle at 6% 0%, rgba(40, 198, 226, 0.20), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(155, 210, 60, 0.12), transparent 16rem),
    var(--surface);
}

.signin-intro,
.signin-form-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
}

.signin-intro {
  min-height: 560px;
  align-content: end;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(40, 198, 226, 0.10), transparent 46%),
    rgba(7, 11, 14, 0.28);
}

.signin-form-panel {
  background: rgba(7, 11, 14, 0.28);
}

.signin-logo {
  width: min(260px, 100%);
  height: 68px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: auto;
}

.signin-intro h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.signin-form-panel h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.signin-lead {
  max-width: 560px;
  color: rgba(244, 247, 248, 0.86);
  font-size: 17px;
  line-height: 1.78;
}

.signin-maxim {
  max-width: 580px;
  margin: 2px 0 0;
  color: #f4f7f8;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 900;
  line-height: 1.34;
}

.signin-motto {
  max-width: 540px;
  margin: 0;
  color: #69e7f7;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.55;
  text-transform: uppercase;
}

.signin-note,
.consent-copy {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.consent-copy p {
  margin: 0;
}

.consent-copy p + p {
  margin-top: 8px;
}

.signin-card label {
  display: grid;
  gap: 8px;
}

.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #061014;
  font-weight: 900;
}

.side-notices {
  display: grid;
  gap: 7px;
  padding: 14px 18px;
  color: #74818a;
  font-size: 11px;
  line-height: 1.55;
}

.side-notices p {
  margin: 0;
}

.side-notices strong {
  color: #aab6bd;
}

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .focus-panel {
    position: static;
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 22px, 1440px);
    padding-top: 10px;
  }

  .personal-home-page .app-shell {
    width: 100%;
    padding: 0;
  }

  .personal-home-page .topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 16px 18px 0;
  }

  .personal-home-page .brand {
    position: static;
  }

  .home-nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 0 0 14px;
  }

  .home-nav-links a {
    flex: 0 0 auto;
    font-size: 14px;
    white-space: nowrap;
  }

  .home-nav-links a[aria-current="page"]::after,
  .home-nav-links a:hover::after {
    bottom: -15px;
  }

  .home-landing {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(190px, 1fr);
    height: calc(100dvh - 99px);
    min-height: 530px;
    max-height: none;
    padding: 0;
  }

  .home-landing-copy {
    justify-content: center;
    max-width: none;
    padding: clamp(24px, 4.5dvh, 38px) 22px clamp(20px, 3.5dvh, 30px);
  }

  .home-hero-visual {
    place-items: start center;
    min-height: 190px;
    height: auto;
  }

  .home-hero-visual img {
    min-height: 0;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }

  .home-profile-card {
    min-height: 210px;
    padding: 20px;
  }

  .home-profile-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    font-size: 25px;
  }

  .home-profile-card p {
    font-size: 25px;
  }

  .home-landing .home-intro {
    font-size: 34px;
  }

  .home-landing h1 {
    max-width: 12.5em;
    font-size: clamp(31px, 8.4vw, 46px);
    line-height: 1.16;
  }

  body.personal-home-page .home-landing .home-sharing-quote {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.2;
  }

  body.personal-home-page .home-landing p.home-sharing-quote-translation {
    margin-top: 8px;
    font-size: 13px;
  }

  body.personal-home-page .home-landing p.home-sharing-detail {
    margin-top: 16px;
    font-size: 15px;
  }

  body.personal-home-page .home-landing p.home-sharing-translation {
    font-size: 13px;
  }

  .home-landing p:not(.section-label) {
    font-size: 15px;
  }

  .home-landing p.home-explainer {
    max-width: 34em;
    margin-top: 16px;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.62;
  }

  .home-text-links {
    margin-top: 20px;
  }

  .home-text-links a {
    font-size: 15px;
    text-underline-offset: 7px;
  }

  .home-landing-actions {
    display: grid;
  }

  .home-landing-actions a {
    width: 100%;
  }

  .home-landing-board {
    grid-template-columns: 1fr;
  }

  .home-project-strip {
    grid-template-columns: 1fr;
  }

  .home-project-strip a {
    width: 100%;
  }

  .home-pillars {
    grid-template-columns: 1fr;
    padding: 8px 22px 28px;
  }

  .home-pillars article,
  .home-pillars article:first-child {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--home-line);
    padding: 28px 0;
  }

  .home-pillars span {
    margin-bottom: 16px;
  }

  .topbar,
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-hero,
  .catalog-item-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero,
  .catalog-controls,
  .catalog-group {
    padding: 16px;
  }

  .catalog-page .topbar {
    padding-right: 96px;
  }

  .catalog-page .training-home-button {
    top: 8px;
    right: 8px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .catalog-meta,
  .catalog-group-header {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-stats {
    min-height: 120px;
  }

  .brand {
    align-items: center;
    gap: 10px;
  }

  .brand-logo {
    width: min(220px, 44vw);
    height: 56px;
    object-fit: contain;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 12px;
  }

  .identity-chip {
    justify-content: space-between;
  }

  .workspace,
  .left-rail {
    display: flex;
    flex-direction: column;
  }

  .focus-panel {
    order: -10;
    padding: 18px 14px;
  }

  .focus-copy h2 {
    font-size: 34px;
  }

  .focus-copy p:last-child {
    font-size: 15px;
  }

  .summary-visual {
    display: none;
  }

  .recent-updates {
    margin-top: 0;
    padding-top: 14px;
    border-top: 0;
  }

  .recent-updates-header h3 {
    font-size: 18px;
  }

  .recent-subtitle {
    margin-top: 18px;
    font-size: 15px;
  }

  .recent-update-item strong {
    font-size: 14px;
  }

  .recent-update-item p {
    font-size: 13px;
  }

  .feature-entry-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-entry-card {
    min-height: auto;
  }

  .feature-entry-action {
    justify-self: start;
    min-width: min(220px, 100%);
    padding: 0 26px;
  }

  .tutorial-card {
    min-height: auto;
  }

  .result-meta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .library-panel,
  .summary-copy {
    padding: 18px;
  }

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

  .metric-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .signin-dialog {
    width: min(620px, calc(100vw - 20px));
  }

  .signin-card {
    grid-template-columns: 1fr;
  }

  .signin-intro {
    min-height: auto;
    align-content: start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }

  .signin-form-panel {
    padding: 22px;
  }

  .signin-logo {
    height: 52px;
    margin-bottom: 12px;
  }

  .signin-intro h2 {
    font-size: 42px;
  }

  .signin-lead {
    font-size: 16px;
  }

  .signin-maxim {
    font-size: 24px;
  }

  .signin-motto {
    font-size: 12px;
  }
}
