:root {
  color-scheme: dark;
  --bg: #101210;
  --ink: #f4f0e8;
  --muted: #a9ada4;
  --line: rgba(244, 240, 232, 0.16);
  --green: #a7d36f;
  --blue: #78b7ff;
  --rose: #ff8b9f;
  --amber: #f3bd54;
  --panel: rgba(25, 28, 24, 0.74);
  --panel-strong: rgba(36, 40, 33, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(167, 211, 111, 0.16), transparent 26rem),
    radial-gradient(circle at 78% 18%, rgba(120, 183, 255, 0.13), transparent 24rem),
    linear-gradient(135deg, #101210 0%, #151711 42%, #11151a 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.passport-locked {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(120, 183, 255, 0.12), transparent 31rem),
    radial-gradient(circle at 84% 24%, rgba(244, 240, 232, 0.08), transparent 20rem);
  opacity: 1;
}

body::after {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 16, 0.96) 0%, rgba(16, 18, 16, 0.78) 36%, rgba(16, 18, 16, 0.36) 70%, rgba(16, 18, 16, 0.58) 100%),
    linear-gradient(180deg, rgba(16, 18, 16, 0.1) 0%, rgba(16, 18, 16, 0.16) 52%, rgba(16, 18, 16, 0.88) 100%);
}

button,
a {
  font: inherit;
}

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

.passport-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.94), rgba(5, 8, 6, 0.74)),
    radial-gradient(circle at 70% 42%, rgba(120, 183, 255, 0.14), transparent 34rem);
  backdrop-filter: blur(14px);
  transition:
    opacity 320ms ease,
    visibility 320ms ease;
}

.passport-gate.unlocked {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.passport-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(167, 211, 111, 0.26);
  background:
    linear-gradient(135deg, rgba(167, 211, 111, 0.12), transparent 38%),
    rgba(13, 17, 13, 0.9);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 42px rgba(167, 211, 111, 0.06);
  padding: 30px;
}

.passport-kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.passport-panel h1 {
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 58px);
}

.passport-form {
  display: grid;
  gap: 10px;
}

.passport-form label {
  color: #c8cec0;
  font-size: 12px;
  font-weight: 800;
}

.passport-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.passport-input-row input {
  min-height: 48px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  background: rgba(244, 240, 232, 0.05);
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
}

.passport-input-row input:focus {
  border-color: rgba(167, 211, 111, 0.74);
  outline: 0;
}

.passport-input-row button {
  min-height: 48px;
  border: 1px solid rgba(167, 211, 111, 0.68);
  background: rgba(167, 211, 111, 0.16);
  color: #eaffbf;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.passport-error {
  min-height: 22px;
  margin: 0;
  color: #ffb8c4;
  font-size: 13px;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.earth-cinema-orb {
  position: fixed;
  z-index: 1;
  right: max(-22vw, -340px);
  top: clamp(38px, 6vh, 78px);
  width: min(108vw, 1540px);
  aspect-ratio: 1672 / 941;
  pointer-events: none;
  opacity: 0.98;
  background: url("./assets/earth-hero.png") 50% 50% / cover no-repeat;
  filter: saturate(1.16) contrast(1.08) brightness(1.04);
  transform-origin: 59% 50%;
  animation: cinemaEarthTurn 36s ease-in-out infinite alternate;
  transition:
    opacity 520ms ease,
    filter 520ms ease;
  -webkit-mask-image: radial-gradient(ellipse at 60% 51%, #000 0 58%, rgba(0, 0, 0, 0.86) 68%, transparent 88%);
  mask-image: radial-gradient(ellipse at 60% 51%, #000 0 58%, rgba(0, 0, 0, 0.86) 68%, transparent 88%);
}

body.archive-earth-dimmed .earth-cinema-orb {
  opacity: 0.86;
  filter: saturate(1.08) contrast(1.05) brightness(0.86);
}

.earth-cinema-orb::before,
.earth-cinema-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.earth-cinema-orb::before {
  background:
    linear-gradient(90deg, rgba(16, 18, 16, 0.72) 0%, rgba(16, 18, 16, 0.22) 32%, transparent 56%),
    radial-gradient(circle at 36% 54%, transparent 0 34%, rgba(16, 18, 16, 0.12) 58%, rgba(16, 18, 16, 0.52) 88%);
  mix-blend-mode: multiply;
}

body.archive-earth-dimmed .earth-cinema-orb::before {
  background:
    linear-gradient(90deg, rgba(16, 18, 16, 0.76) 0%, rgba(16, 18, 16, 0.28) 34%, rgba(16, 18, 16, 0.06) 58%),
    radial-gradient(circle at 36% 54%, transparent 0 31%, rgba(16, 18, 16, 0.18) 56%, rgba(16, 18, 16, 0.62) 88%);
}

.earth-cinema-orb::after {
  background:
    radial-gradient(circle at 35% 52%, rgba(117, 192, 255, 0.24), transparent 31%),
    linear-gradient(90deg, transparent 0 64%, rgba(5, 7, 10, 0.44) 100%);
}

body.archive-earth-dimmed .earth-cinema-orb::after {
  background:
    radial-gradient(circle at 35% 52%, rgba(117, 192, 255, 0.19), transparent 31%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.12) 0%, transparent 45%, rgba(5, 7, 10, 0.5) 100%);
}

@keyframes cinemaEarthTurn {
  0% {
    background-position: 44% 50%;
    transform: translate3d(0, 0, 0) rotate(-1.8deg) scale(1);
  }

  50% {
    background-position: 51% 49%;
    transform: translate3d(-34px, 8px, 0) rotate(0.7deg) scale(1.025);
  }

  100% {
    background-position: 58% 51%;
    transform: translate3d(-72px, -4px, 0) rotate(2.8deg) scale(1.05);
  }
}

@media (max-width: 900px) {
  .earth-cinema-orb {
    right: -66vw;
    top: 88px;
    width: 178vw;
    opacity: 0.62;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
  background: rgba(16, 18, 16, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: #dfe8c9;
  color: #11140f;
  font-weight: 900;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

main {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 54px 0 36px;
}

.kicker,
.card-label,
.modal-meta {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
}

.name-screen {
  position: relative;
  display: block;
  width: min(100%, 7.55em);
  height: 1.12em;
  margin: 0.06em 0 0.08em;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 12, 7, 0.2), rgba(2, 10, 7, 0.68) 22%, rgba(1, 9, 6, 0.72) 78%, rgba(2, 12, 7, 0.2)),
    radial-gradient(ellipse at 48% 52%, rgba(18, 255, 87, 0.08), transparent 66%);
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.58),
    inset 0 0 26px rgba(0, 255, 86, 0.06);
  isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.name-rain-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.name-screen span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.intro {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.ghost-action,
.read-button,
.filter,
.lane,
.orbit-node,
.country-dot,
.close-button {
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.primary-action,
.ghost-action,
.read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: #11140f;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.ghost-action {
  background: transparent;
  color: var(--ink);
}

.primary-action:hover,
.ghost-action:hover,
.read-button:hover,
.filter:hover,
.lane:hover,
.orbit-node:hover,
.country-dot:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 240, 232, 0.4);
}

.orbit-panel {
  position: relative;
  aspect-ratio: 1;
  min-height: 390px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.orbit-panel::before,
.orbit-panel::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(244, 240, 232, 0.15);
  border-radius: 50%;
}

.orbit-panel::after {
  inset: 27%;
  border-color: rgba(120, 183, 255, 0.22);
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  translate: -50% -50%;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 50%;
  background: rgba(16, 18, 16, 0.82);
  text-align: center;
}

.orbit-core span {
  display: block;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.orbit-core small {
  width: 82px;
  color: var(--muted);
  line-height: 1.35;
}

.orbit-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  translate: -50% -50%;
}

.orbit-node.active,
.filter.active {
  border-color: rgba(167, 211, 111, 0.8);
  background: rgba(167, 211, 111, 0.18);
  color: #eaffbf;
}

.city-orbit,
.essay-orbit {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: 76px;
  height: 76px;
  translate: -50% -50%;
}

.city-orbit > .orbit-node,
.essay-orbit > .orbit-node {
  left: 50%;
  top: 50%;
}

.city-node,
.essay-node {
  z-index: 3;
}

.essay-orbit {
  z-index: 5;
}

.essay-paper-points {
  position: absolute;
  inset: -132px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.essay-orbit:hover .essay-paper-points,
.essay-orbit:focus-within .essay-paper-points {
  opacity: 1;
  pointer-events: auto;
}

.essay-paper-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(167, 211, 111, 0.68);
  border-radius: 50%;
  background: rgba(18, 21, 18, 0.94);
  color: #eaffbf;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transform: translate(calc(-50% + var(--px, 88px)), calc(-50% + var(--py, 0px))) scale(0.78);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.essay-paper-dot:hover,
.essay-paper-dot:focus-visible {
  border-color: rgba(167, 211, 111, 0.95);
  background: rgba(167, 211, 111, 0.2);
  color: #f5ffd8;
  outline: 0;
  transform: translate(calc(-50% + var(--px, 88px)), calc(-50% + var(--py, 0px))) scale(1);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(167, 211, 111, 0.24);
}

.city-education-points {
  position: absolute;
  inset: -74px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.city-orbit:hover .city-education-points,
.city-orbit:focus-within .city-education-points {
  opacity: 1;
  pointer-events: auto;
}

.country-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 21, 18, 0.94);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  isolation: isolate;
  overflow: visible;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.62);
}

.country-dot::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: inherit;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: -1;
}

.country-label {
  position: relative;
  z-index: 2;
  transition: transform 180ms ease;
}

.country-map {
  position: absolute;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.country-map path,
.country-map circle {
  fill: currentColor;
}

.country-dot:hover {
  background: rgba(18, 21, 18, 0.28);
  border-color: transparent;
  box-shadow: none;
}

.country-dot:hover::before {
  opacity: 0;
  transform: scale(0.88);
}

.country-dot:hover .country-label {
  transform: translateY(1px);
}

.country-dot:hover .country-map {
  opacity: 0.9;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
  transform: scale(1);
}

.country-dot.japan {
  left: 22px;
  top: 136px;
  border-color: rgba(255, 139, 159, 0.62);
  color: #ffd8df;
}

.country-dot.japan .country-map {
  width: 86px;
  height: 116px;
  left: -3px;
  top: -20px;
  transform: rotate(19deg) scale(0.72);
}

.country-dot.japan:hover .country-map {
  transform: rotate(19deg) scale(1);
}

.country-dot.singapore {
  left: 95px;
  right: auto;
  top: 160px;
  border-color: rgba(120, 183, 255, 0.62);
  color: #d7ebff;
}

.country-dot.singapore .country-map {
  width: 126px;
  height: 72px;
}

.country-dot.singapore:hover .country-map {
  transform: scale(1.05);
}

.country-dot.china {
  left: 1px;
  top: 74px;
  bottom: auto;
  border-color: rgba(243, 189, 84, 0.68);
  color: #ffe3a8;
}

.country-dot.china .country-map {
  width: 116px;
  height: 92px;
}

.country-dot.china:hover .country-map {
  transform: scale(1.04);
}

.archive,
.route,
.about {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.archive-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.04);
  color: var(--muted);
}

.archive-add-button {
  min-height: 38px;
  border: 1px solid rgba(167, 211, 111, 0.56);
  background: rgba(167, 211, 111, 0.14);
  color: #eaffbf;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.featured-card {
  position: sticky;
  top: 96px;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(167, 211, 111, 0.18), transparent 48%),
    var(--panel);
  backdrop-filter: blur(18px);
}

.featured-card h3 {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.12;
}

.featured-card p {
  color: var(--muted);
  line-height: 1.75;
}

.featured-summary-clamp,
.article-summary-clamp,
#paperPageSummary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.featured-summary-clamp {
  -webkit-line-clamp: 8;
}

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

.article-grid[hidden] {
  display: none;
}

.country-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.country-task-grid[hidden] {
  display: none;
}

.country-task-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    rgba(22, 25, 23, 0.76);
  padding: 20px;
  overflow: hidden;
}

.country-task-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid color-mix(in srgb, var(--accent) 62%, transparent);
  opacity: 0.72;
  pointer-events: none;
}

.country-task-card-head {
  position: relative;
}

.country-task-card h3 {
  margin: 8px 0 6px;
  font-size: 28px;
  line-height: 1.1;
}

.country-task-card-head > span {
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.country-task-card ol {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding-left: 18px;
}

.country-task-card li {
  color: var(--muted);
  line-height: 1.45;
}

.country-task-card time {
  display: block;
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  font-size: 11px;
  font-weight: 900;
}

.country-task-card li span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.country-task-empty {
  position: relative;
  margin: 18px 0;
  color: var(--muted);
}

.country-task-card button {
  position: relative;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  background: rgba(244, 240, 232, 0.04);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.article-card {
  position: relative;
  min-height: 244px;
  padding: 20px 20px 72px;
  border: 1px solid var(--line);
  background: rgba(22, 25, 23, 0.72);
  overflow: hidden;
  transform-style: preserve-3d;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), transparent 52%);
  opacity: 0.16;
  pointer-events: none;
}

.article-card.hidden {
  display: none;
}

.article-card h3 {
  position: relative;
  margin: 18px 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.article-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.65;
}

.article-summary-clamp {
  -webkit-line-clamp: 3;
}

.article-file-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(244, 240, 232, 0.18);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.article-file-link:hover {
  border-color: var(--green);
  color: var(--green);
}

.article-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 240, 232, 0.58);
  font-size: 12px;
}

.tag-row,
.modal-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.article-card .tag-row {
  flex-wrap: nowrap;
  max-width: calc(100% - 118px);
  overflow: hidden;
  white-space: nowrap;
}

.article-card .tag-row span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row span,
.modal-tags span {
  border: 1px solid rgba(244, 240, 232, 0.14);
  padding: 5px 8px;
  color: #d7ddcf;
  font-size: 12px;
}

.open-card {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  background: rgba(244, 240, 232, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.article-card-actions {
  position: absolute;
  right: 60px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: calc(100% - 80px);
}

.article-card-actions button {
  min-height: 38px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(244, 240, 232, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.route-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lane {
  display: grid;
  min-height: 188px;
  align-content: space-between;
  padding: 20px;
  text-align: left;
  background: rgba(244, 240, 232, 0.05);
  color: var(--ink);
}

.lane span {
  color: var(--amber);
  font-weight: 900;
}

.lane strong {
  font-size: 25px;
  line-height: 1.18;
}

.lane small {
  color: var(--muted);
  line-height: 1.5;
}

.about {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.modal {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 32px));
  border: 1px solid rgba(244, 240, 232, 0.24);
  background: rgba(18, 21, 18, 0.96);
  color: var(--ink);
  padding: 28px;
  overflow-y: auto;
}

.modal.education-modal {
  width: min(1280px, calc(100% - 32px));
  max-height: min(860px, calc(100vh - 24px));
  padding: 34px;
}

.article-editor-modal {
  width: min(720px, calc(100% - 32px));
}

.modal::backdrop {
  background: rgba(7, 8, 7, 0.72);
  backdrop-filter: blur(8px);
}

.modal h2 {
  margin-bottom: 18px;
}

.modal p,
.modal-body {
  color: var(--muted);
  line-height: 1.8;
}

.paper-page {
  width: min(1240px, calc(100% - 34px));
  height: min(820px, calc(100vh - 34px));
  border: 1px solid rgba(244, 240, 232, 0.24);
  background: rgba(14, 17, 15, 0.98);
  color: var(--ink);
  padding: 0;
  overflow: visible;
}

.paper-page::backdrop,
.file-preview-modal::backdrop,
.comment-modal::backdrop {
  background: rgba(7, 8, 7, 0.76);
  backdrop-filter: blur(10px);
}

.paper-page-close {
  z-index: 12;
}

.paper-info-panel,
.paper-timeline-panel {
  min-width: 0;
}

.paper-page[open] {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.35fr);
}

.paper-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(244, 240, 232, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 139, 159, 0.09), transparent 48%),
    rgba(244, 240, 232, 0.03);
  padding: 42px 34px;
}

.paper-title-box {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 190px;
  max-height: 190px;
  border: 0;
  background: transparent;
  outline: 0;
  overflow: hidden;
}

.paper-title-box h2 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.04;
}

.paper-info-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

#paperPageSummary {
  max-height: 7.8em;
  cursor: pointer;
  -webkit-line-clamp: 4;
}

#paperPageSummary:hover {
  color: var(--ink);
}

#paperPageSummary:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 4px;
}

.paper-info-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.paper-info-item {
  border: 1px solid rgba(244, 240, 232, 0.12);
  padding: 10px 12px;
  background: rgba(244, 240, 232, 0.035);
}

.paper-info-item span {
  display: block;
  color: rgba(244, 240, 232, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.paper-info-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.paper-github-link {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(167, 211, 111, 0.42);
  padding: 8px 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.paper-github-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.paper-github-form input {
  min-width: 0;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(244, 240, 232, 0.05);
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

.paper-github-form button {
  padding-inline: 12px;
}

.paper-timeline-panel {
  overflow-y: auto;
  padding: 42px 42px 42px 54px;
}

.paper-timeline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}

.paper-timeline-head h3 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
}

.paper-upload-form {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  padding: 4px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.paper-upload-form.is-dragging {
  border-color: rgba(167, 211, 111, 0.62);
  background: rgba(167, 211, 111, 0.08);
}

.paper-upload-form input[type="file"] {
  min-width: 0;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(244, 240, 232, 0.05);
  color: var(--muted);
  font: inherit;
  padding: 9px;
}

.paper-upload-form input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(244, 240, 232, 0.22);
  background: rgba(244, 240, 232, 0.07);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.paper-folder-button {
  min-height: 43px;
  border: 1px solid rgba(167, 211, 111, 0.34);
  background: rgba(167, 211, 111, 0.08);
  color: #eaffbf;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.paper-timeline {
  position: relative;
  display: grid;
  gap: 30px;
  padding: 8px 0 28px;
}

.paper-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  width: 1px;
  background: linear-gradient(180deg, var(--green), rgba(167, 211, 111, 0.08));
}

.paper-timeline-empty {
  margin-left: 54px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  padding: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.paper-timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 20px;
  min-height: 72px;
}

.paper-timeline-dot {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(167, 211, 111, 0.82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 32%, rgba(244, 240, 232, 0.88), rgba(167, 211, 111, 0.82) 42%, rgba(62, 93, 34, 0.78));
  box-shadow: 0 0 0 8px rgba(167, 211, 111, 0.07);
  cursor: pointer;
}

.paper-timeline-event.has-many-files .paper-timeline-dot {
  width: 42px;
  height: 42px;
  transform: translateX(-4px);
}

.paper-node-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  align-self: center;
  color: var(--muted);
}

.paper-node-summary-main {
  min-width: 0;
}

.paper-node-summary time {
  display: block;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.paper-node-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

.paper-node-file-summary {
  display: grid;
  gap: 4px;
  max-width: min(520px, 100%);
  margin-top: 4px;
}

.paper-package-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.paper-package-name strong {
  overflow: hidden;
  margin-top: 0;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-package-name span {
  color: rgba(244, 240, 232, 0.56);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.paper-node-quick-actions {
  justify-self: end;
  padding-top: 2px;
}

.paper-node-quick-actions button {
  border: 1px solid rgba(255, 139, 159, 0.36);
  background: rgba(255, 139, 159, 0.08);
  color: #ffb8c4;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.paper-comment-preview {
  display: -webkit-box;
  max-width: min(520px, 100%);
  max-height: 4.5em;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(244, 240, 232, 0.6);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.paper-comment-preview p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.paper-comment-preview p + p {
  margin-top: 3px;
}

.paper-node-popover {
  position: absolute;
  top: -6px;
  left: 58px;
  z-index: 8;
  width: min(420px, 54vw);
  border: 1px solid rgba(244, 240, 232, 0.18);
  background: rgba(20, 24, 20, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  transform: translateX(-8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.paper-timeline-event.is-open .paper-node-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.paper-node-popover time {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.paper-package-list,
.paper-node-files {
  display: grid;
  gap: 8px;
}

.paper-package-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  background: rgba(244, 240, 232, 0.035);
  padding: 10px;
}

.paper-package-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.paper-package-title {
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-package-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.paper-package-head button {
  border: 1px solid rgba(255, 139, 159, 0.34);
  background: rgba(255, 139, 159, 0.08);
  color: #ffb8c4;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
  white-space: nowrap;
}

.paper-node-file {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.paper-node-file button {
  min-width: 0;
  border: 1px solid rgba(244, 240, 232, 0.15);
  background: rgba(244, 240, 232, 0.05);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  padding: 8px 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-node-file [data-paper-file-delete] {
  color: rgba(255, 139, 159, 0.96);
  text-align: center;
}

.paper-hover-preview {
  position: fixed;
  z-index: 9999;
  display: none;
  width: min(460px, calc(100vw - 40px));
  min-height: 260px;
  height: 360px;
  border: 1px solid rgba(244, 240, 232, 0.2);
  background: rgba(12, 15, 13, 0.98);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  pointer-events: none;
}

.paper-hover-preview.is-visible {
  display: grid;
}

.paper-hover-preview[hidden] {
  display: none !important;
}

.paper-hover-preview img,
.paper-hover-preview iframe,
.paper-hover-preview video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  object-fit: contain;
}

.paper-hover-preview iframe {
  background: rgba(244, 240, 232, 0.06);
}

.paper-hover-preview-audio {
  height: 96px;
  min-height: 92px;
  padding: 16px;
  align-items: center;
}

.paper-hover-preview-audio audio {
  width: 100%;
}

.paper-node-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.paper-node-actions button {
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(244, 240, 232, 0.05);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.paper-node-actions [data-paper-event-delete] {
  border-color: rgba(255, 139, 159, 0.36);
  color: #ffb8c4;
}

.file-preview-modal {
  width: min(1040px, calc(100% - 34px));
  max-height: min(860px, calc(100vh - 34px));
}

.file-preview-modal iframe {
  width: 100%;
  height: min(620px, calc(100vh - 230px));
  margin: 14px 0;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(244, 240, 232, 0.06);
}

.paper-comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.paper-comment-empty,
.paper-comment-item {
  border: 1px solid rgba(244, 240, 232, 0.12);
  background: rgba(244, 240, 232, 0.035);
  padding: 14px;
}

.paper-comment-empty {
  color: var(--muted);
}

.paper-comment-item time {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.paper-comment-item p {
  margin: 8px 0 12px;
  color: var(--ink);
  line-height: 1.65;
}

.paper-comment-actions {
  display: flex;
  gap: 8px;
}

.paper-comment-actions button {
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(244, 240, 232, 0.05);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.education-list {
  display: grid;
  gap: 12px;
}

.education-entry {
  border-left: 2px solid var(--entry-color, var(--green));
  padding: 2px 0 2px 14px;
}

.education-entry strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.education-entry span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.country-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 26px;
  margin-top: 28px;
  border-top: 1px solid rgba(244, 240, 232, 0.14);
  padding-top: 26px;
}

.diary-panel,
.todo-panel {
  min-width: 0;
}

.diary-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.diary-eyebrow {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.diary-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.article-editor-form {
  display: grid;
  gap: 14px;
}

.article-editor-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 12px;
}

.article-editor-form label {
  display: grid;
  gap: 7px;
}

.article-editor-form label span {
  color: #c8cec0;
  font-size: 12px;
  font-weight: 800;
}

.article-editor-form input,
.article-editor-form select,
.article-editor-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 232, 0.18);
  background: rgba(244, 240, 232, 0.05);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.article-file-field {
  border: 1px solid rgba(244, 240, 232, 0.12);
  background: rgba(244, 240, 232, 0.035);
  padding: 12px;
}

.article-file-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.article-file-control input[type="file"] {
  min-width: 0;
}

.article-file-control input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(244, 240, 232, 0.24);
  background: rgba(244, 240, 232, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.article-file-field small {
  color: var(--muted);
  font-size: 12px;
}

.article-editor-form textarea {
  min-height: 132px;
  resize: vertical;
}

.article-editor-form input:focus,
.article-editor-form select:focus,
.article-editor-form textarea:focus {
  border-color: rgba(167, 211, 111, 0.72);
  outline: 0;
}

.article-editor-actions {
  display: flex;
  gap: 10px;
}

.diary-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.diary-tools > span,
.diary-tool-button {
  border: 1px solid rgba(244, 240, 232, 0.14);
  padding: 6px 9px;
  background: rgba(244, 240, 232, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.diary-tool-button {
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.diary-tool-button:hover {
  border-color: rgba(244, 240, 232, 0.36);
  color: var(--ink);
}

.diary-form {
  display: grid;
  gap: 12px;
}

.diary-form label {
  display: grid;
  gap: 7px;
}

.diary-form label span {
  color: rgba(244, 240, 232, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.diary-form input,
.diary-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 0;
  background: rgba(244, 240, 232, 0.06);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.diary-form input {
  min-height: 42px;
  padding: 0 12px;
}

.diary-form textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
}

.diary-form input:focus,
.diary-form textarea:focus {
  border-color: rgba(167, 211, 111, 0.72);
}

.diary-actions,
.diary-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diary-save,
.diary-cancel,
.diary-entry-actions button {
  min-height: 36px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(244, 240, 232, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.diary-save {
  padding: 0 14px;
  background: var(--ink);
  color: #11140f;
}

.diary-cancel,
.diary-entry-actions button {
  padding: 0 12px;
}

.diary-list,
.todo-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.todo-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
}

.todo-active {
  min-width: 0;
}

.diary-empty {
  margin: 0;
  border: 1px dashed rgba(244, 240, 232, 0.16);
  padding: 14px;
  color: var(--muted);
}

.diary-entry,
.todo-entry {
  position: relative;
  border: 1px solid rgba(244, 240, 232, 0.12);
  background: rgba(244, 240, 232, 0.04);
  padding: 14px;
}

.diary-entry time,
.todo-entry time {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.diary-entry p,
.todo-entry p {
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.todo-entry.done {
  border-color: rgba(167, 211, 111, 0.28);
  background: rgba(167, 211, 111, 0.07);
}

.todo-entry.done p {
  color: rgba(244, 240, 232, 0.48);
  text-decoration: line-through;
}

.todo-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.todo-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.todo-timeline {
  min-width: 0;
  border-left: 1px solid rgba(244, 240, 232, 0.12);
  padding-left: 18px;
}

.timeline-title {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-list {
  --timeline-track: 44px;
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-track) / 2);
  top: 8px;
  bottom: 8px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(rgba(167, 211, 111, 0.68), rgba(167, 211, 111, 0.08));
}

.timeline-day {
  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-track) minmax(0, 1fr);
  gap: 10px;
}

.timeline-marker {
  z-index: 1;
  justify-self: center;
  width: var(--dot-size);
  height: var(--dot-size);
  margin-top: 3px;
  border: 2px solid rgba(225, 255, 187, 0.7);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 26px rgba(167, 211, 111, 0.42);
}

.timeline-content time {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.timeline-content strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}

.timeline-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-content li {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(244, 240, 232, 0.1);
  background: rgba(167, 211, 111, 0.05);
  padding: 9px;
}

.timeline-content li span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.timeline-content button {
  justify-self: start;
  min-height: 28px;
  border: 1px solid rgba(244, 240, 232, 0.14);
  background: rgba(244, 240, 232, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
}

.timeline-content button:hover {
  border-color: rgba(167, 211, 111, 0.58);
}

.close-button {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.06);
  color: var(--ink);
}

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

@media (max-width: 900px) {
  .hero,
  .feature-grid,
  .route-lanes {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .orbit-panel {
    min-height: auto;
  }

  .country-workspace {
    grid-template-columns: 1fr;
  }

  .featured-card {
    position: relative;
    top: auto;
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 42px;
  }

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

  .filters {
    justify-content: flex-start;
  }

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

  .country-task-grid {
    grid-template-columns: 1fr;
  }

  .orbit-node {
    width: 62px;
    height: 62px;
  }

  .city-orbit,
  .essay-orbit {
    width: 62px;
    height: 62px;
  }

  .essay-paper-points {
    inset: -118px;
  }

  .essay-paper-dot {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }

  .city-education-points {
    inset: -62px;
  }

  .country-dot {
    width: 68px;
    height: 68px;
    font-size: 11px;
  }

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

  .todo-timeline {
    border-left: 0;
    border-top: 1px solid rgba(244, 240, 232, 0.12);
    padding-top: 18px;
    padding-left: 0;
  }
}
