/* ---------- base ---------- */
:root {
  --bg: #0e0e0e;
  --bg-deep: #090909;
  --surface: #171717;
  --surface-2: #1e1e1e;
  --surface-3: #262626;
  --text: #f5f2ea;
  --text-soft: #c9c4ba;
  --muted: #918d84;
  --line: #2c2c2c;
  --line-strong: #4a4a4a;
  --accent: #ffb400;
  --accent-strong: #ffc733;
  --accent-ink: #111111;
  --accent-soft: rgba(255, 180, 0, 0.1);
  --danger: #ff7a6d;
  --serif: Georgia, "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #0e0e0e;
  background: var(--bg);
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

::selection {
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid #ffb400;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 20;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

/* ---------- header ---------- */
.site-header {
  background: #0b0b0b;
  background: var(--bg-deep);
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.08em;
  color: #f5f2ea;
  color: var(--text);
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  flex: none;
}

.site-nav a {
  color: #c9c4ba;
  color: var(--text-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: #ffb400;
  color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #111111;
  background: #101010;
  border-bottom: 3px solid #ffb400;
  border-bottom: 3px solid var(--accent);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 180, 0, 0.035) 0,
    rgba(255, 180, 0, 0.035) 1px,
    transparent 1px,
    transparent 72px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 58px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #ffb400;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.hero-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  background: #ffb400;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 20px;
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-lead {
  max-width: 30em;
  margin: 0;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.hero-search-panel {
  background: #171717;
  background: var(--surface);
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  padding: 22px;
  box-shadow: 8px 8px 0 rgba(255, 180, 0, 0.16);
}

.search-row {
  display: flex;
}

.search-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: #0d0d0d;
  color: #f5f2ea;
  color: var(--text);
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  border-right: 0;
  font-size: 15px;
}

.search-row input::placeholder {
  color: #7c786f;
}

.search-row input:focus {
  outline: none;
  border-color: #ffb400;
  border-color: var(--accent);
}

.search-row button {
  flex: none;
  padding: 0 22px;
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
  border: 1px solid #ffb400;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.search-row button:hover {
  background: #ffc733;
  background: var(--accent-strong);
}

.archive-stats {
  display: flex;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
}

.archive-stats > div {
  flex: 1;
  padding: 0 16px;
  border-right: 1px solid #2c2c2c;
  border-right: 1px solid var(--line);
}

.archive-stats > div:first-child {
  padding-left: 0;
}

.archive-stats > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.archive-stats dt {
  color: #918d84;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.archive-stats dd {
  margin: 4px 0 0;
  color: #ffb400;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
}

.hero-note {
  margin: 14px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- filters & catalog ---------- */
.catalog {
  padding-top: 30px;
  padding-bottom: 84px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.filter-card {
  padding: 16px 18px 6px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
}

.filter-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.filter-card-head h2 {
  margin: 3px 0 0;
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.filter-help {
  padding-bottom: 16px;
}

.filter-help p {
  margin: 8px 0 10px;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.filter-block {
  display: block;
  padding: 0;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.filter-block:last-child {
  border-bottom: 0;
}

.filter-card .filter-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "label count toggle"
    "current current toggle";
  align-items: center;
  gap: 1px 8px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
}

.filter-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  list-style: none;
  cursor: pointer;
}

.filter-summary::-webkit-details-marker {
  display: none;
}

.filter-summary:hover .filter-label,
.filter-summary:hover .filter-toggle {
  color: #ffb400;
  color: var(--accent);
}

.filter-label {
  flex: none;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.filter-card .filter-label {
  grid-area: label;
  font-size: 11px;
}

.filter-current {
  color: #f5f2ea;
  color: var(--text);
  font-size: 13px;
}

.filter-card .filter-current {
  grid-area: current;
}

.filter-count {
  color: #6f6b62;
  font-family: var(--mono);
  font-size: 11px;
}

.filter-card .filter-count {
  grid-area: count;
  justify-self: end;
  font-size: 10px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-left: auto;
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #ffb400;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}

.filter-card .filter-toggle {
  grid-area: toggle;
  align-self: center;
  margin-left: 4px;
}

.filter-toggle::after {
  content: "+";
}

details[open] > .filter-summary .filter-toggle::after {
  content: "−";
}

.filter-body {
  padding: 0 0 16px;
}

.filter-card .filter-body {
  padding-bottom: 14px;
}

.filter-card .filter-body.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.filter-card .chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
}

.filter-card .chip:hover {
  border-color: #ffb400;
  border-color: var(--accent);
}

.filter-card .chip.is-active {
  border-color: #ffb400;
  border-color: var(--accent);
}

.filter-card .chip-count {
  flex: none;
  margin-left: 0;
  font-size: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  padding: 5px 11px;
  color: #c9c4ba;
  color: var(--text-soft);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.chip:hover {
  border-color: #4a4a4a;
  border-color: var(--line-strong);
  color: #ffb400;
  color: var(--accent);
}

.chip.is-active {
  background: #ffb400;
  background: var(--accent);
  border-color: #ffb400;
  border-color: var(--accent);
  color: #111111;
  color: var(--accent-ink);
}

.chip-count {
  margin-left: 6px;
  color: #7e7a71;
  font-size: 11px;
}

.chip.is-active .chip-count {
  color: #5d4300;
}

.chip-small {
  font-size: 12px;
  padding: 4px 9px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 36px 0 20px;
}

.section-heading h2 {
  margin: 0;
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
}

.section-heading p {
  margin: 5px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 13px;
}

.section-heading-tight {
  padding-top: 0;
  align-items: center;
}

.text-link {
  color: #ffb400;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}

.text-link:hover {
  color: #ffc733;
  color: var(--accent-strong);
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.catalog-title {
  min-width: 0;
}

.catalog-title h2 {
  margin: 4px 0 0;
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

.catalog-title > p:last-child {
  margin: 5px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12.5px;
}

.sort-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  flex: none;
}

.sort-tabs-label {
  margin-right: 3px;
  color: #918d84;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.sort-tab {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid transparent;
  color: #c9c4ba;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.sort-tab:hover {
  border-color: #4a4a4a;
  border-color: var(--line-strong);
  color: #ffb400;
  color: var(--accent);
}

.sort-tab.is-active {
  background: rgba(255, 180, 0, 0.1);
  background: var(--accent-soft);
  border-color: rgba(255, 180, 0, 0.42);
  color: #ffb400;
  color: var(--accent);
}

.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 9px 12px;
  background: rgba(255, 180, 0, 0.06);
  border: 1px solid rgba(255, 180, 0, 0.22);
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 12px;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card-mobile-detail {
  display: none;
}

.software-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.software-card:hover {
  border-color: #ffb400;
  border-color: var(--accent);
  box-shadow: 6px 6px 0 rgba(255, 180, 0, 0.12);
  transform: translateY(-1px);
}

.software-card:focus-within {
  outline: 2px solid #ffb400;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tile {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.tile-c0 { background: #ffb400; color: #111111; }
.tile-c1 { background: #ffcb52; color: #111111; }
.tile-c2 { background: #eaa800; color: #111111; }
.tile-c3 { background: #ffd776; color: #111111; }
.tile-c4 { background: #f5a623; color: #111111; }
.tile-c5 { background: #ffc107; color: #111111; }

.tile-large {
  width: 74px;
  height: 74px;
  font-size: 30px;
}

.card-heading {
  min-width: 0;
}

.card-heading h3 {
  margin: 1px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
}

.card-heading h3 a {
  color: #f5f2ea;
  color: var(--text);
  text-decoration: none;
}

.card-heading h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.software-card:hover .card-heading h3 a {
  color: #ffb400;
  color: var(--accent);
}

.card-heading p {
  margin: 4px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 72px;
  margin: 16px 0 14px;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.platform {
  display: inline-block;
  padding: 2px 7px;
  background: #262626;
  background: var(--surface-3);
  border: 1px solid #363636;
  color: #b9b4aa;
  font-size: 11px;
  line-height: 1.55;
  white-space: nowrap;
}

.platform-strong {
  background: rgba(255, 180, 0, 0.1);
  border-color: rgba(255, 180, 0, 0.32);
  color: #ffc733;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
}

.card-arrow {
  color: #ffb400;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  font-size: 13px;
}

.page-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  color: #f5f2ea;
  color: var(--text);
  text-decoration: none;
}

.page-link:hover {
  border-color: #ffb400;
  border-color: var(--accent);
  color: #ffb400;
  color: var(--accent);
}

.page-link.is-disabled {
  color: #5f5c55;
  border-color: #2c2c2c;
  border-color: var(--line);
}

.page-info {
  color: #918d84;
  color: var(--muted);
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed #4a4a4a;
  border: 1px dashed var(--line-strong);
  background: #141414;
}

.empty-kicker {
  margin: 0;
  color: #ffb400;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.empty-state h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  color: #f5f2ea;
  color: var(--text);
}

.empty-state p {
  margin: 0 auto 24px;
  max-width: 36em;
  color: #918d84;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  background: #ffb400;
  background: var(--accent);
  border: 1px solid #ffb400;
  border: 1px solid var(--accent);
  color: #111111;
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.button:hover {
  background: #ffc733;
  background: var(--accent-strong);
  border-color: #ffc733;
  border-color: var(--accent-strong);
}

.button-ghost {
  background: transparent;
  border-color: #4a4a4a;
  border-color: var(--line-strong);
  color: #f5f2ea;
  color: var(--text);
  font-weight: 400;
}

.button-ghost:hover {
  background: transparent;
  border-color: #ffb400;
  border-color: var(--accent);
  color: #ffb400;
  color: var(--accent);
}

/* ---------- detail ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 24px;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  color: #918d84;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ffb400;
  color: var(--accent);
}

.breadcrumb span {
  color: #5f5c55;
}

.software-hero {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 0 34px;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.software-hero-main {
  flex: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffb400;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.software-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.software-byline {
  margin: 6px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 14px;
}

.software-summary {
  margin: 14px 0 0;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.software-quick-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #918d84;
  color: var(--muted);
  font-size: 13px;
}

.software-quick-meta span {
  padding: 0 16px;
  border-right: 1px solid #2c2c2c;
  border-right: 1px solid var(--line);
}

.software-quick-meta span:first-child {
  padding-left: 0;
}

.software-quick-meta span:last-child {
  border-right: 0;
}

.software-quick-meta strong {
  color: #f5f2ea;
  color: var(--text);
  font-weight: 600;
}

.software-hero-aside {
  flex: none;
  position: relative;
  padding-top: 4px;
}

.hero-download-button {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 190px;
  padding: 12px 18px;
  background: #ffb400;
  background: var(--accent);
  border: 1px solid #ffb400;
  border: 1px solid var(--accent);
  color: #111111;
  color: var(--accent-ink);
  cursor: pointer;
  line-height: 1.3;
  text-decoration: none;
  list-style: none;
}

.hero-download-button::-webkit-details-marker {
  display: none;
}

.hero-download-button:hover,
.download-picker[open] .hero-download-button {
  background: #ffc733;
  background: var(--accent-strong);
  border-color: #ffc733;
  border-color: var(--accent-strong);
}

.hero-download-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-download-meta {
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.78;
}

.download-picker-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
}

.download-picker-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 380px;
  max-width: calc(100vw - 40px);
  padding: 14px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.download-picker-title {
  margin: 0 0 10px;
  color: #f5f2ea;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.download-picker-list {
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
}

.download-picker-list li + li {
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
}

.download-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 8px;
  text-decoration: none;
}

.download-picker-option:hover {
  background: rgba(255, 180, 0, 0.1);
  background: var(--accent-soft);
}

.download-option-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-option-version {
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.download-option-tags {
  color: #918d84;
  color: var(--muted);
  font-size: 11px;
}

.download-option-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.download-option-method {
  color: #ffb400;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.download-option-size,
.download-option-code {
  color: #918d84;
  color: var(--muted);
  font-size: 11px;
}

.download-picker-note {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
  color: #918d84;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 34px 0 84px;
}

.content-block {
  margin-bottom: 38px;
}

.content-block h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  color: #f5f2ea;
  color: var(--text);
}

.prose {
  margin: 0;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.95;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.section-heading .version-total {
  color: #918d84;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.version-card {
  padding: 20px 22px;
  margin-bottom: 14px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
}

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

.version-info {
  min-width: 0;
}

.version-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.version-number {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: #f5f2ea;
  color: var(--text);
  overflow-wrap: anywhere;
}

.badge-latest {
  display: inline-block;
  padding: 2px 7px;
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.badge-pin {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 7px;
  background: rgba(255, 180, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.55);
  color: #ffb400;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.version-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.version-date {
  color: #918d84;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.version-download {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 13px 16px;
  background: #141414;
  border: 1px solid rgba(255, 180, 0, 0.32);
  color: #f5f2ea;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.version-download:hover {
  background: rgba(255, 180, 0, 0.1);
  background: var(--accent-soft);
  border-color: #ffb400;
  border-color: var(--accent);
}

.version-download-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.version-download-action {
  color: #ffb400;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.version-download-meta {
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
}

.version-download-code {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px dashed rgba(255, 180, 0, 0.4);
  color: #918d84;
  color: var(--muted);
  font-size: 11.5px;
}

.version-download-code code {
  color: #ffb400;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.version-download-go {
  flex: none;
  color: #ffb400;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.version-download:hover .version-download-go {
  transform: translateX(3px);
}

.version-download.is-disabled {
  border-style: dashed;
  opacity: 0.7;
}

.version-download.is-disabled .version-download-action {
  color: #918d84;
  color: var(--muted);
}

.version-note {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #262626;
  border-top: 1px solid #252525;
  font-size: 13px;
}

.version-note > span {
  flex: none;
  width: 62px;
  padding-top: 2px;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.version-note p {
  margin: 0;
  color: #c9c4ba;
  color: var(--text-soft);
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.checksum {
  margin-top: 14px;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
}

.checksum summary {
  cursor: pointer;
  color: #918d84;
  color: var(--muted);
}

.checksum summary:hover {
  color: #ffb400;
  color: var(--accent);
}

.checksum code {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  background: #101010;
  border: 1px solid #2c2c2c;
  color: #b9b4aa;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.empty-inline {
  padding: 28px;
  border: 1px dashed #4a4a4a;
  border: 1px dashed var(--line-strong);
  color: #918d84;
  color: var(--muted);
  font-size: 14px;
}

.empty-inline p {
  margin: 0 0 8px;
}

.detail-side {
  min-width: 0;
}

.side-panel {
  padding: 22px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
}

.side-panel h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
  color: #f5f2ea;
  color: var(--text);
}

.meta-list {
  margin: 0;
}

.meta-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #232323;
  font-size: 12.5px;
}

.meta-list > div:last-child {
  border-bottom: 0;
}

.meta-list dt {
  flex: none;
  color: #918d84;
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  text-align: right;
  color: #d8d4cb;
  color: #d8d4cb;
  overflow-wrap: anywhere;
}

.meta-list a {
  color: #ffb400;
  color: var(--accent);
  text-decoration: none;
}

.meta-list a:hover {
  text-decoration: underline;
}

.side-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #3a3a3a;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: #ffb400;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 38px 0;
  background: #090909;
  background: var(--bg-deep);
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 660px;
}

.footer-mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.footer-brand p {
  margin: 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.footer-brand strong {
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.footer-side {
  flex: none;
  text-align: right;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.footer-side p {
  margin: 0 0 4px;
}

.footer-side a {
  color: #c9c4ba;
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-side a:hover {
  color: #ffb400;
  color: var(--accent);
}

/* ---------- flash & alerts ---------- */
.site-flash-wrap {
  padding-top: 16px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid;
  font-size: 13px;
  line-height: 1.7;
}

.flash-success {
  background: rgba(255, 180, 0, 0.08);
  border-color: rgba(255, 180, 0, 0.4);
  color: #ffd27a;
}

.flash-error {
  background: rgba(255, 122, 109, 0.08);
  border-color: rgba(255, 122, 109, 0.42);
  color: #ffb1a8;
}

.alert {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid;
  font-size: 13px;
  line-height: 1.8;
}

.alert-error {
  background: rgba(255, 122, 109, 0.07);
  border-color: rgba(255, 122, 109, 0.45);
  color: #ffb1a8;
}

.alert-success {
  background: rgba(255, 180, 0, 0.07);
  border-color: rgba(255, 180, 0, 0.4);
  color: #ffd27a;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert li + li {
  margin-top: 4px;
}

/* ---------- forms ---------- */
.form-field {
  margin-bottom: 18px;
}

.form-field > label {
  display: block;
  margin-bottom: 7px;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 13px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0d0d0d;
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  color: #f5f2ea;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.form-field select {
  color-scheme: dark;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #756f66;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #ffb400;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 84px;
}

.form-field:last-child {
  margin-bottom: 0;
}

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

.form-panel {
  margin-bottom: 18px;
  padding: 24px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
}

.form-panel-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.form-panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.form-panel-head p {
  margin: 5px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12.5px;
}

.hint {
  margin: 6px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.required {
  color: #ffb400;
  color: var(--accent);
}

/* ---------- header account nav ---------- */
.nav-account {
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffb400;
  color: var(--accent);
  font-weight: 600;
}

.nav-register {
  border: 1px solid #ffb400;
  border: 1px solid var(--accent);
  padding: 5px 11px;
  color: #ffb400;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.5;
}

.nav-register:hover {
  background: #ffb400;
  background: var(--accent);
  color: #111111;
  color: var(--accent-ink);
}

.nav-auth-form {
  display: flex;
  margin: 0;
}

.nav-logout {
  padding: 0;
  background: none;
  border: 0;
  color: #918d84;
  color: var(--muted);
  font-size: inherit;
  cursor: pointer;
}

.nav-logout:hover {
  color: #ffb400;
  color: var(--accent);
}

/* ---------- quick nav ---------- */
.quick-nav-section {
  padding: 36px 0 34px;
  background: #111111;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0;
  color: #ffb400;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.quick-nav-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.quick-nav-head h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.3;
  font-weight: 700;
}

.quick-nav-note {
  max-width: 320px;
  margin: 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: right;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 16px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.quick-nav-item:hover {
  border-color: #ffb400;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.quick-nav-item.is-active {
  border-color: #ffb400;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.16), rgba(255, 180, 0, 0.02) 60%, #171717);
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.16), rgba(255, 180, 0, 0.02) 60%, var(--surface));
}

.quick-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #262626;
  background: var(--surface-3);
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  color: #c9c4ba;
  color: var(--text-soft);
}

.quick-nav-icon svg {
  width: 22px;
  height: 22px;
}

.quick-nav-item.is-active .quick-nav-icon {
  background: #ffb400;
  background: var(--accent);
  border-color: #ffb400;
  border-color: var(--accent);
  color: #111111;
  color: var(--accent-ink);
}

.quick-nav-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-nav-copy .sort-label {
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.quick-nav-item.is-active .sort-label {
  color: #ffb400;
  color: var(--accent);
}

.quick-nav-hint {
  margin-top: 2px;
  color: #918d84;
  color: var(--muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-nav-arrow {
  margin-left: auto;
  color: #6f6b62;
  font-size: 16px;
}

.quick-nav-item.is-active .quick-nav-arrow {
  color: #ffb400;
  color: var(--accent);
}

/* ---------- catalog extras ---------- */
.filter-block-compact .filter-summary {
  padding: 11px 0;
}

.filter-block-compact .filter-body {
  padding-bottom: 12px;
}

.card-score {
  flex: none;
  margin-left: auto;
  padding: 3px 7px;
  background: rgba(255, 180, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.34);
  color: #ffc733;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.platform-edition {
  background: #1d1d1d;
  border-color: #3a3a3a;
  color: #d8d4cb;
}

.card-meta-right {
  text-align: right;
}

.contribute-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed #3a3a3a;
  color: #918d84;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------- related software ---------- */
.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.related-card:hover {
  border-color: #ffb400;
  border-color: var(--accent);
  background: #1e1e1e;
  background: var(--surface-2);
}

.related-name {
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.related-card:hover .related-name {
  color: #ffb400;
  color: var(--accent);
}

.related-meta {
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .related-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- comments ---------- */
.comments-block {
  margin-top: 44px;
}

.comment-form {
  margin-bottom: 24px;
  padding: 18px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
}

.comment-form > label {
  display: block;
  margin-bottom: 10px;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 13px;
}

.comment-form > label strong {
  color: #ffb400;
  color: var(--accent);
}

.comment-form textarea {
  width: 100%;
  min-height: 104px;
  padding: 10px 12px;
  background: #0d0d0d;
  border: 1px solid #4a4a4a;
  border: 1px solid var(--line-strong);
  color: #f5f2ea;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #ffb400;
  border-color: var(--accent);
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
}

.comment-guest {
  margin-bottom: 24px;
  padding: 20px;
  background: #141414;
  border: 1px dashed #4a4a4a;
  border: 1px dashed var(--line-strong);
}

.comment-guest p {
  margin: 0 0 14px;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.comment-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-item {
  padding: 18px 0;
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
}

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.comment-head form {
  margin: 0;
}

.comment-author {
  color: #f5f2ea;
  color: var(--text);
  font-size: 13.5px;
}

.comment-time {
  margin-left: 10px;
  color: #918d84;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.comment-body {
  margin: 8px 0 0;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.danger-link {
  padding: 0;
  background: none;
  border: 0;
  color: #ff7a6d;
  color: var(--danger);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger-link:hover {
  color: #ffb1a8;
}

/* ---------- auth pages ---------- */
.auth-page {
  display: flex;
  justify-content: center;
  padding-top: 52px;
  padding-bottom: 88px;
}

.auth-panel {
  width: 100%;
  max-width: 480px;
  padding: 36px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(255, 180, 0, 0.14);
}

.auth-panel h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
}

.auth-lead {
  margin: 10px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.auth-form {
  margin-top: 24px;
}

.auth-form .form-field {
  margin-bottom: 16px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.auth-switch {
  margin: 20px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 13px;
}

.auth-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #3a3a3a;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.auth-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed #3a3a3a;
  border-top: 1px dashed var(--line-strong, #3a3a3a);
}

.auth-block h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-hint {
  margin: 6px 0 14px;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.auth-hint-ok {
  color: #ffcf5c;
  color: var(--accent);
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-actions .button {
  flex: 1 1 150px;
  cursor: pointer;
}

.auth-send {
  width: 100%;
  margin: -2px 0 18px;
  cursor: pointer;
}

.auth-field-spaced {
  margin-top: 22px;
}

.auth-submit-inline {
  cursor: pointer;
}

/* ---------- submit page ---------- */
.submit-page {
  max-width: 920px;
  padding-bottom: 84px;
}

.submit-head {
  padding: 14px 0 28px;
}

.submit-head h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
}

.submit-lead {
  max-width: 44em;
  margin: 10px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

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

.choice-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #131313;
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
  cursor: pointer;
}

.choice-option input {
  width: auto;
  margin: 4px 0 0;
  flex: none;
  accent-color: #ffb400;
  accent-color: var(--accent);
}

.choice-option strong {
  display: block;
  color: #f5f2ea;
  color: var(--text);
  font-size: 14px;
}

.choice-option small {
  display: block;
  margin-top: 4px;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.choice-option.is-selected {
  background: rgba(255, 180, 0, 0.08);
  border-color: #ffb400;
  border-color: var(--accent);
}

.submit-form [hidden] {
  display: none !important;
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.submit-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.paste-panel textarea {
  min-height: 150px;
}

.parse-summary {
  border-color: rgba(255, 180, 0, 0.42);
}

.parse-list {
  display: grid;
  margin: 0;
}

.parse-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
}

.parse-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.parse-list dt {
  color: #918d84;
  color: var(--muted);
  font-size: 12.5px;
}

.parse-list dd {
  margin: 0;
  color: #f5f2ea;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.parse-hints {
  margin: 16px 0 0;
  padding: 12px 16px 12px 30px;
  background: rgba(255, 180, 0, 0.06);
  border: 1px solid rgba(255, 180, 0, 0.28);
  color: #d3b98a;
  font-size: 12.5px;
  line-height: 1.8;
}

.parse-hints li + li {
  margin-top: 4px;
}

.parse-summary .form-actions {
  margin-top: 18px;
}

.submit-details {
  margin: 0 0 18px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
}

.submit-details > summary {
  padding: 15px 20px;
  color: #ffb400;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.submit-details[open] > summary {
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.submit-details > .form-panel {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.submit-details > .form-panel:last-of-type {
  border-bottom: 0;
}

.submit-details > .submit-actions {
  padding: 18px 20px 22px;
}

@media (max-width: 560px) {
  .parse-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- account page ---------- */
.account-page {
  max-width: 980px;
  padding-bottom: 84px;
}

.account-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 24px;
  border-bottom: 1px solid #2c2c2c;
  border-bottom: 1px solid var(--line);
}

.account-head h1 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-lead {
  margin: 8px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 13px;
}

.account-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.account-actions form {
  margin: 0;
}

.account-stats {
  margin: 24px 0 4px;
  padding-top: 18px;
  border-top: 0;
}

.account-block {
  margin-top: 42px;
}

.account-list {
  display: flex;
  flex-direction: column;
}

.account-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #2c2c2c;
  border-top: 1px solid var(--line);
}

.account-item-main {
  min-width: 0;
}

.account-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.account-item-title strong {
  color: #f5f2ea;
  color: var(--text);
}

.account-item-type {
  color: #918d84;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.account-item-meta {
  margin: 6px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.account-note {
  margin: 6px 0 0;
  color: #d3b98a;
  font-size: 12px;
  line-height: 1.7;
}

.account-item-link {
  flex: none;
}

.account-item > form {
  flex: none;
  margin: 0;
}

.account-software-link {
  color: #f5f2ea;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.account-software-link:hover {
  color: #ffb400;
  color: var(--accent);
}

.account-comment-body {
  margin: 8px 0 0;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid;
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
}

.status-pending {
  background: rgba(255, 180, 0, 0.08);
  border-color: rgba(255, 180, 0, 0.4);
  color: #ffc733;
}

.status-approved {
  background: rgba(127, 199, 134, 0.08);
  border-color: rgba(127, 199, 134, 0.38);
  color: #9fd8a4;
}

.status-rejected {
  background: rgba(255, 122, 109, 0.07);
  border-color: rgba(255, 122, 109, 0.4);
  color: #ffb1a8;
}

/* ---------- footer extras ---------- */
.visit-count {
  color: #ffb400;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.visit-separator {
  margin: 0 4px;
  opacity: 0.55;
}

/* ---------- error ---------- */
.error-page {
  max-width: 760px;
  padding-top: 100px;
  padding-bottom: 140px;
}

.error-code {
  margin: 0;
  color: #ffb400;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.error-page h1 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.25;
}

.error-page > p {
  max-width: 36em;
  margin: 0;
  color: #918d84;
  color: var(--muted);
  line-height: 1.9;
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .hero-search-panel {
    max-width: 620px;
    box-shadow: 5px 5px 0 rgba(255, 180, 0, 0.16);
  }

  .detail-layout {    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-side {
    order: 2;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 66px;
    gap: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    font-size: 11px;
    max-width: 190px;
  }

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

  .site-nav > a:first-child {
    display: none;
  }

  .hero-inner {
    padding-top: 38px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-search-panel {
    padding: 16px;
  }

  .search-row button {
    padding: 0 15px;
  }

  .archive-stats dd {
    font-size: 22px;
  }

  .filter-block {
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
  }

  .filter-label {
    width: auto;
    padding-top: 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 28px;
  }

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

  .card-summary {
    min-height: 0;
  }

  .pagination {
    gap: 10px;
  }

  .page-link {
    padding: 7px 10px;
  }

  .software-hero {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 22px;
  }

  .tile-large {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .software-hero h1 {
    font-size: 32px;
  }

  .software-hero-aside {
    width: 100%;
    padding-top: 0;
  }

  .hero-download-button {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .download-picker-caret {
    right: 16px;
  }

  .download-picker-panel {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .software-quick-meta span {
    padding: 0 10px;
    font-size: 12px;
  }

  .detail-layout {
    padding-top: 24px;
    padding-bottom: 60px;
  }

  .version-card {
    padding: 16px;
  }

  .version-top {
    flex-direction: column;
    gap: 16px;
  }

  .version-download {
    flex-wrap: wrap;
    gap: 10px;
  }

  .version-download-code {
    width: 100%;
    justify-content: center;
  }

  .version-download-go {
    display: none;
  }

  .version-note {
    flex-direction: column;
    gap: 4px;
  }

  .version-note > span {
    width: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
  }

  .footer-side {
    text-align: left;
  }

  .error-page {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .error-page h1 {
    font-size: 30px;
  }
}

@media (max-width: 980px) {
  .quick-nav-note {
    display: none;
  }

  .quick-nav {
    gap: 10px;
  }

  .quick-nav-item {
    min-height: 0;
    padding: 12px;
    gap: 10px;
  }

  .quick-nav-icon {
    width: 40px;
    height: 40px;
  }

  .quick-nav-icon svg {
    width: 19px;
    height: 19px;
  }

  .quick-nav-copy .sort-label {
    font-size: 18px;
  }

  .quick-nav-hint {
    font-size: 10.5px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }  .filter-card {
    padding: 14px 18px 4px;
  }
}

@media (max-width: 680px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }

  .nav-register {
    padding: 4px 9px;
  }

  .quick-nav-section {
    display: none;
  }

  .catalog {
    padding-top: 20px;
    padding-bottom: 64px;
  }

  .catalog-layout {
    gap: 18px;
  }

  .filter-card {
    padding: 12px 14px 2px;
  }

  .filter-card-head {
    padding-bottom: 10px;
  }

  .filter-card-head h2 {
    font-size: 18px;
  }

  .filter-help {
    display: none;
  }

  .filter-card .filter-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }

  .filter-card .filter-label {
    flex: none;
  }

  .filter-card .filter-current {
    order: 1;
    margin-left: auto;
    font-size: 12px;
  }

  .filter-card .filter-count {
    display: none;
  }

  .filter-card .filter-toggle {
    order: 2;
    margin-left: 0;
  }

  .filter-card .filter-body,
  .filter-body {
    padding-bottom: 12px;
  }

  .filter-card .filter-body.chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .filter-card .chip {
    justify-content: center;
    padding: 7px 4px;
    text-align: center;
    font-size: 12px;
  }

  .filter-card .chip-count {
    display: none;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 12px;
  }

  .catalog-title h2 {
    font-size: 23px;
  }

  .sort-tabs {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .sort-tabs-label {
    align-self: center;
    margin: 0;
    font-size: 11px;
  }

  .sort-tab {
    padding: 8px 2px;
    background: #1e1e1e;
    background: var(--surface-2);
    border-color: #2c2c2c;
    border-color: var(--line);
    color: #c9c4ba;
    color: var(--text-soft);
    font-size: 12px;
    text-align: center;
  }

  .sort-tab.is-active {
    background: #ffb400;
    background: var(--accent);
    border-color: #ffb400;
    border-color: var(--accent);
    color: #111111;
    color: var(--accent-ink);
  }

  .active-filter-bar {
    margin-top: 10px;
  }

  .software-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .software-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas:
      "tile heading score"
      "tile meta detail";
    align-items: center;
    gap: 2px 12px;
    min-height: 70px;
    padding: 12px 14px;
  }

  .software-card .card-top {
    display: contents;
  }

  .software-card .tile {
    grid-area: tile;
    align-self: center;
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .software-card .card-heading {
    grid-area: heading;
    align-self: end;
    min-width: 0;
  }

  .software-card .card-heading h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .software-card .card-heading p {
    margin-top: 1px;
    font-size: 11px;
  }

  .software-card .card-score {
    grid-area: score;
    align-self: center;
    justify-self: end;
    margin: 0;
    padding: 1px 5px;
    font-size: 10px;
  }

  .software-card .card-summary,
  .software-card .card-platforms {
    display: none;
  }

  .software-card .card-meta {
    grid-area: meta;
    align-self: start;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 10.5px;
  }

  .software-card .card-meta > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .software-card .card-meta-right {
    flex: none;
    text-align: right;
    white-space: nowrap;
  }

  .software-card .card-arrow {
    display: none;
  }

  .card-mobile-detail {
    grid-area: detail;
    align-self: center;
    justify-self: end;
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255, 180, 0, 0.55);
    color: #ffb400;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .software-card:hover .card-mobile-detail {
    background: #ffb400;
    background: var(--accent);
    color: #111111;
    color: var(--accent-ink);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-panel {
    padding: 18px;
  }

  .comment-form-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .comment-form-foot .button {
    width: 100%;
    text-align: center;
  }

  .comment-head > div {
    min-width: 0;
  }

  .comment-time {
    display: block;
    margin: 2px 0 0;
  }

  .auth-page {
    padding-top: 28px;
    padding-bottom: 60px;
  }

  .auth-panel {
    padding: 24px;
    box-shadow: 5px 5px 0 rgba(255, 180, 0, 0.14);
  }

  .auth-panel h1 {
    font-size: 28px;
  }

  .submit-page,
  .account-page {
    padding-bottom: 56px;
  }

  .submit-head h1 {
    font-size: 30px;
  }

  .choice-options {
    grid-template-columns: 1fr;
  }

  .account-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 28px;
  }

  .account-head h1 {
    font-size: 30px;
  }

  .account-stats {
    flex-wrap: wrap;
  }

  .account-item {
    flex-direction: column;
    gap: 10px;
  }

  .account-item > form {
    align-self: flex-end;
  }
}

@media (max-width: 420px) {
  .sort-tabs-label {
    display: none;
  }

  .sort-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-current {
    font-size: 12px;
  }

  .software-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 11px 12px;
  }

  .software-card .tile {
    width: 42px;
    height: 42px;
  }

  .card-mobile-detail {
    padding: 6px 9px;
    font-size: 11px;
  }
}

/* ---------- 圆角与柔和阴影 ---------- */
.brand-mark,
.footer-mark,
.tile {
  border-radius: var(--radius-md);
}

.tile-large {
  border-radius: var(--radius-lg);
}

.hero-search-panel {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.search-row input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.search-row button {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quick-nav-item,
.software-card,
.filter-card {
  border-radius: var(--radius-md);
}

.quick-nav-item:hover,
.software-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.chip,
.platform,
.badge-latest,
.badge-pin,
.status-tag,
.card-score,
.card-mobile-detail,
.version-download-code {
  border-radius: var(--radius-xs);
}

.button,
.page-link,
.nav-register,
.download-picker-option,
.version-download,
.checksum,
.sort-tab,
.active-filter-bar {
  border-radius: var(--radius-sm);
}

.hero-download-button {
  border-radius: var(--radius-md);
}

.download-picker-panel {
  border-radius: var(--radius-lg);
}

.version-card,
.side-panel,
.comment-form,
.comment-guest,
.empty-inline,
.choice-option {
  border-radius: var(--radius-md);
}

.empty-state {
  border-radius: var(--radius-lg);
}

.form-field input,
.form-field select,
.form-field textarea,
.comment-form textarea {
  border-radius: var(--radius-sm);
}

.flash,
.alert {
  border-radius: var(--radius-sm);
}

.auth-panel {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.checksum code {
  border-radius: 4px;
}

.version-download-code code {
  border-radius: 3px;
}

/* ---------- 友情链接 ---------- */
.friends-section {
  padding: 4px 0 76px;
}

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

.friends-head h2 {
  margin: 5px 0 0;
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
}

.friends-head p:last-child {
  margin: 5px 0 0;
  color: #918d84;
  color: var(--muted);
  font-size: 13px;
}

.friends-count {
  flex: none;
  color: #918d84;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.friends-side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
}

.friends-apply {
  padding: 8px 14px;
  font-size: 12.5px;
}

.friends-empty-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
}

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

.friend-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px 15px;
  background: #171717;
  background: var(--surface);
  border: 1px solid #2c2c2c;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.friend-card:hover {
  border-color: #ffb400;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.friend-tile {
  width: 42px;
  height: 42px;
  font-size: 17px;
  border-radius: var(--radius-sm);
}

.friend-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.friend-name {
  color: #f5f2ea;
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.friend-host {
  overflow: hidden;
  color: #918d84;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-desc {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: #c9c4ba;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.friend-arrow {
  margin-left: auto;
  color: #ffb400;
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  opacity: 0.65;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.friend-card:hover .friend-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.friends-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #171717;
  background: var(--surface);
  border: 1px dashed #4a4a4a;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.friends-empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: rgba(255, 180, 0, 0.1);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 180, 0, 0.4);
  border-radius: var(--radius-sm);
  color: #ffb400;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.friends-empty p {
  margin: 0;
  color: #f5f2ea;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.friends-empty div span {
  display: block;
  margin-top: 2px;
  color: #918d84;
  color: var(--muted);
  font-size: 12.5px;
}

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

@media (max-width: 680px) {
  .friends-section {
    padding-bottom: 56px;
  }

  .friends-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .friends-side {
    width: 100%;
    justify-content: space-between;
  }

  .friends-head h2 {
    font-size: 24px;
  }

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

  .friends-empty {
    align-items: flex-start;
    padding: 16px;
  }
}

/* ---------- announcement ---------- */
.announcement {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.announcement[hidden] {
  display: none;
}

.announcement-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.announcement-dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: announcement-in 0.2s ease-out;
}

@keyframes announcement-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.announcement-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
}

.announcement-dialog h2 {
  margin: 0 44px 14px 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.announcement-body {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.announcement-actions {
  margin-top: 24px;
}

.announcement-actions .button {
  width: 100%;
  border-radius: var(--radius-sm);
}

.announcement-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.announcement-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.announcement-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .announcement {
    padding: 16px;
  }

  .announcement-dialog {
    max-height: calc(100vh - 32px);
    padding: 24px 20px 20px;
  }

  .announcement-dialog h2 {
    font-size: 23px;
  }
}

/* ---------- daily review ---------- */
.daily-strip {
  margin-top: 4px;
}

.daily-strip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: rgba(255, 180, 0, 0.045);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.daily-strip-inner:hover,
.daily-strip-inner:focus-visible {
  border-color: var(--line-strong);
  border-left-color: var(--accent);
  background: rgba(255, 180, 0, 0.09);
}

.daily-strip-tag {
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.daily-strip-date {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.daily-strip-name {
  flex: none;
  max-width: 15em;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-strip-excerpt {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-strip-go {
  flex: none;
  margin-left: auto;
  color: var(--accent);
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .daily-strip-excerpt {
    display: none;
  }
}

@media (max-width: 560px) {
  .daily-strip-inner {
    gap: 8px;
    padding: 8px 12px;
  }

  .daily-strip-date {
    display: none;
  }

  .daily-strip-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
}

.daily-hero {
  padding: 30px 0 6px;
}

.daily-hero h1 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
}

.daily-date {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.daily-today {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
}

.daily-footnote {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.daily-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.daily-nav-link {
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
}

.daily-nav-link:hover {
  color: var(--accent);
}

.daily-nav-link.is-disabled {
  color: var(--muted);
}

.daily-nav-today {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.daily-nav-today:hover {
  color: var(--accent-ink);
  background: var(--accent-strong);
}

.daily-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-list li + li {
  border-top: 1px solid var(--line);
}

.daily-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-soft);
  font-size: 13.5px;
  text-decoration: none;
}

.daily-list a:hover {
  color: var(--accent);
}

.daily-list .is-current a {
  color: var(--accent);
}

.daily-list-date {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.daily-list .is-current .daily-list-date {
  color: var(--accent);
}

.daily-list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- hero text carousel ---------- */
.hero-carousel {
  max-width: 34em;
  margin: 0;
}

.carousel-track {
  display: grid;
}

.carousel-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 128px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.1), rgba(23, 23, 23, 0.92) 46%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.carousel-slide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.carousel-title {
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.carousel-subtitle {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.carousel-slide:hover .carousel-title {
  color: var(--accent);
}

.carousel-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 22px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.carousel-dot:hover {
  background: var(--line-strong);
}

.carousel-dot.is-active {
  width: 34px;
  background: var(--accent);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.carousel-toggle {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.carousel-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .carousel-slide {
    min-height: 112px;
    padding: 18px 18px;
  }

  .carousel-title {
    font-size: 19px;
  }
}
