:root {
  --white: #ffffff;
  --ink: #141210;
  --muted: #6a645c;
  --orange: #f8632c;
  --inbox-oo: #efe6d6;
  --inbox-mi: #dbeffe;
  --inbox-bp: #d5fce3;
  --inbox-st: #f2e4ff;
  --inbox-ink: #1c2434;
  --orange-deep: #c23c0a;
  --orange-hot: #f78c64;
  --orange-soft: rgba(248, 99, 44, 0.14);
  --coral: #ff6b6b;
  --amber: #ffb020;
  --green: #12a86a;
  --green-bright: #2dd4a0;
  --green-soft: rgba(18, 168, 106, 0.14);
  --teal: #0d9488;
  --violet-hint: #a78bfa;
  --hairline: rgba(20, 18, 16, 0.08);
  --font: "TT Rounds Neue", system-ui, sans-serif;
  --display: "TT Rounds Neue", system-ui, sans-serif;
}

@font-face {
  font-family: "TT Rounds Neue";
  src: url("/static/TT_Rounds_Neue_Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

:root { --page-zoom: 1; }
@media (min-width: 900px) {
  :root { --page-zoom: 1.2; }
  html { zoom: var(--page-zoom); }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: #faf8f4;
  overflow-x: hidden;
}

body::before,
body::after { content: none; }

.main {
  width: 100%;
  min-width: 0;
}
.wrap {
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 4rem;
  animation: rise 0.55s ease both;
}

.shell {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  min-height: 100vh;
  min-width: 0;
  align-items: start;
  --side-w: 4.75rem;
  transition: grid-template-columns 0.2s ease;
}
.shell:has(.side:hover) {
  grid-template-columns: 16rem 1fr;
  --side-w: 16rem;
}

body.auth-page .shell {
  grid-template-columns: 1fr;
}
body.auth-page .wrap {
  max-width: 26rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.4rem 3rem;
}

.auth-card {
  padding: 2.1rem 1.75rem 1.9rem;
  border-radius: 1.75rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.4));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 50px rgba(248, 99, 44, 0.08);
  backdrop-filter: blur(10px);
}
.auth-logo {
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto 1.15rem;
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(248, 99, 44, 0.28);
}
.auth-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.auth-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.05rem);
  margin-bottom: 0.55rem;
}
.auth-card .lede {
  margin: 0 auto 1.45rem;
  font-size: 0.95rem;
}
.auth-card .note {
  text-align: left;
  margin-bottom: 1.15rem;
}
.auth-card .btn {
  width: 100%;
  gap: 0.6rem;
}
.auth-card .btn.google {
  background: #fff;
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(20, 18, 16, 0.1),
    0 10px 24px rgba(20, 18, 16, 0.06);
}
.auth-card .btn.google:hover {
  filter: none;
  box-shadow:
    inset 0 0 0 1px rgba(20, 18, 16, 0.14),
    0 14px 30px rgba(20, 18, 16, 0.1);
}
.auth-card .btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  filter: none;
  transform: none;
  box-shadow: none;
}
.auth-google {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.side {
  position: sticky;
  top: 0;
  /* Page zoom scales vh units too, so divide it back out to fit the window. */
  height: calc(100vh / var(--page-zoom));
  height: calc(100dvh / var(--page-zoom));
  overflow: hidden;
  padding: 1.1rem 0.7rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border-right: 1px solid rgba(20, 18, 16, 0.08);
  z-index: 5;
}

.side-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 1.35rem;
}
.side-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}
.shell:has(.side:hover) .side {
  align-items: stretch;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.shell:has(.side:hover) .side-head {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
}
.shell:has(.side:hover) .side-brand {
  justify-content: flex-start;
}
.shell:has(.side:hover) .side-nav,
.shell:has(.side:hover) .side-foot {
  align-items: stretch;
}
.shell:has(.side:hover) .side-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0 0.75rem;
}
.shell:has(.side:hover) .side-link svg { flex: 0 0 auto; }
.shell:has(.side:hover) .side-link .tip {
  position: static;
  transform: none;
  opacity: 1;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: 0.92rem;
  pointer-events: none;
}
.shell:has(.side:hover) .side-logo {
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  align-self: center;
}
.shell:has(.side:hover) .side-avatar {
  margin-left: calc((1.2rem - 2.35rem) / 2);
  flex: 0 0 auto;
}
.side-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 0;
}
.shell:has(.side:hover) .side-user {
  justify-content: flex-start;
  width: 100%;
  padding: 0 0.75rem;
}
.side-name {
  display: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shell:has(.side:hover) .side-name { display: block; }
.side-avatar-form {
  margin: 0;
  flex: 0 0 auto;
}

.side-logo {
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(248, 99, 44, 0.28);
  pointer-events: none;
  user-select: none;
}
.side-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.side-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.side-nav::-webkit-scrollbar { display: none; }

.side-link {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.side-link svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-link:hover {
  color: var(--orange-deep);
  background: var(--orange-soft);
  transform: translateY(-1px);
}
.side-link.active {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(248, 99, 44, 0.28);
}
.side-link.soon {
  opacity: 0.72;
}
.side-link .tip {
  position: absolute;
  left: calc(100% + 0.55rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  box-shadow: 0 8px 20px rgba(20, 18, 16, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.side-link:hover .tip { opacity: 1; }

.side-foot {
  margin-top: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.side-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0b7a4d;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(145deg, rgba(45, 212, 160, 0.35), rgba(18, 168, 106, 0.18));
  box-shadow: inset 0 0 0 1.5px rgba(18, 168, 106, 0.25);
}
select.side-avatar {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 2.35rem;
}
select.side-avatar.is-preview {
  color: #9a3412;
  background: linear-gradient(145deg, rgba(248, 99, 44, 0.35), rgba(234, 88, 12, 0.18));
  box-shadow: inset 0 0 0 1.5px rgba(234, 88, 12, 0.3);
}
select.side-avatar:focus {
  outline: 2px solid rgba(18, 168, 106, 0.45);
  outline-offset: 2px;
}

.side-roles {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.18rem;
  border-radius: 0.95rem;
  background: rgba(20, 18, 16, 0.05);
  box-shadow: inset 0 0 0 1px rgba(20, 18, 16, 0.06);
}
.side-role {
  position: relative;
  width: 2.35rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.72rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.side-role:hover:not(:disabled) {
  color: var(--orange-deep);
  background: var(--orange-soft);
}
.side-role.active {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 16px rgba(248, 99, 44, 0.22);
}
.side-role:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.side-role .tip {
  position: absolute;
  left: calc(100% + 0.55rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  box-shadow: 0 8px 20px rgba(20, 18, 16, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.side-role:hover .tip { opacity: 1; }

.side-role-row {
  display: flex;
  gap: 0.12rem;
}
/* The collapsed sidebar only fits one button per row, so teams show once it opens. */
.side-team { display: none; }
.shell:has(.side:hover) .side-team { display: block; }
.shell:has(.side:hover) .side-role-row .tip { display: none; }

@media (max-height: 980px) and (min-width: 721px) {
  .side { padding-top: 0.8rem; padding-bottom: 0.8rem; gap: 0.4rem; }
  .side-head,
  .shell:has(.side:hover) .side-head { margin-bottom: 0.6rem; }
  .side-logo { width: 2.2rem; height: 2.2rem; }
  .side-nav, .side-foot { gap: 0.25rem; }
  .side-link { width: 2.4rem; height: 2.4rem; border-radius: 0.85rem; }
  .side-role { height: 1.4rem; }
  .side-avatar { width: 2.1rem; height: 2.1rem; }
}

@media (max-width: 720px) {
  .shell,
  .shell:has(.side:hover) {
    grid-template-columns: 1fr;
  }
  .side {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.7rem 0.85rem;
    border-right: none;
    border-bottom: 1px solid rgba(248, 99, 44, 0.1);
    overflow-x: auto;
  }
  .side-head { flex-direction: row; width: auto; gap: 0.35rem; margin-bottom: 0; }
  .side-logo { margin-bottom: 0; margin-right: 0.25rem; }
  .side-nav { flex-direction: row; flex: 0 0 auto; width: auto; overflow: visible; }
  .side-foot { margin-top: 0; margin-left: auto; flex-direction: row; }
  .shell:has(.side:hover) .side-link {
    width: 2.7rem;
    display: grid;
    padding: 0;
  }
  .side-link .tip,
  .shell:has(.side:hover) .side-link .tip,
  .shell:has(.side:hover) .brand,
  .side-name,
  .shell:has(.side:hover) .side-name { display: none; }
  .side-roles { flex-direction: row; }
  .side-role .tip { display: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -6px) scale(1.04); }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.4rem;
  background: #fff;
  border-bottom: 1px solid rgba(20, 18, 16, 0.08);
}
.topbar-home {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.search {
  flex: 0 1 25.6rem;
  width: 100%;
  max-width: 28.8rem;
  min-width: 0;
  margin-right: auto;
}
.search input {
  width: 100%;
  margin: 0;
  padding: 0.76rem 0.96rem 0.76rem 2.16rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236a645c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 0.85rem 50% no-repeat;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  box-shadow: none;
}
.search input:focus {
  border-color: rgba(20, 18, 16, 0.28);
}
.search-hits { grid-template-columns: 1fr; max-width: 40rem; }
.search-hit {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  color: #1c1917;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none;
}
.search-hit.is-locked { background: #f3f0eb; color: #6a645c; font-weight: 650; }
a.search-hit:hover { transform: translateY(2px); }
.lib-lock {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}
.search-kind {
  color: #6a645c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.search-meta {
  color: #6a645c;
  font-size: 0.92rem;
  font-weight: 450;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .search { flex: 1 1 100%; max-width: none; margin-left: 0; order: 3; }
}

.brand {
  display: none;
  font-family: var(--display);
  font-size: 1.56rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}
@media (min-width: 721px) {
  .shell:has(.side:hover) .brand { display: block; }
}
.brand a {
  color: var(--ink);
  text-decoration: none;
}
.brand a span {
  color: var(--ink);
}

a.chip { text-decoration: none; }
.chip {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--orange-deep);
  background: linear-gradient(120deg, rgba(248, 99, 44, 0.16), rgba(255, 176, 32, 0.18));
  box-shadow: inset 0 0 0 1px rgba(248, 99, 44, 0.18);
}
.chip.role {
  color: #0b7a4d;
  background: linear-gradient(120deg, rgba(45, 212, 160, 0.2), rgba(18, 168, 106, 0.12));
  box-shadow: inset 0 0 0 1px rgba(18, 168, 106, 0.22);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.welcome-panel {
  margin-bottom: 0;
  padding: 1.7rem 1.35rem 1.35rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  min-width: 0;
}
.welcome-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.welcome-row .welcome-said {
  flex: 0 1 auto;
  min-width: 0;
}
.welcome-sockit {
  width: clamp(3.4rem, 12vw, 5rem);
  height: auto;
  flex: none;
  display: block;
}
.welcome-said {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.7rem 1.25rem 0.8rem;
  background: #f3f0eb;
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 1.15rem;
}
.sockit-by {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.welcome-said::before {
  content: "";
  position: absolute;
  left: -0.38rem;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  background: #f3f0eb;
  border-left: 1px solid rgba(20, 18, 16, 0.08);
  border-bottom: 1px solid rgba(20, 18, 16, 0.08);
  transform: translateY(-50%) rotate(45deg);
}
.welcome-row .greeting-said,
.welcome-row .refresher-said {
  flex: 1 1 auto;
}
.greeting-said {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
  padding: 1.15rem 1.3rem 1.2rem;
  background: #fff;
  border-radius: 1.35rem;
}
.greeting-said::before {
  background: #fff;
}
.greeting-copy { min-width: 0; }
.greeting-said .welcome {
  margin: 0.1rem 0 0;
  font-size: clamp(2.2rem, 4vw, 2.85rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--ink);
}
.sockit-line {
  margin: 0.45rem 0 0;
  max-width: 34rem;
  color: #3c3834;
  font-size: 1.2rem;
  line-height: 1.45;
}
.stat-bar {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  flex: none;
}
.stat {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 0.35rem;
  align-items: center;
}
.stat-ico {
  width: 1.05rem;
  height: 1.05rem;
  grid-row: 1 / span 2;
  display: block;
}
.watt-ico { fill: var(--orange); }
.current-ico { fill: var(--ink); color: var(--ink); }
.spark-ico { fill: #e2b43a; }
.stat-num {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat-num.is-zero {
  font-weight: 500;
  color: #b0aaa4;
}
.stat-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.85fr);
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: start;
}
.home-main > .home-block { margin-top: 0; }
.home-pickup .charge-title { margin-bottom: 0.85rem; }
.home-pickup .pickup-list { grid-template-columns: 1fr; }
.home-pickup .pickup-row { padding: 1.15rem 1.2rem 1.1rem; }
.home-pickup .pickup-row h3 { font-size: 1.2rem; }
.home-pickup .hub-card p { font-size: 1.2rem; }
.home-charge,
.charge-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plug-status + .plug-status {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
}
.plug-value {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.plug-status > p:last-child a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.charge-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.home-pickup .charge-title,
.charge-section .charge-title,
.energy-grid .charge-title { font-size: 1.7rem; }
.home-pickup .charge-title .stat-ico,
.charge-section .charge-title .stat-ico,
.energy-grid .charge-title .stat-ico {
  width: 1.35rem;
  height: 1.35rem;
}
.home-plug .reward-kicker { font-size: 0.86rem; }
.charge-title .current-ico { fill: var(--orange); color: var(--orange); }
.charge-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}
.charge-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.charge-card p {
  margin: 0;
  color: #3c3834;
  font-size: 1.2rem;
  line-height: 1.45;
}
.charge-card .btn { margin-top: 1.15rem; }
.charge-card .quest-bar {
  align-self: stretch;
  margin-top: 0.9rem;
}
.charge-card .quest-chip { margin-top: 0.85rem; }
@media (max-width: 720px) {
  .charge-pair { grid-template-columns: 1fr; }
}
.home-charge p,
.charge-section > p {
  margin: 0;
  color: #3c3834;
  font-size: 1.2rem;
  line-height: 1.45;
}
.home-charge .btn,
.charge-section .btn { margin-top: 1.15rem; }
.energy-grid .watt-ico { fill: none; color: var(--orange); }
.grid-note {
  margin: 0.15rem 0 0;
  color: #3c3834;
  font-size: 1.2rem;
  line-height: 1.45;
}
.grid-map {
  position: relative;
  height: 28rem;
  margin-top: 0.85rem;
  border-radius: 1.15rem;
  background-image: radial-gradient(rgba(20, 18, 16, 0.14) 1px, transparent 1px);
  background-size: 1.15rem 1.15rem;
}
.grid-map.is-row { height: 16rem; }
.grid-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.grid-wires line {
  stroke: rgba(20, 18, 16, 0.14);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.grid-wires line.is-live { stroke: var(--orange); stroke-width: 3; }
.grid-wires line.is-locked {
  stroke: rgba(20, 18, 16, 0.22);
  stroke-dasharray: 4 4;
}
.grid-node {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 12.4rem;
  padding: 0.95rem 0.95rem 0.85rem;
  border-radius: 1.35rem;
  background: #f3f0eb;
  border: 1px solid rgba(20, 18, 16, 0.08);
  color: inherit;
  text-decoration: none;
}
.grid-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.grid-node .inbox-pill { height: 1.35rem; font-size: 0.72rem; }
.grid-name {
  min-width: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #8a847c;
  line-height: 1.15;
}
.grid-meter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.grid-bolt {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  fill: var(--orange);
}
.grid-pct {
  flex: none;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.grid-bar {
  display: block;
  flex: 1;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.08);
  overflow: hidden;
}
.grid-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}
.grid-node.is-live,
.grid-node.is-done { border-color: rgba(248, 99, 44, 0.55); }
.grid-node.is-here {
  z-index: 2;
  border-color: var(--orange);
  background: #fff;
}
.grid-node .grid-sockit {
  position: absolute;
  top: -1.35rem;
  right: 0.45rem;
  width: 3.1rem;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(20, 18, 16, 0.14));
  pointer-events: none;
}
.grid-node.is-live .grid-name,
.grid-node.is-done .grid-name { color: var(--ink); }
.grid-node.is-locked {
  background: transparent;
  border-style: dashed;
  border-color: rgba(20, 18, 16, 0.22);
}
.grid-node.is-locked .inbox-pill { opacity: 0.55; }
.grid-node.is-locked .grid-name,
.grid-node.is-locked .grid-pct { color: #8a847c; }
.grid-lock {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  fill: #8a847c;
  color: #8a847c;
}
@media (max-width: 720px) {
  .grid-map { height: 24rem; }
  .grid-node { width: 6.4rem; padding: 0.4rem 0.45rem; }
  .grid-name { font-size: 0.72rem; }
}
.quest-strip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem 0.65rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.quest-kicker {
  flex: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.quest-name {
  flex: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.quest-bar {
  flex: 1;
  min-width: 3rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.08);
  overflow: hidden;
}
.quest-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}
.quest-chip {
  flex: none;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #ffe4d4;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}
.status-strip {
  margin: 0.75rem 0 0;
  padding: 0.55rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}
.power-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 0.75rem;
  padding: 0.7rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 1.15rem;
}
.power-strip .reward-kicker { margin-right: 0.15rem; }
.power-strip .reward-list { margin: 0; }
.power-strip .reward-list li {
  background: #f3f0eb;
  color: #8a847c;
  font-weight: 650;
}
.power-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.power-grid,
.shop-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 0.8rem;
  padding: 0;
}
.power-card,
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 1rem 1.05rem;
  border-radius: 1.25rem;
  background: #f3f0eb;
}
.power-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
}
.power-mark svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}
.power-mark.hint { background: #fff6df; color: #c4921a; }
.power-mark.chance { background: #ffe4d4; color: var(--orange); }
.power-mark.freeze { background: #e7eef6; color: #1c2434; }
.power-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.shop-cost {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
}
.shop-cost svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: #e2b43a;
  display: block;
}
.shop-card {
  width: 100%;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}
.buy-pop {
  width: min(22rem, calc(100% - 2rem));
  padding: 0;
  border: none;
  background: transparent;
}
.buy-pop::backdrop { background: rgba(20, 18, 16, 0.35); }
.buy-pop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 1.4rem 1.45rem 1.45rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
}
.buy-pop-card .power-name { margin: 0; }
.buy-pop-card .shop-cost { margin: 0; }
.buy-pop-card .btn { margin-top: 0.15rem; }
.shop-balance,
.shop-note,
.rewards-powers > p:last-child {
  margin: 0;
  color: #3c3834;
  font-size: 1.05rem;
  line-height: 1.45;
}
.rewards-shop { margin-top: 1rem; }
.rewards-shop .charge-title { margin-bottom: 0.35rem; }
@media (max-width: 720px) {
  .power-grid,
  .shop-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .greeting-said { flex-direction: column; align-items: flex-start; }
  .home-main { grid-template-columns: 1fr; }
  .quest-strip { flex-wrap: wrap; border-radius: 1.15rem; }
  .quest-bar { flex-basis: 100%; }
}
.welcome-row + .welcome-panel {
  margin-top: 1.35rem;
}
.welcome-panel > .hub-section:first-child {
  margin-top: 0;
}
.refresher-said {
  gap: 0.25rem;
  max-width: none;
  padding: 1.2rem 1.4rem 1.3rem;
  background: #fff;
  border-radius: 1.35rem;
}
.refresher-said::before {
  background: #fff;
}
.refresher-said h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.refresher-said .hub-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.refresher-said h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.refresher-said > p:not(.sockit-by) {
  margin: 0;
  max-width: 36rem;
  color: #3c3834;
  font-size: 1.02rem;
  line-height: 1.5;
}
.refresher-said .btn { margin-top: 1rem; }
.welcome-panel .welcome { margin: 0; }
.welcome-panel .due-pill { margin: 0.85rem 0 0; }
.welcome-panel .hub-section { margin-top: 2.6rem; }
.welcome-panel .learner-grid { margin-top: 0.85rem; }

.hero {
  position: relative;
  margin-bottom: 2.4rem;
  padding: 2.15rem 1.9rem 2.2rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  overflow: hidden;
}

.hero::before { content: none; }

.hero::after { content: none; }

.hero > * { position: relative; z-index: 1; }

.eyebrow {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
.hero .eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
}
.hero h1 { margin-bottom: 0.85rem; }
.welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.252em;
}

h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 0.7rem;
}

.lede {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
  margin: 0;
  max-width: 34rem;
}
.hero .lede {
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #9c968e;
  max-width: 28rem;
}
.due-pill {
  display: inline-flex;
  margin: 1.15rem 0 0;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 0.95rem 1.05rem;
  border-radius: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a3d12;
  background: linear-gradient(120deg, rgba(255, 176, 32, 0.22), rgba(248, 99, 44, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 144, 40, 0.25);
}
.note-dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--orange), var(--amber));
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.25);
}
.note strong { color: var(--ink); font-weight: 700; }
.perm-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.perm-list li { margin: 0.15rem 0; }

.course-group + .course-group { margin-top: 3rem; }
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e3ddd6;
  border-left: 4px solid var(--pop, var(--orange));
}
.page-head.oo { --pop: #b8893a; --pop-soft: var(--inbox-oo); }
.page-head.mi { --pop: #3d8ec9; --pop-soft: var(--inbox-mi); }
.page-head.bp { --pop: #1fa86a; --pop-soft: var(--inbox-bp); }
.page-head.st { --pop: #8d5cc4; --pop-soft: var(--inbox-st); }
.page-head h1 {
  margin: 0 0 0.5rem;
}
.page-meta {
  margin: 0;
  color: #2a2622;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}
.page-head-progress {
  flex: 0 0 11rem;
  text-align: right;
}
.page-head-progress p {
  margin: 0 0 0.5rem;
  color: var(--pop, var(--orange));
  font-size: 0.92rem;
  font-weight: 600;
}
.page-head-progress .line-progress {
  margin: 0;
  height: 6px;
  background: var(--pop-soft, rgba(20, 18, 16, 0.08));
}
.page-head-progress .line-progress span { background: var(--pop, var(--orange)); }
@media (max-width: 720px) {
  .page-head { align-items: stretch; flex-direction: column; }
  .page-head-progress { flex-basis: auto; text-align: left; }
}
.line-group + .line-group { margin-top: 3rem; }
.line-group ~ .actions { margin-top: 3rem; }
.line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}
.line-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  color: #2a2622;
}
.line-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.line-progress {
  height: 4px;
  margin: -0.5rem 0 1rem;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.08);
  overflow: hidden;
}
.line-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}
.line-lock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #9c968e;
  font-size: 0.92rem;
}
.line-lock svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.course-heading + .page-meta {
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}
.course-heading {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.inbox-bubbles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.inbox-bubble {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 7.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
}
.inbox-bubble:hover { border-color: rgba(20, 18, 16, 0.16); }
.inbox-bubble.is-locked {
  opacity: 0.55;
  cursor: default;
}
.inbox-bubble.is-locked:hover { border-color: rgba(20, 18, 16, 0.08); }
.course-group .line-lock { margin: -0.35rem 0 1rem; }
.inbox-bubble-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--inbox-ink);
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.inbox-bubble[data-track="WHD"] .inbox-bubble-code {
  width: 3.15rem;
  height: 3.15rem;
  padding: 0;
}
.inbox-bubble-code svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inbox-bubble[data-track="WHD"] .inbox-bubble-code { background: #f6d7c4; }
.inbox-bubble[data-track="O&O"] .inbox-bubble-code { background: var(--inbox-oo); }
.inbox-bubble[data-track="M&I"] .inbox-bubble-code { background: var(--inbox-mi); }
.inbox-bubble[data-track="B&P"] .inbox-bubble-code { background: var(--inbox-bp); }
.inbox-bubble[data-track="S&T"] .inbox-bubble-code { background: var(--inbox-st); }
.inbox-bubble-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  min-width: 0;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.topic-bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 8.5rem;
  padding: 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e3ddd6;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.topic-bubble:hover {
  transform: translateY(-3px);
  border-color: #d4cdc4;
}
.topic-bubble .title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: normal;
  line-height: 1.25;
}
.topic-bubble .meta {
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.78rem;
}
.topic-foot-end {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.tag {
  padding: 0.1rem 0.45rem;
  border: 1px solid rgba(20, 18, 16, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.topic-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--orange);
  font-weight: 600;
}
.topic-bubble:hover .topic-arrow {
  opacity: 1;
  transform: none;
}
@media (max-width: 720px) {
  .topic-grid { grid-template-columns: 1fr; }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(248, 99, 44, 0.35), rgba(45, 212, 160, 0.25), transparent);
}

.track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.hub-section { margin-top: 1.85rem; }
.home-block {
  margin-top: 1.35rem;
  padding: 1.35rem 1.35rem 1.45rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  min-width: 0;
}
.home-block .pickup-row,
.home-block.course-group .inbox-bubble,
.reward-card {
  background: #f3f0eb;
  border-color: transparent;
}
.home-block.course-group + .home-block.course-group { margin-top: 1.35rem; }
.courses-head h1 { margin-bottom: 0.35rem; }
.courses-head .page-meta { margin-bottom: 0.15rem; }
.sockit-suggests { margin-top: 1.15rem; }
.sockit-suggests .welcome-sockit { width: 4.4rem; }
.suggest-said {
  flex: 0 1 auto;
  background: #fff;
  padding: 0.95rem 1.3rem 1rem;
  border-radius: 1.35rem;
  text-decoration: none;
  color: inherit;
}
.suggest-said::before { background: #fff; }
.sockit-suggests .sockit-by { font-size: 1.05rem; }
.suggest-line {
  margin: 0.28rem 0 0;
  color: #3c3834;
  font-size: 1.15rem;
  font-weight: 650;
}
.suggest-said:hover .suggest-line { color: var(--orange); }
.welcome-row .suggest-wide {
  flex: 1 1 auto;
  min-width: 0;
}
.review-schedule {
  margin: 0.85rem 0 0 5.2rem;
  max-width: 28rem;
}
.review-schedule-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.review-schedule-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
}
.review-schedule-list li:last-child {
  border-bottom: 1px solid rgba(20, 18, 16, 0.08);
}
.review-schedule-list a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
  min-width: 0;
}
.review-schedule-list a:hover { color: var(--orange); }
.review-due {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}
.review-due.is-overdue,
.review-due.is-blocked {
  color: var(--orange-deep);
}
.suggest-links {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
.suggest-links a {
  color: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.suggest-links a:hover { color: var(--orange); }
.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.reward-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 1.35rem;
  border: 1px solid transparent;
}
.reward-quest {
  grid-column: 1 / -1;
  text-decoration: none;
  color: inherit;
}
.reward-quest .reward-value {
  font-size: 1.45rem;
  line-height: 1.15;
}
.reward-powers { grid-column: 1 / -1; }
.watt-unit {
  margin-left: 0.12em;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.spark-row {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0.35rem 0 0.1rem;
}
.spark {
  width: 1rem;
  height: 1rem;
  fill: #2f7cff;
  display: block;
}
.spark-sm {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.2rem;
}
.reward-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.reward-value {
  margin: 0.15rem 0 0.1rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.reward-card p:last-child {
  margin: auto 0 0;
  color: #3c3834;
  font-size: 0.95rem;
  line-height: 1.45;
}
.reward-list {
  list-style: none;
  margin: 0.2rem 0 0.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.reward-list li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
@media (max-width: 720px) {
  .reward-grid { grid-template-columns: 1fr; }
}
.learner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.home-block .learner-grid { margin-top: 0; }
@media (min-width: 640px) {
  .learner-grid { grid-template-columns: 1fr 1fr; }
}
.reward-card .todo-list { margin-top: 0.35rem; }
.reward-card .todo-list a { background: #fff; }
.reward-card > p a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.reward-card > p a:hover { color: var(--orange-deep); }
.hub-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hub-mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.22rem;
  background: var(--mark, var(--orange));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
}
.pickup-bubble {
  width: fit-content;
  margin: 0 0 0.9rem;
  padding: 0.42rem 0.9rem;
  background: #ffe4d4;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
}
.pickup-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.pickup-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  text-decoration: none;
  color: inherit;
}
.pickup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.pickup-top .hub-title-row {
  margin: 0;
  min-width: 0;
  flex: 1;
  align-items: center;
  flex-wrap: nowrap;
}
.pickup-top .inbox-pill {
  align-self: center;
  height: 1.35rem;
}
.pickup-row h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  min-width: 0;
}
.pickup-percent {
  flex: none;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pickup-bar {
  display: block;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.08);
  overflow: hidden;
}
.pickup-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}
@media (max-width: 720px) {
  .pickup-list { grid-template-columns: 1fr; }
}
.hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: 1.35rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
}
.hub-card h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}
.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.hub-card .hub-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hub-card .hub-when {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.15rem 0 0.35rem;
}
.hub-card .meta { margin-top: 0.75rem; }
.hub-card .btn { margin-top: 1rem; align-self: flex-start; }
.hub-title-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0 0 0.4rem;
}
.hub-title-row h3 { margin: 0; }
.inbox-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--inbox-ink);
  padding: 0 0.55rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.inbox-pill.oo { background: var(--inbox-oo); }
.inbox-pill.mi { background: var(--inbox-mi); }
.inbox-pill.bp { background: var(--inbox-bp); }
.inbox-pill.st { background: var(--inbox-st); }
.hub-continue .hub-kicker { color: var(--orange-deep); }
.hub-continue .foot {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.hub-deadline { --mark: var(--amber); }
.hub-deadline .hub-kicker { color: #9a6400; }
.hub-todo { --mark: var(--green); }
.hub-todo .hub-kicker { color: #0b7a4d; }
.hub-refresher { --mark: var(--teal); }
.hub-refresher .hub-kicker { color: var(--teal); }
.todo-list {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.todo-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  background: #f3f0eb;
}
.todo-list a:hover { color: var(--orange-deep); }
.todo-list .due {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.9rem 0.95rem 0.95rem;
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 34px rgba(20, 18, 16, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.track-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -30px;
  bottom: -40px;
  border-radius: 45% 55% 50% 50%;
  pointer-events: none;
  opacity: 0.85;
}
.track-card.oo::after {
  background: radial-gradient(circle, var(--inbox-oo), transparent 70%);
}
.track-card.mi::after {
  background: radial-gradient(circle, var(--inbox-mi), transparent 70%);
}
.track-card.bp::after {
  background: radial-gradient(circle, var(--inbox-bp), transparent 70%);
}
.track-card.st::after {
  background: radial-gradient(circle, var(--inbox-st), transparent 70%);
}
.track-card.agent::after {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.38), transparent 70%);
}
.track-card.ops::after {
  background: radial-gradient(circle, rgba(20, 18, 16, 0.2), transparent 70%);
}
.track-card.live:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 44px rgba(248, 99, 44, 0.14);
}
.track-card.soon {
  opacity: 0.78;
  cursor: default;
}
.track-card .code {
  flex: none;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.track-card.oo .code,
.track-card.mi .code,
.track-card.bp .code,
.track-card.st .code {
  display: inline-flex;
  align-self: flex-start;
  color: var(--inbox-ink);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
}
.track-card.oo .code { background: var(--inbox-oo); }
.track-card.mi .code { background: var(--inbox-mi); }
.track-card.bp .code { background: var(--inbox-bp); }
.track-card.st .code { background: var(--inbox-st); }
.track-card.agent .code { color: var(--teal); }
.track-card.ops .code { color: var(--ink); }
.track-card h2 {
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
  white-space: nowrap;
}
.track-card .blurb {
  min-height: 0;
  height: calc(0.82rem * 1.4 * 2);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 18, 16, 0.22) transparent;
}
.track-card .blurb::-webkit-scrollbar {
  width: 4px;
}
.track-card .blurb::-webkit-scrollbar-thumb {
  background: rgba(20, 18, 16, 0.22);
  border-radius: 999px;
}
.track-card .foot {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.track-card.live .foot { color: var(--green); }
.track-card.soon .foot { color: var(--muted); }

@media (min-width: 640px) {
  .track-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto calc(0.82rem * 1.4 * 2) auto;
  }
  .track-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    min-height: 0;
  }
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.topic-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 1.35rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(20, 18, 16, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}
.topic-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange), var(--green-bright));
  opacity: 0.55;
  transition: opacity 0.2s ease, height 0.2s ease;
}
.topic-row:nth-child(2)::before {
  background: linear-gradient(180deg, var(--amber), var(--orange));
}
.topic-row:nth-child(3)::before {
  background: linear-gradient(180deg, var(--teal), var(--green));
}
.topic-row:nth-child(4)::before {
  background: linear-gradient(180deg, var(--coral), var(--orange-hot));
}
.topic-row:hover {
  transform: translateY(-2px) translateX(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 40px rgba(248, 99, 44, 0.12);
  background: linear-gradient(120deg, rgba(248, 99, 44, 0.1), rgba(45, 212, 160, 0.08), rgba(255, 255, 255, 0.85));
}
.topic-row:hover::before { opacity: 1; }

.topic-row .title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.topic-row:hover .title { color: var(--orange-deep); }

.meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0.3rem 0 0;
  line-height: 1.45;
}

.status {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
.status.done {
  color: var(--green);
  background: var(--green-soft);
}
.status.fail {
  color: var(--orange-deep);
  background: var(--orange-soft);
}
.status.todo {
  color: var(--orange);
  background: linear-gradient(120deg, rgba(248, 99, 44, 0.14), rgba(255, 176, 32, 0.16));
}
.status.none {
  color: var(--muted);
  background: rgba(20, 18, 16, 0.04);
}
.status.locked {
  color: var(--muted);
  background: rgba(20, 18, 16, 0.06);
}

.sop-block {
  margin: 0.5rem 0 0.25rem;
  padding: 1.4rem 1.35rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(248, 99, 44, 0.1), rgba(45, 212, 160, 0.08) 55%, rgba(255, 255, 255, 0.7));
  box-shadow: inset 0 0 0 1px rgba(248, 99, 44, 0.12);
  position: relative;
  overflow: hidden;
}
.sop-block::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -20px;
  bottom: -30px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.35), transparent 70%);
  pointer-events: none;
}
.sop-block .label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.55rem;
}

.topic-section {
  margin: 1.25rem 0 0.35rem;
}
.topic-section-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}
.topic-section-empty {
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px dashed var(--hairline);
  background: rgba(20, 18, 16, 0.02);
}
.quiz-block {
  padding: 1.25rem 1.35rem;
  border-radius: 1.5rem;
  background: rgba(18, 168, 106, 0.08);
  box-shadow: inset 0 0 0 1px rgba(18, 168, 106, 0.16);
}
.topic-section .attachments {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-hot), var(--orange) 45%, var(--orange-deep));
  color: var(--white);
  text-decoration: none;
  border: none;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow:
    0 12px 30px rgba(248, 99, 44, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 36px rgba(248, 99, 44, 0.34);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.btn.secondary:hover {
  color: var(--orange);
  transform: none;
  filter: none;
}
.btn.ghost-green {
  background: linear-gradient(135deg, rgba(45, 212, 160, 0.22), rgba(18, 168, 106, 0.18));
  color: #0b7a4d;
  box-shadow: inset 0 0 0 1px rgba(18, 168, 106, 0.22);
}
.btn.ghost-green:hover {
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 1px rgba(18, 168, 106, 0.35), 0 10px 24px rgba(18, 168, 106, 0.12);
}
.btn.locked {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(20, 18, 16, 0.16);
  cursor: default;
}
.actions form { margin: 0; }

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.75rem;
}

.question {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: none;
  border-radius: 1.35rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 236, 0.7));
  box-shadow: 0 10px 28px rgba(20, 18, 16, 0.04);
}
.question legend {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  padding: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.78rem 0.95rem;
  margin: 0.35rem 0;
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}
.choice:hover {
  background: var(--orange-soft);
  transform: translateX(3px);
}
.choice:has(input:checked) {
  background: linear-gradient(120deg, rgba(248, 99, 44, 0.16), rgba(45, 212, 160, 0.12));
  box-shadow: inset 0 0 0 1.5px rgba(248, 99, 44, 0.4);
}
.choice input {
  margin-top: 0.2rem;
  accent-color: var(--orange);
}

label.field {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-top: 0.45rem;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #fff3eb);
  font: inherit;
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(248, 99, 44, 0.18);
  transition: box-shadow 0.18s ease;
}
textarea,
select {
  max-width: 100%;
}
textarea {
  border-radius: 1rem;
  min-height: 6rem;
  resize: vertical;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  box-shadow:
    inset 0 0 0 1px rgba(248, 99, 44, 0.45),
    0 0 0 4px rgba(248, 99, 44, 0.15);
}

.flash {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.05rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.flash.ok {
  color: #0b7a4d;
  background: linear-gradient(120deg, rgba(45, 212, 160, 0.18), rgba(18, 168, 106, 0.1));
  box-shadow: inset 0 0 0 1px rgba(18, 168, 106, 0.22);
}
.flash.err {
  color: #9b2c2c;
  background: linear-gradient(120deg, rgba(248, 99, 44, 0.14), rgba(220, 60, 60, 0.08));
  box-shadow: inset 0 0 0 1px rgba(180, 50, 50, 0.2);
}

.attachments {
  margin: 0 0 1.5rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
}
.attachments .label {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.attachments ul,
.attachment-ops {
  list-style: none;
  margin: 0;
  padding: 0;
}
.attachments li,
.attachment-ops li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
}
.attachments a,
.attachment-ops a {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.attachment-ops form { margin-left: auto; }
.attachment-ops + .attachment-upload,
.roster-panel > .meta + .attachment-upload { margin-top: 1.25rem; }
.topic-form input[type="text"],
.topic-form textarea { max-width: none; }
.attachment-upload .field { margin-bottom: 1rem; }
.import-form textarea {
  max-width: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.import-guide { margin: 0 0 1rem; }
.import-guide summary { cursor: pointer; font-weight: 600; }
.import-guide dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}
.import-guide dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.import-guide dd { margin: 0; }
.flash.err ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.flash.err p { margin: 0; }
.import-warnings {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: #8a5a00;
}
.import-summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.25rem;
  margin: 1.1rem 0 0;
}
.import-summary dt { font-weight: 700; }
.import-summary dd { margin: 0; }
.import-summary dd .meta { display: block; }
.attachment-upload input[type="file"] {
  max-width: none;
  height: auto;
  padding: 0.6rem 0.8rem;
}

.roster-panel {
  margin-bottom: 2rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
}

.hsrs-tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.hsrs-tree-head .course-heading { margin-bottom: 0; }
.hsrs-tree-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
  padding: 0.35rem 0 0.15rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(248, 99, 44, 0.06) 0%, transparent 28%, transparent 72%, rgba(18, 168, 106, 0.06) 100%),
    #faf8f4;
  border: 1px solid rgba(20, 18, 16, 0.06);
}
.hsrs-tree {
  display: block;
  width: 100%;
  min-width: 36rem;
  max-width: 52rem;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.hsrs-lane-label {
  fill: #9a948c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hsrs-edge {
  fill: none;
  stroke: #4a4540;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hsrs-edge.is-active { stroke: var(--orange); }
.hsrs-edge.is-zero { stroke-dasharray: 5 4; opacity: 0.45; }
.hsrs-arrow-head {
  fill: #4a4540;
  stroke: #4a4540;
  stroke-width: 1;
  stroke-linejoin: round;
}
.hsrs-arrow-head.is-active {
  fill: var(--orange);
  stroke: var(--orange);
}
.hsrs-edge-badge-link { cursor: pointer; }
.hsrs-edge-badge rect {
  fill: #fff;
  stroke: #d6d0c6;
  stroke-width: 1.25;
}
.hsrs-edge-badge text {
  fill: #4a4540;
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
}
.hsrs-edge-badge.is-active rect { stroke: var(--orange); }
.hsrs-edge-badge.is-active text { fill: var(--orange-deep); }
.hsrs-edge-badge.is-zero { opacity: 0.55; }
.hsrs-weight-form {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
}
.hsrs-weight-heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 750;
}
.hsrs-weight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.65rem 1rem;
}
.hsrs-weight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(20, 18, 16, 0.035);
  border: 1px solid transparent;
  scroll-margin-top: 5rem;
}
.hsrs-weight-row:target {
  border-color: var(--orange);
  background: rgba(248, 99, 44, 0.08);
}
.hsrs-weight-label {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}
.hsrs-weight-arrow {
  margin: 0 0.2rem;
  color: #9a948c;
  font-weight: 700;
}
.hsrs-weight-row input {
  width: 4.5rem;
  flex: 0 0 auto;
  margin: 0;
}
.hsrs-node-link {
  cursor: pointer;
}
.hsrs-node {
  fill: #1c1c1c;
  stroke: transparent;
  stroke-width: 2.5;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.hsrs-node-link:hover .hsrs-node {
  fill: #333;
}
.hsrs-node.is-selected {
  fill: #f8632c;
  stroke: #ffb089;
}
.hsrs-node.is-blocked {
  fill: #8a2e1a;
}
.hsrs-node.is-updated {
  stroke: #12a86a;
  stroke-width: 3.5;
  animation: hsrs-updated 1.2s ease-out 2;
}
@keyframes hsrs-updated {
  0% { stroke-opacity: 1; stroke-width: 6; }
  100% { stroke-opacity: 1; stroke-width: 3.5; }
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.daily-charge-result {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.daily-charge-result li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
  font-weight: 650;
}
.daily-charge-result li > span:last-child { color: var(--muted); font-size: 0.9rem; }
.daily-charge-result li.is-wrong > span:last-child { color: var(--orange-deep); }
.hsrs-node-title,
.hsrs-node-meta {
  fill: #fff;
  text-anchor: middle;
  pointer-events: none;
}
.hsrs-node-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hsrs-node-meta {
  font-size: 10.5px;
  opacity: 0.82;
}
html[data-theme="dark"] .hsrs-tree-wrap {
  background:
    linear-gradient(180deg, rgba(248, 99, 44, 0.1) 0%, transparent 28%, transparent 72%, rgba(45, 212, 160, 0.07) 100%),
    #2a2724;
  border-color: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .hsrs-lane-label { fill: #8a847c; }
html[data-theme="dark"] .hsrs-edge { stroke: #d6d0c6; }
html[data-theme="dark"] .hsrs-arrow-head { fill: #d6d0c6; stroke: #d6d0c6; }
html[data-theme="dark"] .hsrs-edge.is-active { stroke: var(--orange-hot); }
html[data-theme="dark"] .hsrs-arrow-head.is-active { fill: var(--orange-hot); stroke: var(--orange-hot); }
html[data-theme="dark"] .hsrs-edge-badge rect {
  fill: #2a2724;
  stroke: #6b655c;
}
html[data-theme="dark"] .hsrs-edge-badge text { fill: #f3f0eb; }
html[data-theme="dark"] .hsrs-edge-badge.is-active rect { stroke: var(--orange-hot); }
html[data-theme="dark"] .hsrs-edge-badge.is-active text { fill: var(--orange-hot); }
html[data-theme="dark"] .hsrs-weight-form {
  border-top-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .hsrs-weight-row {
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .hsrs-weight-row:target {
  background: rgba(248, 99, 44, 0.14);
}
html[data-theme="dark"] .hsrs-weight-arrow { color: #8a847c; }
.roster-panel .course-heading {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.roster-count {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.roster-add {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: end;
}
@media (max-width: 900px) {
  .roster-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.roster-add .field { margin-bottom: 0; }
.roster-add .field input,
.roster-add .field select { max-width: none; }
.roster-add .actions { margin-top: 0; }
.roster-add .actions .btn { height: 2.75rem; white-space: nowrap; }
.roster-table-wrap { overflow-x: auto; }
.roster-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.roster-table th,
.roster-table td {
  text-align: left;
  padding: 0.6rem 0.65rem;
  height: 3.4rem;
  border-bottom: 1px solid rgba(20, 18, 16, 0.08);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-table th { height: auto; }
.roster-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.roster-actions { text-align: right; }
.roster-remove {
  color: #9b2c2c;
  font-size: 0.85rem;
}
.roster-remove:hover { color: #c53030; }
.roster-inline-select {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.roster-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: 1.25rem -1.35rem -1.5rem;
  padding: 1rem 1.35rem 1.2rem;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 0 0 1.35rem 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}
.roster-save-bar .roster-pending { margin-right: auto; }
.roster-save-bar .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.roster-pending {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.roster-pending.is-dirty { color: var(--orange-deep); }
.roster-inline-select.is-changed {
  box-shadow: inset 0 0 0 2px var(--orange);
}
.roster-table tr.is-found td { background: var(--orange-soft); }
.roster-table tr.is-ineligible td {
  color: var(--muted);
  opacity: 0.55;
}
.roster-table td { transition: background 0.4s ease; }
.roster-table tr.is-removed td {
  background: rgba(220, 60, 60, 0.06);
  color: var(--muted);
  text-decoration: line-through;
}
.roster-table tr.is-removed .roster-actions { text-decoration: none; }
.roster-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}
.roster-panel-head .course-heading { margin: 0; }
.roster-search {
  position: relative;
  flex: 0 1 22rem;
  min-width: 14rem;
}
.roster-search input {
  display: block;
  width: 100%;
  padding: 0.68rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #fff3eb);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(248, 99, 44, 0.18);
}
.roster-search input:focus {
  box-shadow:
    inset 0 0 0 1px rgba(248, 99, 44, 0.45),
    0 0 0 4px rgba(248, 99, 44, 0.15);
}
.roster-suggest {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 18rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  box-shadow: 0 16px 36px rgba(20, 18, 16, 0.12);
}
.roster-suggest li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
}
.roster-suggest li strong { font-size: 0.92rem; }
.roster-suggest li span {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-suggest li:hover,
.roster-suggest li.is-active { background: var(--orange-soft); }

.score {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 0.25rem 0 0.75rem;
  background: linear-gradient(115deg, var(--orange), var(--amber) 40%, var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.score.fail {
  background: linear-gradient(115deg, var(--coral), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}
.result-pill.fail {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.attempt-review {
  margin: 1.5rem 0 0.5rem;
  display: grid;
  gap: 0.85rem;
}
.attempt-review h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.attempt-answer {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--hairline);
  background: var(--white);
}
.attempt-answer.ok { border-color: rgba(18, 168, 106, 0.28); }
.attempt-answer.miss { border-color: rgba(248, 99, 44, 0.28); }
.attempt-prompt {
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.attempt-tag {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.attempt-tag.ok { color: var(--green); }
.attempt-tag.miss { color: var(--orange-deep); }

.library-search {
  position: relative;
  margin-top: 1.1rem;
  max-width: 40rem;
}
.library-board .library-search {
  max-width: none;
  margin-top: 0;
}
.library-search input {
  width: 100%;
  margin: 0;
  padding: 0.95rem 1.15rem 0.95rem 2.75rem;
  border: 2px solid #1c1917;
  border-radius: 0.95rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231c1917' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 1rem 50% no-repeat;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  box-shadow: none;
}
.library-search input:focus { border-color: #1c1917; }
.library-suggest {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 1rem;
  border: 1px solid rgba(20, 18, 16, 0.1);
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 18, 16, 0.1);
}
.library-suggest[hidden] { display: none; }
.library-suggest button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.library-suggest li.is-active button,
.library-suggest button:hover {
  background: #f3f0eb;
}
.library-suggest-code {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.library-count-line {
  margin: 1rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}
.library-topics {
  margin-top: 0.25rem;
}
.library-topics .topic-row {
  background: #fff;
  border: 1px solid rgba(20, 18, 16, 0.08);
  box-shadow: none;
  padding: 1.2rem 1.3rem;
}
.library-topics .topic-row .title { font-size: 1.18rem; }
.library-topics .meta { font-size: 0.98rem; }
.topic-row[data-track="O&O"]::before { background: var(--inbox-oo); opacity: 1; }
.topic-row[data-track="M&I"]::before { background: var(--inbox-mi); opacity: 1; }
.topic-row[data-track="B&P"]::before { background: var(--inbox-bp); opacity: 1; }
.topic-row[data-track="S&T"]::before { background: var(--inbox-st); opacity: 1; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}
.setting-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.setting-hint {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.theme-switch {
  position: relative;
  width: 2.8rem;
  height: 1.6rem;
  flex: none;
  padding: 0.15rem;
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 999px;
  background: #f3f0eb;
  cursor: pointer;
}
.theme-switch[aria-checked="true"] {
  background: var(--orange);
  border-color: transparent;
}
.theme-knob {
  display: block;
  width: 1.22rem;
  height: 1.22rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}
.theme-switch[aria-checked="true"] .theme-knob { transform: translateX(1.2rem); }

html[data-theme="dark"] {
  --ink: #f3f0eb;
  --muted: #b0aaa4;
  --hairline: rgba(243, 240, 235, 0.12);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: #1c1917; color: #f3f0eb; }
html[data-theme="dark"] .side,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .home-block,
html[data-theme="dark"] .hub-card,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .welcome-said,
html[data-theme="dark"] .greeting-said,
html[data-theme="dark"] .search input,
html[data-theme="dark"] .quest-strip,
html[data-theme="dark"] .status-strip,
html[data-theme="dark"] .power-strip {
  background-color: #262220;
  border-color: rgba(243, 240, 235, 0.12);
  color: #f3f0eb;
}
html[data-theme="dark"] .course-group .inbox-bubble,
html[data-theme="dark"] .pickup-row,
html[data-theme="dark"] .grid-node,
html[data-theme="dark"] .reward-card,
html[data-theme="dark"] .todo-list a,
html[data-theme="dark"] .charge-section .quest-strip,
html[data-theme="dark"] .reward-list li,
html[data-theme="dark"] .theme-switch {
  background-color: #322e2b;
  border-color: rgba(243, 240, 235, 0.12);
}
html[data-theme="dark"] .theme-switch[aria-checked="true"] { background: var(--orange); }
html[data-theme="dark"] .review-schedule-list li {
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .review-due.is-overdue,
html[data-theme="dark"] .review-due.is-blocked {
  color: var(--orange-hot);
}
html[data-theme="dark"] .sockit-line,
html[data-theme="dark"] .suggest-line,
html[data-theme="dark"] .charge-card p,
html[data-theme="dark"] .grid-note,
html[data-theme="dark"] .home-charge p,
html[data-theme="dark"] .charge-section > p,
html[data-theme="dark"] .plug-status > p:last-child {
  color: #d9d3cc;
}
html[data-theme="dark"] .grid-map {
  background-image: radial-gradient(rgba(243, 240, 235, 0.16) 1px, transparent 1px);
}
html[data-theme="dark"] .grid-wires line { stroke: rgba(243, 240, 235, 0.2); }
html[data-theme="dark"] .grid-wires line.is-live { stroke: var(--orange); }
html[data-theme="dark"] .grid-node.is-live,
html[data-theme="dark"] .grid-node.is-done,
html[data-theme="dark"] .grid-node.is-here { border-color: rgba(248, 99, 44, 0.7); }
html[data-theme="dark"] .grid-node.is-here { background: #322e2b; }
html[data-theme="dark"] .grid-name,
html[data-theme="dark"] .grid-node.is-locked .grid-name,
html[data-theme="dark"] .grid-node.is-locked .grid-pct { color: #b0aaa4; }
html[data-theme="dark"] .grid-node.is-live .grid-name,
html[data-theme="dark"] .grid-node.is-done .grid-name { color: #f3f0eb; }
html[data-theme="dark"] .welcome-said::before,
html[data-theme="dark"] .greeting-said::before {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.12);
}
html[data-theme="dark"] .side-link .tip {
  background: #322e2b;
  color: #f3f0eb;
}
html[data-theme="dark"] .search input {
  background-color: #322e2b;
  color: #f3f0eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b0aaa4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .page-head,
html[data-theme="dark"] .inbox-bubble,
html[data-theme="dark"] .topic-bubble,
html[data-theme="dark"] .topic-row,
html[data-theme="dark"] .library-search input,
html[data-theme="dark"] .library-suggest,
html[data-theme="dark"] .sop-block,
html[data-theme="dark"] .question,
html[data-theme="dark"] .roster-panel,
html[data-theme="dark"] .attachments,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .welcome-panel,
html[data-theme="dark"] .track-card {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.12);
  color: #f3f0eb;
  box-shadow: none;
}
html[data-theme="dark"] .page-meta,
html[data-theme="dark"] .line-head h2,
html[data-theme="dark"] .hero .lede,
html[data-theme="dark"] .line-lock,
html[data-theme="dark"] .topic-bubble .meta,
html[data-theme="dark"] .rewards-powers > p:last-child,
html[data-theme="dark"] .shop-balance,
html[data-theme="dark"] .shop-note {
  color: #d9d3cc;
}
html[data-theme="dark"] .inbox-bubble:hover,
html[data-theme="dark"] .topic-bubble:hover {
  border-color: rgba(243, 240, 235, 0.28);
}
html[data-theme="dark"] .library-topics .topic-row {
  background: #322e2b;
}
html[data-theme="dark"] .library-suggest li.is-active button,
html[data-theme="dark"] .library-suggest button:hover {
  background: #3a3532;
}
html[data-theme="dark"] .topic-row:hover,
html[data-theme="dark"] .library-topics .topic-row:hover {
  background: #3a3532;
  box-shadow: none;
}
html[data-theme="dark"] .line-progress,
html[data-theme="dark"] .quest-bar,
html[data-theme="dark"] .pickup-bar {
  background: rgba(243, 240, 235, 0.12);
}
html[data-theme="dark"] .quest-chip,
html[data-theme="dark"] .pickup-bubble,
html[data-theme="dark"] .note,
html[data-theme="dark"] .note strong {
  color: #1c2434;
}
html[data-theme="dark"] .library-count-line { color: var(--muted); }
html[data-theme="dark"] .library-empty,
html[data-theme="dark"] .roster-save-bar,
html[data-theme="dark"] .power-card,
html[data-theme="dark"] .shop-card {
  background: #322e2b;
  color: #f3f0eb;
}
html[data-theme="dark"] .buy-pop-card {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.12);
  color: #f3f0eb;
}
html[data-theme="dark"] .buy-pop::backdrop { background: rgba(0, 0, 0, 0.55); }
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #322e2b;
  color: #f3f0eb;
  box-shadow: inset 0 0 0 1px rgba(243, 240, 235, 0.16);
}
html[data-theme="dark"] .roster-table th,
html[data-theme="dark"] .roster-table td {
  border-bottom-color: rgba(243, 240, 235, 0.12);
}
html[data-theme="dark"] .tag,
html[data-theme="dark"] .btn.locked {
  box-shadow: inset 0 0 0 1px rgba(243, 240, 235, 0.22);
  border-color: rgba(243, 240, 235, 0.22);
}
html[data-theme="dark"] .side-roles {
  background: rgba(243, 240, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(243, 240, 235, 0.1);
}
html[data-theme="dark"] .auth-card .btn.google {
  background: #fff;
  color: #141210;
}
html[data-theme="dark"] .sop-block {
  box-shadow: inset 0 0 0 1px rgba(248, 99, 44, 0.28);
}
.library-empty {
  margin: 0.25rem 0.35rem 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(20, 18, 16, 0.03);
}
.library-board { margin-top: 0.35rem; }
.library-board:not(.library-home) {
  max-width: 78rem;
  margin-inline: auto;
}
.library-board:not(.library-home) .map-tracks-head { padding-right: 0; }
.library-home {
  max-width: 78rem;
  margin: 1.15rem auto 0;
}
.lib-title {
  margin: 0 0 1.15rem;
  color: #1c1917;
  font-size: 3rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
body:has(.library-board) .main,
body:has(.library-read) .main { position: relative; }
body:has(.library-board) .topbar,
body:has(.library-read) .topbar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}
body:has(.library-board) .topbar::after,
body:has(.library-read) .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.85rem;
}
body:has(.library-board) .topbar:hover,
body:has(.library-board) .topbar:focus-within,
body:has(.library-read) .topbar:hover,
body:has(.library-read) .topbar:focus-within { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  body:has(.library-board) .topbar,
  body:has(.library-read) .topbar { transition: none; }
}
body:has(.library-board) .topbar .search { display: none; }
body:has(.library-board) .home-stats { margin-left: auto; }
.library-search { margin-top: 0; }
.lib-search {
  width: 100%;
  padding: 0.95rem 1.15rem 0.95rem 2.75rem;
  border: 2px solid #1c1917;
  border-radius: 0.95rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231c1917' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 1rem 50% no-repeat;
  color: #1c1917;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}
.library-board .library-search {
  max-width: none;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 1.35rem;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.06);
}
.library-board .library-search:focus-within { border-color: rgba(28, 25, 23, 0.16); }
.library-board .lib-search-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 1.35rem;
  width: 1.7rem;
  height: 1.7rem;
  color: #f8632c;
  pointer-events: none;
  transform: translateY(-50%);
}
.library-board .lib-search {
  appearance: none;
  width: 100%;
  padding: 1.15rem 3.4rem 1.15rem 3.85rem;
  border: 0;
  border-radius: 1.35rem;
  background: transparent;
  box-shadow: none;
  color: #1c1917;
  font-size: 1.35rem;
  font-weight: 500;
}
.library-board .lib-search-clear {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6a645c;
  cursor: pointer;
  transform: translateY(-50%);
}
.library-board .lib-search-clear[hidden] { display: none; }
.library-board .lib-search-clear svg { width: 0.95rem; height: 0.95rem; }
.library-board .lib-search-clear:hover { background: #f3f0eb; color: #1c1917; }
.library-board .lib-search::-webkit-search-cancel-button,
.library-board .lib-search::-webkit-search-decoration { appearance: none; }
.library-board .lib-search::placeholder { color: #6a645c; opacity: 1; }
.lib-saved {
  margin: 1.25rem 0 0;
}
.lib-saved-body {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.05rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 1.15rem;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.05);
}
.lib-saved-sockit {
  width: 4.4rem;
  height: auto;
  flex: none;
}
.lib-saved-copy {
  display: grid;
  flex: 1;
  gap: 0.55rem;
  min-width: 0;
}
.lib-saved-line {
  margin: 0;
  color: #1c1917;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.2;
}
.lib-saved-row { display: flex; align-items: center; gap: 0.7rem; }
.lib-saved-label {
  display: flex;
  flex: 0 0 7.4rem;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #1c1917;
  font-size: 0.85rem;
  font-weight: 650;
}
.lib-saved-label svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }
#lib-recent .lib-saved-label svg { fill: none; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lib-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem 0.28rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.1);
  color: #1c1917;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.lib-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--track, #f8632c);
}
a.lib-chip:hover { box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.28); }
.lib-saved-empty { color: #8a847c; font-size: 0.88rem; font-weight: 450; }
.lib-browse {
  margin: 1.25rem 0 1rem;
  color: #1c1917;
  font-size: 1.6rem;
  font-weight: 750;
}
.lib-read-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.library-read .path-head .charge-title {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}
.lib-save {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(28, 25, 23, 0.18);
  border-radius: 0.55rem;
  background: #fff;
  color: #1c1917;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}
.lib-save.is-on { background: #1c1917; border-color: #1c1917; color: #fff; }
.lib-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.lib-banners[hidden],
.lib-hits[hidden],
.lib-hit[hidden],
.lib-module[hidden],
.lib-browse[hidden],
.lib-saved[hidden],
.lib-saved-row[hidden] { display: none; }
.lib-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 7.5rem;
  padding-left: 1.4rem;
  overflow: hidden;
  border-radius: 1.35rem;
  color: #1c1917;
  text-decoration: none;
}
.lib-banner-title {
  max-width: 14rem;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}
.lib-banner-art {
  flex: 0 0 11.5rem;
  height: 7.5rem;
}
.lib-banner-art svg { display: block; width: 100%; height: 100%; }
a.lib-banner:hover { transform: translateY(2px); }
.lib-hits { display: grid; gap: 0.55rem; margin-top: 1.35rem; }
.lib-hit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 0.85rem;
  background: #fff;
  color: #1c1917;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none;
}
a.lib-hit:hover { transform: translateY(2px); }
.lib-hit.is-locked {
  padding-right: 2.4rem;
  background: #f3f0eb;
  color: #6a645c;
  font-weight: 650;
}
.lib-hit-meta {
  color: #6a645c;
  font-size: 0.9rem;
  font-weight: 450;
}
.lib-topics { display: grid; gap: 0.55rem; margin-top: 1.25rem; }
.lib-module {
  overflow: hidden;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 0.85rem;
  background: #fff;
}
.lib-folder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 0;
  background: transparent;
  color: #1c1917;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}
.lib-folder-code {
  color: #6a645c;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.lib-folder-name { min-width: 0; }
.lib-folder-count {
  margin-left: auto;
  color: #6a645c;
  font-size: 0.9rem;
  font-weight: 650;
}
.lib-folder-chevron { width: 0.85rem; height: 0.85rem; transition: transform 0.16s ease; }
.lib-folder[aria-expanded="true"] .lib-folder-chevron { transform: rotate(90deg); }
.lib-folder-body { border-top: 1px solid rgba(28, 25, 23, 0.08); }
.lib-topic {
  display: block;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  color: #1c1917;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}
.lib-folder-body .lib-topic:first-child { border-top: 0; }
a.lib-topic:hover { background: #faf8f4; }
.lib-module[hidden],
.lib-topic[hidden],
.lib-folder-body[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lib-folder-chevron { transition: none; }
}
@media (max-width: 720px) {
  .lib-banners { grid-template-columns: 1fr; }
  .lib-banner-title { font-size: 1.25rem; }
  .lib-saved-sockit { width: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  a.lib-banner:hover,
  a.lib-hit:hover { transform: none; }
}
.lib-none { margin: 1.25rem 0 0; color: #6a645c; font-size: 1rem; }
.lib-kicker {
  margin: 0 0 0.25rem;
  color: #6a645c;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.library-read { width: min(100%, 44rem); margin-inline: auto; }
.lib-lines {
  margin: 1.75rem 0 0;
  padding: 1.7rem 1.85rem 1.85rem 2.55rem;
  list-style: disc;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 1.15rem;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.05);
}
.lib-lines li {
  padding: 0;
  border: 0;
  color: #1c1917;
  font-size: 1.22rem;
  font-weight: 450;
  line-height: 1.65;
}
.lib-lines li::marker { color: #1c1917; }
.lib-lines li + li { margin-top: 1.1rem; }
.lib-empty { margin: 1.4rem 0 0; color: #6a645c; font-size: 1.05rem; }
html[data-theme="dark"] .lib-search {
  background-color: #262220;
  color: #f3f0eb;
  border-color: #f3f0eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23f3f0eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .library-board .library-search {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .library-board .library-search:focus-within { border-color: rgba(243, 240, 235, 0.22); }
html[data-theme="dark"] .library-board .lib-search {
  background: transparent;
  color: #f3f0eb;
  border: 0;
  box-shadow: none;
}
html[data-theme="dark"] .library-board .lib-search-clear { color: #b0aaa4; }
html[data-theme="dark"] .library-board .lib-search-clear:hover { background: #322e2b; color: #f3f0eb; }
html[data-theme="dark"] .library-board .lib-search::placeholder { color: #b0aaa4; }
html[data-theme="dark"] .lib-browse,
html[data-theme="dark"] .lib-saved-line,
html[data-theme="dark"] .lib-title { color: #f3f0eb; }
html[data-theme="dark"] .lib-saved-body {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .lib-saved-label,
html[data-theme="dark"] .lib-saved-empty { color: #b0aaa4; }
html[data-theme="dark"] .lib-chip {
  background: #262220;
  color: #f3f0eb;
  box-shadow: inset 0 0 0 1px rgba(243, 240, 235, 0.16);
}
html[data-theme="dark"] .lib-save { background: #262220; color: #f3f0eb; border-color: rgba(243, 240, 235, 0.2); }
html[data-theme="dark"] .lib-save.is-on { background: #f3f0eb; color: #1c1917; }
html[data-theme="dark"] .lib-hit { background: #262220; color: #f3f0eb; }
html[data-theme="dark"] .lib-hit.is-locked { background: #1c1917; color: #a39e97; }
html[data-theme="dark"] .lib-module { background: #262220; border-color: rgba(243, 240, 235, 0.12); }
html[data-theme="dark"] .lib-folder,
html[data-theme="dark"] .lib-topic { color: #f3f0eb; }
html[data-theme="dark"] .lib-folder-code,
html[data-theme="dark"] .lib-folder-count { color: #b0aaa4; }
html[data-theme="dark"] .lib-folder-body,
html[data-theme="dark"] .lib-topic { border-color: rgba(243, 240, 235, 0.1); }
html[data-theme="dark"] a.lib-topic:hover { background: #322e2b; }
html[data-theme="dark"] .search-hit { background: #262220; color: #f3f0eb; }
html[data-theme="dark"] .search-hit.is-locked { background: #1c1917; color: #a39e97; }
html[data-theme="dark"] .lib-lines {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.1);
  box-shadow: none;
}
html[data-theme="dark"] .lib-lines li { color: #f3f0eb; }
html[data-theme="dark"] .lib-lines li::marker { color: #f3f0eb; }


body:has(.module-board) .wrap { max-width: none; }
body:has(.path-head) .wrap { max-width: 68rem; }
.module-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
}
.module-board .welcome-row {
  justify-content: center;
  width: 100%;
}
.module-board .welcome-sockit {
  width: 5.75rem;
}
.module-board .greeting-said {
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 40rem;
  padding: 1.45rem 1.9rem 1.5rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1.6rem;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}
.module-board .greeting-said::before {
  background: #fff;
  border-color: #e5e5e5;
}
.module-suggest-line {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.15;
}
.module-board .greeting-said:hover .module-suggest-line { color: var(--orange); }
.module-board .review-schedule {
  width: min(100%, 32rem);
  margin: 1.35rem 0 0;
}
.map-scroll {
  margin-top: 2.6rem;
  margin-right: -1.4rem;
}
.map-tracks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0 1.15rem;
  padding-right: 1.4rem;
}
.map-tracks-title {
  margin: 0;
  color: #1c1917;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.05;
}
.map-arrows {
  display: flex;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 0.55rem;
  background: #fff;
}
.map-arrow {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c1917;
  cursor: pointer;
}
.map-arrow + .map-arrow { border-left: 1px solid #e5e5e5; }
.map-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-arrow:hover:not(:disabled) { background: #f3f0eb; }
.map-arrow:disabled { color: #c4bfb8; cursor: default; }
.map-arrow:focus-visible { outline: 2px solid #1c1917; outline-offset: -3px; }
.map-bleed { position: relative; min-width: 0; }
.map-picks {
  display: flex;
  min-width: 0;
  gap: 0.9rem;
  margin: 0;
  padding: 0 1.4rem 0.3rem 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.map-picks::-webkit-scrollbar { display: none; }
.map-pick {
  position: relative;
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  width: 300px;
  height: 17.5rem;
  padding: 1.15rem 1.15rem 1.1rem;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 0.55rem;
  color: #1c1917;
  scroll-snap-align: start;
  text-decoration: none;
}
.map-pick-art {
  position: absolute;
  top: 0.15rem;
  right: 0;
  left: 0;
  height: 10.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.map-pick-art svg { width: 92%; height: 100%; object-fit: contain; }
.map-pick-next,
.map-pick-lock {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.55rem;
  background: #fff;
  color: #1c1917;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
}
.map-pick-lock {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}
.map-pick-lock svg { width: 1rem; height: 1rem; fill: currentColor; }
.map-pick.is-locked { cursor: default; }
.pick-onboarding { background: #ffcc01; }
.pick-foundations { background: #f8632c; }
.pick-fl-core { background: #ff96a2; }
.pick-switching { background: #ffb500; }
.pick-meters { background: #ff8f7b; }
.pick-billing { background: #f8632c; }
.pick-industry { background: #feb7d5; }
.map-pick-copy { display: block; width: 100%; }
.map-pick h2 {
  margin: 0;
  color: #1c1917;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}
.map-pick-count,
.map-pick-status {
  margin: 0.4rem 0 0;
  color: #3f3b38;
  font-size: 0.95rem;
  font-weight: 650;
}
.map-pick-status { margin-top: 0.3rem; }
.map-pick-meter {
  display: block;
  height: 0.45rem;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}
.map-pick-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1c1917;
}
.map-pick:hover,
.map-pick:focus-visible { border-color: rgba(28, 25, 23, 0.12); }
.map-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  color: #6a645c;
  font-weight: 700;
  text-decoration: none;
}
.map-back svg { width: 0.85rem; height: 0.85rem; }
.map-back:hover { color: var(--ink); }
.map-section { margin-top: 1.25rem; }
.map-section > .map-note { margin: 0.35rem 0 1.15rem; }
.module-board .map-section > .charge-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
}
.map-line + .map-line { margin-top: 1.75rem; }
.map-line h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}
.map-note,
.map-group {
  margin: 0 0 0.7rem;
  color: #6a645c;
  font-size: 0.95rem;
}
.map-group {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.map-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.map-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 7.2rem;
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid #e5e5e5;
  border-radius: 1.25rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.map-tile h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
}
.map-tile.is-open { border: 2px solid var(--orange); }
.map-tile .home-continue {
  margin-top: auto;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: #eceae6;
  color: #1c1917;
  font-size: 0.88rem;
  font-weight: 700;
}
a.map-tile:hover { background: #faf8f4; }
@media (max-width: 860px) {
  .module-board .welcome-sockit { width: 4.5rem; }
  .module-board .greeting-said { padding: 1.1rem 1.2rem 1.15rem; }
}
html[data-theme="dark"] .module-board .greeting-said,
html[data-theme="dark"] .map-tile {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.12);
  color: #f3f0eb;
}
html[data-theme="dark"] .module-board .greeting-said::before {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.12);
}
html[data-theme="dark"] .map-tile.is-open { border-color: var(--orange); }
html[data-theme="dark"] a.map-tile:hover { background: #322e2b; }
@media (max-width: 800px) {
  .map-tracks-title { font-size: 1.75rem; }
  .map-pick { flex-basis: 260px; width: 260px; height: 16.25rem; }
  .map-pick h2 { font-size: 1.45rem; }
}
html[data-theme="dark"] .map-tracks-title { color: #f3f0eb; }
html[data-theme="dark"] .map-arrows {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.16);
}
html[data-theme="dark"] .map-arrow {
  background: transparent;
  border-color: rgba(243, 240, 235, 0.16);
  color: #f3f0eb;
}
html[data-theme="dark"] .map-arrow:hover:not(:disabled) { background: #322e2b; }
html[data-theme="dark"] .map-arrow:disabled { color: #6a645c; }
html[data-theme="dark"] .map-note,
html[data-theme="dark"] .map-group,
html[data-theme="dark"] .map-back { color: #a39e97; }
html[data-theme="dark"] .map-back:hover { color: #f3f0eb; }

.module-path {
  display: grid;
  grid-template-columns: repeat(6, 9rem);
  justify-content: center;
  column-gap: 1.35rem;
  row-gap: 1.5rem;
  width: 100%;
  margin: 2.15rem 0 0;
  padding: 0.2rem 0 0.4rem;
  list-style: none;
}
.path-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 9rem;
}
.path-step[data-wire]::before {
  content: "";
  position: absolute;
  z-index: 0;
  background: #e7cbb8;
}
.path-step[data-wire="right"]::before {
  top: calc(3rem - 1.5px);
  left: 50%;
  width: calc(100% + 1.35rem);
  height: 3px;
}
.path-step[data-wire="left"]::before {
  top: calc(3rem - 1.5px);
  right: 50%;
  width: calc(100% + 1.35rem);
  height: 3px;
}
.path-step[data-wire="down"]::before {
  top: 3rem;
  left: calc(50% - 1.5px);
  width: 3px;
  height: calc(100% + 1.5rem);
}
.path-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border: 2px solid var(--orange);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--orange);
  text-decoration: none;
}
.path-node svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
}
.path-node.is-open {
  background: var(--orange);
  color: #fff;
}
.module-path.is-lit .path-node,
.module-path.is-lit .path-node.is-open,
.module-path.is-lit .path-node.is-wait {
  border-color: #58a700;
  background: #58cc02;
  color: #fff;
  animation: grid-on 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.12s);
}
.module-path.is-lit .path-step[data-wire]::before {
  background: #58cc02;
  animation-duration: 0.32s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
  animation-delay: calc(var(--i) * 0.12s + 0.14s);
}
.module-path.is-lit .path-step[data-wire="right"]::before {
  transform-origin: left center;
  animation-name: grid-wire-x;
}
.module-path.is-lit .path-step[data-wire="left"]::before {
  transform-origin: right center;
  animation-name: grid-wire-x;
}
.module-path.is-lit .path-step[data-wire="down"]::before {
  transform-origin: top center;
  animation-name: grid-wire-y;
}
.module-path.is-lit .path-step:has(.is-wait) .path-caption {
  color: var(--ink);
  font-weight: 750;
}
@keyframes grid-on {
  0% {
    background: #f3f0eb;
    border-color: #e5e5e5;
    color: #c4bfb8;
    box-shadow: 0 0 0 0 rgba(88, 204, 2, 0);
  }
  55% {
    background: #58cc02;
    border-color: #58a700;
    color: #fff;
    box-shadow: 0 0 0 0.4rem rgba(88, 204, 2, 0.28);
  }
  100% {
    background: #58cc02;
    border-color: #58a700;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(88, 204, 2, 0);
  }
}
@keyframes grid-wire-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes grid-wire-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .module-path.is-lit .path-node,
  .module-path.is-lit .path-step[data-wire]::before { animation: none; }
  .confetti { display: none; }
}
.grid-pop {
  position: relative;
  overflow: hidden;
  width: min(28rem, calc(100% - 2rem));
  padding: 1.7rem 1.45rem 1.15rem;
  border: 0;
  border-radius: 1.15rem;
  background: #fff;
  color: #1c1917;
  text-align: center;
}
.grid-pop::backdrop { background: rgba(28, 25, 23, 0.45); }
.grid-pop-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 5.4rem;
  height: 5.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e7f8d4;
}
.grid-pop img {
  display: block;
  width: 3.15rem;
  height: auto;
}
.confetti {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: 0.15rem;
  width: 0.38rem;
  height: 0.62rem;
  border-radius: 1px;
  background: #58cc02;
  opacity: 0;
  animation: confetti-fall 1.15s ease-in forwards;
}
.confetti i:nth-child(3n) { background: var(--orange); }
.confetti i:nth-child(3n + 2) { background: #ffcc01; width: 0.5rem; height: 0.3rem; }
.confetti i:nth-child(1) { left: 8%; --x: -0.4rem; --r: -50deg; animation-delay: 0.02s; }
.confetti i:nth-child(2) { left: 18%; --x: 0.5rem; --r: 70deg; animation-delay: 0.1s; }
.confetti i:nth-child(3) { left: 28%; --x: -0.2rem; --r: 30deg; }
.confetti i:nth-child(4) { left: 38%; --x: 0.35rem; --r: -80deg; animation-delay: 0.16s; }
.confetti i:nth-child(5) { left: 48%; --x: -0.55rem; --r: 45deg; animation-delay: 0.05s; }
.confetti i:nth-child(6) { left: 56%; --x: 0.2rem; --r: -30deg; animation-delay: 0.2s; }
.confetti i:nth-child(7) { left: 64%; --x: 0.6rem; --r: 90deg; }
.confetti i:nth-child(8) { left: 72%; --x: -0.3rem; --r: -60deg; animation-delay: 0.12s; }
.confetti i:nth-child(9) { left: 80%; --x: 0.25rem; --r: 20deg; animation-delay: 0.08s; }
.confetti i:nth-child(10) { left: 14%; --x: 0.8rem; --r: 110deg; animation-delay: 0.22s; }
.confetti i:nth-child(11) { left: 86%; --x: -0.7rem; --r: -100deg; animation-delay: 0.04s; }
.confetti i:nth-child(12) { left: 44%; --x: 0.15rem; --r: 160deg; animation-delay: 0.18s; }
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(-0.4rem) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), 6.5rem) rotate(var(--r)); }
}
.grid-pop h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.25;
}
.grid-pop-next {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: #f6f5f2;
  text-align: left;
}
.grid-pop-bolt {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
  border-radius: 0.45rem;
  background: #58cc02;
  color: #fff;
}
.grid-pop-bolt svg { width: 1rem; height: 1rem; fill: currentColor; }
.grid-pop-next strong { display: block; font-size: 0.98rem; font-weight: 750; }
.grid-pop-next span span {
  display: block;
  margin-top: 0.1rem;
  color: #6a645c;
  font-size: 0.9rem;
  font-weight: 450;
}
.grid-pop-go {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.15rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.85rem;
  background: #f8632c;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 #d94814;
}
.grid-pop-go:hover {
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d94814;
}
.grid-pop-stay {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  background: transparent;
  color: #6a645c;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}
.grid-pop-stay:hover { color: #1c1917; }
html[data-theme="dark"] .grid-pop { background: #262220; color: #f3f0eb; }
html[data-theme="dark"] .grid-pop-mark { background: #1d3314; }
html[data-theme="dark"] .grid-pop-next { background: #1c1917; }
html[data-theme="dark"] .grid-pop-next span span { color: #a39e97; }
html[data-theme="dark"] .grid-pop-stay { color: #a39e97; }
html[data-theme="dark"] .grid-pop-stay:hover { color: #f3f0eb; }
.path-node.is-wait {
  border-color: #e5e5e5;
  background: #f3f0eb;
  color: #c4bfb8;
}
a.path-node:hover { transform: translateY(2px); }
.path-kicker,
.path-caption {
  position: relative;
  z-index: 1;
  max-width: 9rem;
  margin: 0.45rem 0 0;
  background: #faf8f4;
  text-align: center;
  line-height: 1.25;
}
.path-kicker {
  color: #6a645c;
  font-size: 0.72rem;
  font-weight: 700;
}
.path-caption {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
}
.path-step:has(.is-wait) .path-caption { color: #6a645c; font-weight: 650; }
.path-head {
  margin-top: 0.35rem;
  text-align: center;
}
.path-head .charge-title {
  justify-content: center;
  font-size: 2.25rem;
  letter-spacing: 0;
}
.path-head p {
  margin: 0.35rem 0 0;
  color: #1c1917;
  font-size: 1.2rem;
  font-weight: 450;
  letter-spacing: 0;
}
body:has(.path-head) .map-back { margin-top: 1.25rem; }
.line-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0 0.2rem;
}
.line-switch-btn {
  padding: 0.2rem 1.15rem;
  border: 0;
  background: transparent;
  color: #6a645c;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
}
.line-switch-btn + .line-switch-btn { border-left: 1px solid #e5e5e5; }
.line-switch-btn.is-on { color: #1c1917; }
.path-line { display: none; }
.path-line.is-on { display: block; }
.path-prereq {
  margin: 0.85rem 0 0;
  color: #3f3b38;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
}
.path-group {
  margin: 1.15rem 0 0.15rem;
  color: #6a645c;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
}
html[data-theme="dark"] .path-node { background: #262220; }
html[data-theme="dark"] .path-node.is-open { background: var(--orange); color: #fff; }
html[data-theme="dark"] .module-path.is-lit .path-node,
html[data-theme="dark"] .module-path.is-lit .path-node.is-open,
html[data-theme="dark"] .module-path.is-lit .path-node.is-wait {
  border-color: #58a700;
  background: #58cc02;
  color: #fff;
}
html[data-theme="dark"] .module-path.is-lit .path-step[data-wire]::before { background: #58cc02; }
html[data-theme="dark"] .module-path.is-lit .path-caption { color: #f3f0eb; }
html[data-theme="dark"] .path-node.is-wait {
  background: #1c1917;
  border-color: rgba(243, 240, 235, 0.16);
}
html[data-theme="dark"] .path-caption { color: #f3f0eb; }
html[data-theme="dark"] .path-step:has(.is-wait) .path-caption,
html[data-theme="dark"] .path-kicker,
html[data-theme="dark"] .path-group,
html[data-theme="dark"] .path-banner p,
html[data-theme="dark"] .path-head p { color: #a39e97; }
html[data-theme="dark"] .module-path.is-lit .path-step:has(.is-wait) .path-caption { color: #f3f0eb; }
html[data-theme="dark"] .path-banner {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.12);
  color: #f3f0eb;
}
html[data-theme="dark"] .path-kicker,
html[data-theme="dark"] .path-caption { background: #1c1917; }
html[data-theme="dark"] .path-step[data-wire]::before {
  background: rgba(243, 240, 235, 0.22);
}


body:has(.home-board) { background: #faf8f4; }
body:has(.home-board) .wrap {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}
body:has(.home-board) .wrap { padding-top: 1.15rem; }
.search input { font-size: 0.86rem; }
.home-stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.home-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.56rem 0.92rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: #3c3834;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}
a.home-stat:hover { background: #f3f0eb; }
.home-stat svg { width: 0.96rem; height: 0.96rem; display: block; }
body:has(.home-board) .welcome-row {
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  transform: translateY(-4rem);
}
body:has(.home-board) .welcome-sockit {
  width: 8rem;
  filter:
    drop-shadow(0 0.4rem 0.28rem rgba(28, 25, 23, 0.14))
    drop-shadow(0 0.65rem 1.35rem rgba(248, 99, 44, 0.34));
}
body:has(.home-board) .greeting-said {
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 44rem;
  padding: 1.45rem 1.9rem 1.5rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1.6rem;
  box-shadow: none;
}
body:has(.home-board) .greeting-said::before {
  content: "";
  background: #fff;
  border-color: #e5e5e5;
}
body:has(.home-board) .greeting-said .welcome,
body:has(.home-board) .charge-title,
body:has(.home-board) .pickup-row h3 {
  margin: 0;
  letter-spacing: 0;
}
body:has(.home-board) .greeting-said .welcome {
  font-size: clamp(2.45rem, 3.8vw, 3.15rem);
  font-weight: 650;
  line-height: 1.12;
}
.home-hello {
  margin: 0;
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 700;
}
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc((100svh - 7.5rem) / var(--page-zoom));
  padding: 2.4rem 0 1rem;
}
.home-power {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: #1c1917;
  font-size: 1.45rem;
  font-weight: 750;
  text-decoration: none;
  transform: translateX(-50%);
}
.home-power .watt-ico { width: 2.75rem; height: 2.75rem; }
.home-power::after {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(45deg);
  animation: power-scroll 1.4s ease-in-out infinite;
}
@keyframes power-scroll {
  50% { transform: translateY(0.4rem) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .home-power::after { animation: none; }
}
.home-board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7.5rem;
  margin-top: 1rem;
  padding-bottom: 4rem;
}
.home-section { min-width: 0; }
.home-section > .charge-title { margin-bottom: 1.25rem; }
.home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 1.85rem 1.8rem 1.9rem;
  border: 1px solid #e5e5e5;
  border-radius: 1.85rem;
  background: #fff;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}
.home-card .charge-title { font-size: 1.7rem; letter-spacing: 0; }
body:has(.home-board) .home-section > .charge-title { margin: 0 0 1.25rem; }
.home-card p {
  margin: 0;
  color: #5c564f;
  font-size: 1.15rem;
  line-height: 1.45;
}
.home-card .btn {
  margin-top: 1.2rem;
  padding: 0.95rem 1.6rem;
  background: #e8622c;
  box-shadow: 0 3px 0 #c45122;
  font-size: 1.08rem;
}
.home-card .btn:hover {
  background: #e8622c;
  transform: translateY(1px);
  filter: none;
  box-shadow: 0 2px 0 #c45122;
}
.home-pickup {
  --plug: #f8632c;
  --plug-track: #f3e1d6;
}
.home-pickup .home-continue {
  margin: 0.2rem 0 0;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: #eceae6;
  box-shadow: none;
  color: #1c1917;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}
.plug-ico { fill: var(--plug); stroke: none; }
.home-section,
.home-split,
.home-due { position: relative; z-index: 1; }
.pickup-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.15rem;
  align-items: stretch;
}
.pickup-stage.is-solo { grid-template-columns: minmax(0, 28rem); }
.home-pickup,
.home-due {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pickup-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.7rem;
  min-height: 18rem;
  padding: 1.8rem 1.6rem 1.6rem;
  border: 2px solid var(--plug);
  border-radius: 1.5rem;
  background: #fff;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.pickup-feature h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}
.pickup-ring {
  --pct: 0;
  display: grid;
  place-items: center;
  width: 8.6rem;
  height: 8.6rem;
  margin: 0.35rem 0;
  border-radius: 50%;
  background: conic-gradient(var(--plug) calc(var(--pct) * 1%), var(--plug-track) 0);
}
.pickup-ring span {
  display: grid;
  place-items: center;
  width: 6.55rem;
  height: 6.55rem;
  border-radius: 50%;
  background: #fff;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: 0;
}
.pickup-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.home-pickup .pickup-top { align-items: flex-start; }
.home-pickup .pickup-top .hub-title-row {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.home-track {
  margin: 0;
  color: #6a645c;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.pickup-feature .home-track { letter-spacing: 0.02em; }
.home-pickup .pickup-row {
  flex: 1;
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid #e5e5e5;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: none;
}
.home-pickup .pickup-row h3 { font-size: 1.05rem; letter-spacing: 0; }
.home-pickup .pickup-percent { color: var(--ink); font-size: 0.9rem; font-weight: 750; }
.home-pickup .pickup-bar { height: 0.4rem; background: var(--plug-track); }
.home-pickup .pickup-bar span { background: var(--plug); }
.home-pickup .pickup-row .home-continue {
  align-self: flex-start;
  margin-top: 0.85rem;
  background: #eceae6;
  color: #1c1917;
  border: 1.5px solid #eceae6;
}
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-content: center;
  align-items: stretch;
}
body:has(.home-board) .home-pickup > .charge-title,
.home-charge-card .charge-title,
.home-quest-panel .charge-title { font-size: 2rem; }
.home-charge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.85rem;
  overflow: hidden;
  min-height: 18rem;
  padding: 2rem 2rem 1.8rem;
  border-radius: 1.6rem;
  background: #f8632c;
  color: #fff;
}
.home-charge-card .charge-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  letter-spacing: 0;
}
.home-charge-card .watt-ico { fill: #fff; color: #fff; }
.home-charge-card p {
  position: relative;
  z-index: 1;
  max-width: 16rem;
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.4;
}
.home-charge-card .btn {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: #1c1917;
  font-size: 0.95rem;
}
.home-charge-card .btn:hover {
  background: #fff;
  transform: translateY(1px);
  filter: none;
  box-shadow: none;
}
.home-quest-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  align-self: stretch;
  min-height: 18rem;
  padding: 2rem 1.6rem 1.8rem;
  border: 1px solid #e5e5e5;
  border-radius: 1.6rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.quest-copy,
.quest-progress { display: flex; flex-direction: column; }
.quest-progress { gap: 0.45rem; }
.home-quest-panel .charge-title { margin: 0 0 0.35rem; font-size: 2rem; letter-spacing: 0; }
.home-quest-panel p { margin: 0; color: #5c564f; font-size: 1.05rem; }
.home-quest {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0;
}
.home-quest .quest-bar { height: 0.6rem; margin: 0; }
.home-quest .quest-chip {
  padding: 0.28rem 0.6rem;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 0 #e5e5e5;
  color: #f8632c;
  font-weight: 800;
}
.home-quest-count {
  margin-top: 0.45rem;
  color: #6a645c;
  font-size: 0.92rem;
  font-weight: 700;
}
.home-due {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}
.home-due-sockit { width: 4.4rem; height: auto; }
.home-due-kicker {
  margin: 0;
  color: #8a847c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-due h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
}
.home-due h2 a { color: inherit; text-decoration: none; }
.home-due p { margin: 0; color: #6a645c; font-size: 1.05rem; }
@media (max-width: 860px) {
  .pickup-stage { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; padding: 2rem 0 1rem; }
  body:has(.home-board) .welcome-row { transform: none; }
  .home-power { position: static; margin-top: 1.5rem; transform: none; }
  .home-stats { display: none; }
}
@media (max-width: 640px) {
  .home-split { grid-template-columns: 1fr; }
}
html[data-theme="dark"] body:has(.home-board) { background: #1c1917; }
html[data-theme="dark"] a.home-stat:hover { background: #322e2b; }
html[data-theme="dark"] .home-stat,
html[data-theme="dark"] .home-card,
html[data-theme="dark"] .home-pickup .pickup-row,
html[data-theme="dark"] .home-quest-panel,
html[data-theme="dark"] .home-quest .quest-chip {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.16);
  box-shadow: 0 2px 0 rgba(243, 240, 235, 0.16);
  color: #f3f0eb;
}
html[data-theme="dark"] body:has(.home-board) .greeting-said {
  background: #262220;
  border: 1px solid rgba(243, 240, 235, 0.16);
  box-shadow: none;
}
html[data-theme="dark"] body:has(.home-board) .greeting-said::before {
  background: #262220;
  border-color: rgba(243, 240, 235, 0.16);
}
html[data-theme="dark"] .home-card,
html[data-theme="dark"] .home-stat { box-shadow: none; }
html[data-theme="dark"] .home-pickup .pickup-row { box-shadow: none; }
html[data-theme="dark"] .pickup-feature {
  border-color: var(--plug);
  background: #322820;
}
html[data-theme="dark"] .pickup-ring { background: conic-gradient(var(--plug) calc(var(--pct) * 1%), #4a3a32 0); }
html[data-theme="dark"] .pickup-ring span { background: #322820; color: #f3f0eb; }
html[data-theme="dark"] .home-power,
html[data-theme="dark"] .home-due-kicker,
html[data-theme="dark"] .home-quest-panel p,
html[data-theme="dark"] .home-due p,
html[data-theme="dark"] .home-card p { color: #d9d3cc; }
