@import url("../fonts/noto-sans-sc/index.css");

@font-face {
  font-family: "CWNav Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f1f3f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --surface-raised: rgba(255, 255, 255, 0.86);
  --ink: #3e4248;
  --ink-strong: #262a30;
  --ink-muted: #737981;
  --ink-soft: #626a73;
  --line: #e7e9ee;
  --purple: #b40bf3;
  --purple-deep: #4b075f;
  --coral: #f34b5b;
  --coral-hover: color-mix(in srgb, var(--coral) 84%, #000);
  --blue: #248bf3;
  --green: #2ebd73;
  --shadow: 0 10px 30px rgba(57, 45, 72, 0.09);
  --shadow-float: 0 18px 42px rgba(34, 22, 45, 0.2);
  --radius: 12px;
  --cwnav-content-width: 1420px;
  --cwnav-hero-height: 620px;
  --font-ui: "Noto Sans SC Variable", "CWNav Manrope", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #17181a;
  --surface: #242527;
  --surface-soft: #2c2d30;
  --surface-raised: rgba(39, 40, 43, 0.9);
  --ink: #d8dade;
  --ink-strong: #f5f5f6;
  --ink-muted: #a2a6ad;
  --ink-soft: #bec2c8;
  --line: #34363a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #a9aeb6 var(--canvas);
  scrollbar-width: thin;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select { color: inherit; font: inherit; letter-spacing: 0; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; stroke-width: 1.9; }
h1, h2, h3, p { margin-top: 0; }

:focus-visible { outline: 3px solid rgba(48, 143, 255, 0.58); outline-offset: 3px; }
::selection { background: #d84cff; color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: #aeb3bb; border: 3px solid var(--canvas); border-radius: 999px; }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink-strong);
  color: var(--surface);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  z-index: 60;
  top: 10px;
  left: 10px;
  display: flex;
  width: calc(100% - 20px);
  height: 60px;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  background: rgba(255, 247, 255, 0.84);
  color: #39323d;
  box-shadow: 0 8px 30px rgba(58, 11, 82, 0.12);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .topbar {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(37, 32, 40, 0.84);
  color: #f1edf2;
}

.brand {
  display: flex;
  min-width: 168px;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; border-radius: 9px; background: #fff; object-fit: cover; }
.brand > span { display: grid; line-height: 1.08; }
.brand strong { color: var(--ink-strong); font-size: 18px; font-weight: 800; }
.topbar .brand strong { color: currentColor; }
.brand small { margin-top: 4px; color: currentColor; font-size: 11px; opacity: 0.64; }

.topnav { display: flex; min-width: 0; align-items: center; gap: 2px; }
.topnav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.topnav a:hover { background: rgba(255, 255, 255, 0.56); color: #161218; }
html[data-theme="dark"] .topnav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topnav svg { width: 16px; height: 16px; }

.topbar-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.topbar-clock { margin-right: 6px; font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0.75; }
.icon-button,
.floating-tools button,
.floating-tools a {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.icon-button:hover,
.floating-tools button:hover,
.floating-tools a:hover { background: rgba(127, 127, 127, 0.13); }
.menu-toggle { display: none; }

.member-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid rgba(94, 29, 99, 0.24);
  border-radius: 999px;
  background: #43253d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.member-button svg { width: 15px; height: 15px; }
.member-menu { position: relative; }
.member-menu > .member-button { cursor: pointer; }
.topbar-actions .member-menu > .member-button { min-height: 32px; gap: 4px; padding: 0 10px; font-size: 11px; }
.topbar-actions .member-menu > .member-button svg { width: 13px; height: 13px; }
.member-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 420px; padding: 0 16px 12px; border-radius: 8px; background: #473d34; color: #f6e9d9; box-shadow: 0 18px 38px rgba(28, 19, 27, 0.25); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.member-panel::before { position: absolute; top: -9px; right: 0; left: 0; height: 9px; content: ""; }
.member-menu.is-open .member-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.member-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -16px 16px; }
.member-tabs button { display: grid; min-height: 68px; place-content: center; gap: 1px; border: 0; border-radius: 0; background: #382f29; color: #cbbcaf; font-size: 13px; text-align: center; }
.member-tabs button:first-child { border-top-left-radius: 8px; }
.member-tabs button:last-child { border-top-right-radius: 8px; }
.member-tabs button[aria-selected="true"] { background: #57483a; color: #fff4e2; }
.member-tabs small { font-size: 11px; opacity: 0.66; }
.member-tier { display: grid; min-height: 68px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; align-items: start; text-align: center; }
.member-tier[hidden] { display: none; }
.member-tier > div { display: grid; justify-items: center; gap: 5px; min-width: 0; font-size: 11px; line-height: 1.4; }
.member-tier svg { width: 21px; height: 21px; padding: 4px; border-radius: 50%; background: #f8dba8; color: #664625; stroke-width: 3; }
.member-panel-cta { display: grid; min-height: 42px; place-items: center; border-radius: 999px; background: #f8dba8; color: #372820; font-size: 13px; font-weight: 750; text-decoration: none; }
.member-panel-cta:hover { background: #ffe8bd; }
.member-panel-note { margin: 7px 0 0; color: #ded0be; font-size: 10px; text-align: center; }

.search-hero {
  position: relative;
  height: var(--cwnav-hero-height);
  overflow: hidden;
  background-color: #c413f2;
  background-image: url("../images/hero-cosmos.jpg");
  background-position: center 43%;
  background-size: cover;
  background-blend-mode: soft-light;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(184, 8, 239, 0.56); }
.search-stage { position: relative; z-index: 2; display: grid; height: 100%; place-items: start center; padding-top: 174px; }
.hero-search { width: min(800px, calc(100% - 36px)); text-align: center; }
.scope-tabs { display: flex; width: fit-content; margin: 0 auto 11px; padding: 0; border: 0; color: #fff; }
.scope-tabs label { cursor: pointer; }
.scope-tabs input { position: absolute; opacity: 0; }
.scope-tabs span {
  position: relative;
  display: flex;
  min-width: 72px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}
.scope-tabs input:checked + span::after { position: absolute; right: 20px; bottom: 2px; left: 20px; height: 3px; border-radius: 3px; background: #fff; content: ""; }
.scope-tabs input:focus-visible + span { outline: 3px solid rgba(255, 255, 255, 0.72); outline-offset: 1px; }
.search-provider-tabs { display: flex; width: fit-content; max-width: 100%; margin: -4px auto 8px; overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 8px; background: rgba(36, 23, 49, 0.2); }
.search-provider-tabs button { min-height: 30px; padding: 3px 11px; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.24); background: transparent; color: rgba(255, 255, 255, 0.82); cursor: pointer; font-size: 12px; white-space: nowrap; }
.search-provider-tabs button:last-child { border-right: 0; }
.search-provider-tabs button.is-active { background: #fff; color: #403646; }
.search-provider-tabs button:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.76); outline-offset: -3px; }

.hero-search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  height: 52px;
  padding: 3px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(84, 11, 102, 0.18);
}
.hero-search-field input { min-width: 0; padding: 0 16px; border: 0; outline: 0; background: transparent; color: #373a40; font-size: 15px; }
.hero-search-field input::placeholder { color: #858b93; opacity: 1; }
.hero-search-field button { display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 0; border-radius: 10px; background: var(--coral); color: #fff; }
.hero-search-field button:hover { background: var(--coral-hover); }
.search-suggestions { display: flex; justify-content: center; gap: 34px; margin-top: 10px; }
.search-suggestions a { min-height: 28px; color: rgba(255, 255, 255, 0.9); font-size: 12px; text-decoration: none; }
.search-status { margin: 4px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 11px; }

.hot-strip {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 64px;
  width: min(1200px, var(--cwnav-content-width), calc(100% - 40px));
  padding: 11px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 248, 255, 0.76);
  box-shadow: 0 16px 36px rgba(78, 18, 88, 0.18);
  transform: translateX(50%);
  backdrop-filter: blur(14px);
}
.hot-strip-head { display: flex; min-height: 27px; align-items: center; justify-content: space-between; color: #5d5261; font-size: 12px; }
.hot-strip-head > span { display: inline-flex; align-items: center; gap: 6px; }
.hot-strip-head svg { width: 15px; height: 15px; }
.hot-strip-head a { padding: 2px 9px; border: 1px solid #ff6a3d; border-radius: 7px; color: #ef4b27; font-weight: 650; text-decoration: none; }
.hot-strip-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.hot-strip-grid > a,
.hot-placeholder {
  display: flex;
  min-width: 0;
  height: 50px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(132, 99, 139, 0.1);
  text-decoration: none;
}
.hot-strip-grid > a > span:last-child,
.quick-grid a > span:last-child { display: grid; min-width: 0; }
.hot-strip-grid strong,
.quick-grid strong { overflow: hidden; color: #4a454e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hot-strip-grid small,
.quick-grid small { overflow: hidden; color: #81858c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hot-placeholder { display: grid; grid-template-columns: 18px 1fr; }
.hot-placeholder i { padding: 1px 3px; border-radius: 3px; background: rgba(98, 86, 103, 0.17); color: #8b818f; font-size: 8px; font-style: normal; }
.hot-placeholder b { height: 8px; border-radius: 4px; background: rgba(98, 86, 103, 0.08); }
.mini-mark { display: grid !important; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: #eef0f4; color: #5d62a8; font-size: 12px; font-weight: 800; }
.mini-mark svg { width: 17px; height: 17px; }
.mini-mark--ad { border-radius: 6px; background: #fff0dc; color: #9b4b17; font-size: 9px; letter-spacing: 0; }

.site-announcement { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; width: min(var(--cwnav-content-width), calc(100% - 20px)); min-height: 50px; margin: 12px auto 0; padding: 8px 12px; align-items: center; border: 1px solid #cdddea; border-radius: 8px; background: #f5f9fc; color: #31526b; }
.site-announcement-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 7px; background: #dcecf7; }
.site-announcement-icon svg { width: 17px; height: 17px; }
.site-announcement > div { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.site-announcement strong { color: #243746; font-size: 13px; }
.site-announcement > div span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.site-announcement > a { display: inline-flex; min-height: 36px; align-items: center; gap: 4px; color: inherit; font-size: 12px; font-weight: 700; text-decoration: none; }
.site-announcement > a svg { width: 14px; height: 14px; }
.site-announcement--success { border-color: #c7e2d2; background: #f2faf5; color: #286043; }
.site-announcement--success .site-announcement-icon { background: #d9efe2; }
.site-announcement--warning { border-color: #ead9ac; background: #fff9e9; color: #765a16; }
.site-announcement--warning .site-announcement-icon { background: #f5e8bd; }
.site-announcement--danger { border-color: #ecc6c6; background: #fff5f5; color: #852f35; }
.site-announcement--danger .site-announcement-icon { background: #f5dada; }
html[data-theme="dark"] .site-announcement { border-color: #3f5260; background: #202c34; color: #b9d3e4; }
html[data-theme="dark"] .site-announcement strong { color: #eef5f8; }

.portal-shell {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 310px;
  align-items: start;
  gap: 14px;
  width: min(var(--cwnav-content-width), calc(100% - 20px));
  margin: 0 auto;
  padding: 18px 0 18px;
}
.category-rail {
  position: sticky;
  z-index: 20;
  top: 84px;
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 94px);
  height: calc(100dvh - 94px);
  min-height: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.category-rail.is-fixed { position: fixed; top: 84px; bottom: 10px; height: auto; }
.category-links { display: grid; flex: 1; align-content: start; gap: 2px; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.category-links > a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-collapse { display: flex; width: 100%; min-height: 45px; align-items: center; gap: 10px; margin-top: auto; padding: 0 10px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 13px; text-align: left; }
.category-collapse svg { width: 17px; height: 17px; flex: 0 0 17px; }
.category-collapse:hover { color: var(--coral); }
.rail-collapsed .portal-shell { grid-template-columns: 58px minmax(0, 1fr) 310px; }
.rail-collapsed .category-rail { padding-inline: 8px; }
.rail-collapsed .category-links > a, .rail-collapsed .category-row > a, .rail-collapsed .category-collapse { justify-content: center; padding-inline: 0; font-size: 0; }
.rail-collapsed .category-links > a > span, .rail-collapsed .category-row > a > span, .rail-collapsed .category-collapse > span { display: none; }
.rail-collapsed .category-row > button { display: none; }
.category-rail a,
.sidebar-menu a {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
}
.category-rail a:hover,
.category-rail a.is-active,
.sidebar-menu a:hover { background: var(--surface-soft); color: var(--ink-strong); }
.category-rail svg,
.sidebar-menu svg { width: 17px; height: 17px; color: var(--ink-soft); }
.category-item { position: relative; min-width: 0; }
.category-row { display: flex; min-width: 0; border-radius: 8px; }
.category-row:hover, .category-row:focus-within, .category-row:has(> button[aria-expanded="true"]) { background: var(--surface-soft); }
.category-rail .category-row > a { flex: 1; min-width: 0; padding-right: 0; }
.category-row > a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-row > button {
  display: flex;
  width: 30px;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  flex: 0 0 30px;
}
.category-row > button:hover,
.category-row > button[aria-expanded="true"] { color: var(--ink-strong); }
.category-row > button > svg { width: 15px; height: 15px; color: var(--ink-soft); transition: transform 160ms ease-out; }
.category-row > button[aria-expanded="true"] > svg { transform: rotate(90deg); }
.category-submenu {
  position: fixed;
  z-index: 30;
  display: grid;
  width: 248px;
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.category-submenu[hidden] { display: none !important; }
.category-submenu::before { position: absolute; top: 21px; left: -6px; width: 11px; height: 11px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); content: ""; transform: rotate(45deg); }
.category-submenu header { display: grid; gap: 2px; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); }
.category-submenu header strong { color: var(--ink-strong); font-size: 13px; }
.category-submenu header span { color: var(--ink-muted); font-size: 11px; }
.category-rail .category-submenu a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 54px;
  gap: 8px;
  padding: 6px 8px;
}
.category-submenu a > svg { width: 32px; height: 32px; padding: 7px; border-radius: 8px; background: var(--surface-soft); color: var(--purple); }
.category-submenu a > span { display: grid; min-width: 0; align-content: center; }
.category-submenu a strong,
.category-submenu a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-submenu a strong { color: var(--ink-strong); font-size: 12px; }
.category-submenu a small { color: var(--ink-muted); font-size: 11px; font-weight: 400; }
.category-submenu a b { align-self: center; min-width: 22px; color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.portal-main { min-width: 0; grid-column: 2; grid-row: 1; }
.widget-rail { grid-column: 3; grid-row: 1; }
.demo-notice { display: flex; min-height: 32px; align-items: center; gap: 7px; margin: 0 0 8px; padding: 0 10px; border-radius: 8px; background: #fff4d8; color: #775c19; font-size: 11px; }
.demo-notice svg { width: 14px; height: 14px; }
html[data-theme="dark"] .demo-notice { background: #3b321f; color: #efcf78; }

.market-ticker {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 22px;
  padding: 0 14px;
  overflow-x: auto;
  border-radius: 10px;
  background: #e5e8ee;
  color: #777d85;
  font-size: 11px;
  white-space: nowrap;
  scrollbar-width: none;
}
html[data-theme="dark"] .market-ticker { background: #232529; color: var(--ink-muted); }
.market-ticker span { display: inline-flex; align-items: center; gap: 5px; }
.market-ticker strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.portal-panel,
.side-widget,
.brand-widget,
.stats-widget {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.portal-panel { margin-top: 14px; padding: 13px; }
.portal-panel[id] { scroll-margin-top: 84px; }
.panel-heading,
.widget-heading { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2,
.widget-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-strong); font-size: 14px; font-weight: 720; }
.panel-heading h2 svg,
.widget-heading h2 svg { width: 17px; height: 17px; }
.panel-heading > a,
.panel-heading > span,
.widget-heading > span { color: var(--ink-muted); font-size: 11px; text-decoration: none; }
.tabbed-heading { justify-content: flex-start; gap: 9px; margin-bottom: 8px; }
.tabbed-heading h2 { flex: 0 0 auto; font-size: 16px; font-weight: 600; }
.tabbed-heading [data-module-more] { flex: 0 0 auto; margin-left: auto; font-size: 12px; }
.module-tabs { position: relative; display: flex; min-width: 0; width: max-content; max-width: 100%; align-items: center; gap: 0; overflow-x: auto; padding: 4px; border-radius: 8px; background: #e6e8ea; scrollbar-width: none; }
.module-tabs::-webkit-scrollbar { display: none; }
.module-tab-indicator { position: absolute; top: 4px; left: 0; height: 28px; border-radius: 6px; background: #d52f3d; transition: transform 200ms ease-out; pointer-events: none; }
.module-tabs:not(.is-enhanced) .module-tab-indicator { display: none; }
.module-tabs button { position: relative; z-index: 1; min-height: 28px; flex: 0 0 auto; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font-size: 14px; white-space: nowrap; }
.module-tabs button:hover { color: var(--ink-strong); }
.module-tabs button.is-active { color: #fff; }
.module-tabs:not(.is-enhanced) button.is-active { background: #d52f3d; }
[data-module-panel][hidden] { display: none !important; }
html[data-theme="dark"] .module-tabs { background: #383a3e; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; }
.compact-panel .quick-grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.quick-grid a { display: flex; min-width: 0; height: 58px; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); text-decoration: none; transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
.quick-grid a:hover { box-shadow: 0 8px 18px rgba(42, 32, 49, 0.1); transform: translateY(-2px); }
.quick-grid .mini-mark img { width: 30px; height: 30px; object-fit: contain; }
html[data-theme="dark"] .quick-grid strong,
html[data-theme="dark"] .hot-strip-grid strong { color: var(--ink-strong); }


.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
#recommend .resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cwnav-compact-cards .resource-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 7px; }
.cwnav-compact-cards .resource-main { min-height: 72px; padding-block: 9px 6px; }
.cwnav-compact-cards .resource-description { -webkit-line-clamp: 1; }
.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
.resource-card:hover { box-shadow: 0 9px 22px rgba(42, 32, 49, 0.11); transform: translateY(-2px); }
.resource-card[hidden] { display: none; }
.resource-main { display: flex; min-height: 78px; gap: 10px; padding: 12px 10px 8px; text-decoration: none; }
.resource-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: #eceef2; color: #6970a3; font-weight: 800; }
html[data-theme="dark"] .resource-icon { background: #383a3e; color: #c5b4ff; }
.resource-icon img { width: 30px; height: 30px; object-fit: contain; }
.resource-copy { min-width: 0; }
.resource-heading { display: flex; align-items: baseline; gap: 5px; }
.resource-heading strong { overflow: hidden; color: var(--ink-strong); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.route-code { display: none; }
.resource-description { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--ink-muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.resource-meta { display: flex; min-height: 34px; align-items: center; gap: 7px; padding: 3px 6px 3px 10px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 11px; }
.resource-meta > span:first-child { padding: 2px 6px; border-radius: 4px; background: rgba(243, 75, 91, 0.1); color: var(--coral); }
.resource-score { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.resource-score svg { width: 12px; height: 12px; }
.favorite-button { display: grid; width: 32px; height: 32px; margin-left: auto; padding: 0; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--ink-muted); }
.favorite-button:hover,
.favorite-button[aria-pressed="true"] { background: rgba(180, 11, 243, 0.1); color: var(--purple); }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.resource-external { display: grid; width: 32px; height: 32px; margin-left: auto; place-items: center; border-radius: 7px; color: var(--ink-muted); }
.resource-external:hover { background: rgba(46, 189, 115, 0.12); color: var(--green); }
.resource-external + .favorite-button { margin-left: 0; }

.software-card { display: flex; min-height: 239px; flex-direction: column; }
.software-main { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; gap: 12px; padding: 22px 10px 8px; text-align: center; text-decoration: none; }
.software-icon { display: grid; width: 80px; height: 80px; flex: 0 0 80px; place-items: center; border-radius: 20px; background: var(--surface); color: var(--ink-strong); font-size: 30px; font-weight: 800; }
.software-icon img { width: 64px; height: 64px; object-fit: contain; }
.software-copy { display: grid; min-width: 0; width: 100%; gap: 3px; }
.software-copy strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.software-copy small { overflow: hidden; color: var(--ink-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.software-tags { display: flex; min-height: 31px; align-items: flex-start; gap: 4px; overflow: hidden; padding: 0 10px 6px; }
.software-tags span { overflow: hidden; padding: 2px 5px; border-radius: 4px; background: var(--surface); color: var(--ink-muted); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.software-tags .software-kind { flex: 0 0 auto; background: rgba(243, 75, 91, 0.1); color: var(--coral); }
.software-meta { display: flex; min-height: 39px; align-items: center; gap: 7px; padding: 3px 6px 3px 10px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 11px; }
.software-platform { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.software-platform svg { width: 13px; height: 13px; flex: 0 0 13px; }
.software-meta .favorite-button { flex: 0 0 32px; }
.software-meta .resource-external { flex: 0 0 32px; }

.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.article-grid article { min-width: 0; }
.article-grid article > a { display: grid; grid-template-columns: 43% minmax(0, 1fr); min-height: 154px; overflow: hidden; border-radius: 8px; background: var(--surface-soft); text-decoration: none; }
.article-media { display: grid; height: 154px; place-items: center; overflow: hidden; background: #e8ebf0; color: #727982; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease-out; }
.article-grid article > a:hover .article-media img { transform: scale(1.04); }
.article-media svg { width: 32px; height: 32px; }
.article-copy { display: flex; min-width: 0; flex-direction: column; padding: 12px; }
.article-copy strong { display: -webkit-box; overflow: hidden; color: var(--ink-strong); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-copy small { display: -webkit-box; margin-top: 6px; overflow: hidden; color: var(--ink-muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-meta { display: flex; min-width: 0; align-items: center; gap: 6px; margin-top: auto; color: var(--ink-muted); font-size: 11px; }
.article-meta span { overflow: hidden; max-width: 52%; padding: 2px 5px; border-radius: 4px; background: rgba(243, 75, 91, 0.1); color: var(--coral); text-overflow: ellipsis; white-space: nowrap; }
.article-meta time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.book-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.book-grid a { min-width: 0; text-decoration: none; }
.book-cover { position: relative; display: grid; aspect-ratio: 0.72; overflow: hidden; place-items: center; border-radius: 10px; background: #565d72; color: #fff; box-shadow: inset 0 -52px 36px rgba(0, 0, 0, 0.28); }
.book-cover-1 { background: #5d4076; }
.book-cover-2 { background: #365e5a; }
.book-cover-3 { background: #81534b; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover svg { width: 28px; height: 28px; }
.book-grid strong { display: block; margin-top: 7px; overflow: hidden; color: var(--ink-strong); font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.widget-rail { position: sticky; top: 84px; display: grid; gap: 14px; }
.cwnav-home .widget-rail { position: static; }
.brand-widget { min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 18px; background-color: #660a8e; background-image: url("../images/hero-cosmos.jpg"); background-size: cover; background-blend-mode: soft-light; color: #fff; }
.brand-widget img { width: 58px; height: 58px; border-radius: 50%; background: #fff; }
.brand-widget div { display: grid; }
.brand-widget strong { font-size: 18px; }
.brand-widget span { color: rgba(255, 255, 255, 0.76); font-size: 11px; }
.stats-widget { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; background: var(--line); }
.stats-widget div { display: grid; min-height: 78px; place-items: center; align-content: center; background: var(--surface); }
.stats-widget strong { color: var(--coral); font-size: 21px; font-variant-numeric: tabular-nums; }
.stats-widget span { color: var(--ink-muted); font-size: 11px; }
.side-widget { padding: 12px; }
.side-widget ol,
.rate-list { margin: 7px 0 0; padding: 0; list-style: none; }
.side-widget li { border-top: 1px solid var(--line); }
.side-widget li a,
.rate-list li { display: flex; min-height: 39px; align-items: center; gap: 9px; color: var(--ink); font-size: 11px; text-decoration: none; }
.side-widget li a > span { width: 22px; color: var(--coral); font-weight: 750; font-variant-numeric: tabular-nums; }
.rate-list li { justify-content: space-between; }
.rate-list strong { font-variant-numeric: tabular-nums; }
.rate-list li > span { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink-muted); }
.rate-list b { width: 38px; color: var(--ink-strong); font-size: 11px; letter-spacing: 0; }
.rate-list strong { color: var(--ink-strong); font-size: 12px; }
.widget-note { margin: 7px 0 0; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 11px; }
.sidebar-ranked-list li a { min-width: 0; }
.side-widget li a > .rank-number { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 4px; background: var(--surface-soft); color: var(--ink-muted); font-size: 10px; }
.sidebar-ranked-list li:nth-child(-n+3) .rank-number { background: rgba(243, 75, 91, 0.11); color: var(--coral); }
.side-widget li a > .rank-title { width: auto; min-width: 0; overflow: hidden; color: var(--ink); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.side-widget li a:hover .rank-title, .sidebar-site-list li a:hover strong { color: var(--coral); }
.sidebar-site-list { margin: 8px 0 0; padding: 0; list-style: none; }
.sidebar-site-list li a { min-width: 0; min-height: 61px; gap: 9px; }
.side-widget li a > .site-rank-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 7px; background: var(--surface-soft); color: var(--ink-muted); }
.site-rank-icon img { width: 30px; height: 30px; object-fit: contain; }
.site-rank-icon svg { width: 17px; height: 17px; }
.side-widget li a > .site-rank-copy { display: grid; width: auto; min-width: 0; flex: 1; gap: 2px; color: var(--ink); font-weight: 400; }
.site-rank-copy strong, .site-rank-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-rank-copy strong { color: var(--ink-strong); font-size: 12px; }
.site-rank-copy small { color: var(--ink-muted); font-size: 10px; }
.side-widget li a > .site-rank-score { width: auto; flex: 0 0 auto; margin-left: auto; color: var(--coral); font-size: 11px; }
.widget-more { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 5px; margin-top: 7px; border-radius: 6px; background: var(--surface-soft); color: var(--ink); font-size: 11px; text-decoration: none; }
.widget-more:hover { color: var(--coral); }
.widget-more svg { width: 13px; height: 13px; }
.sidebar-source-tabs { display: flex; gap: 3px; margin-top: 7px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.sidebar-source-tabs a { display: grid; min-width: 44px; min-height: 44px; flex: 0 0 auto; place-items: center; padding: 0 7px; border-bottom: 2px solid transparent; color: var(--ink-muted); font-size: 11px; text-decoration: none; white-space: nowrap; }
.sidebar-source-tabs a:hover, .sidebar-source-tabs a.is-active { border-color: var(--coral); color: var(--coral); }
#hot-news { scroll-margin-top: 84px; }
.widget-empty { padding: 14px 0 4px; color: var(--ink-muted); font-size: 11px; }
.widget-empty p { margin: 0; }

/* Home sidebar follows the compact three-column directory layout. */
.cwnav-home .widget-rail { gap: 20px; align-content: start; min-width: 0; }
.widget-rail .side-widget { min-width: 0; border-radius: 12px; padding: 10px 14px; }
.overview-widget { padding: 10px !important; }
.overview-banner { position: relative; display: flex; min-height: 116px; align-items: flex-start; gap: 10px; padding: 12px 9px; overflow: hidden; border-radius: 8px; background: #3a086f; color: #fff; }
.overview-banner::after { position: absolute; top: -26px; right: -19px; width: 105px; height: 140px; transform: rotate(38deg); background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(236, 26, 208, .8) 10px 17px, transparent 17px 25px); content: ""; opacity: .65; }
.overview-logo { position: relative; z-index: 1; display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: #fff; }
.overview-logo img { width: 38px; height: 38px; object-fit: contain; }
.overview-identity { position: relative; z-index: 1; display: grid; min-width: 0; gap: 3px; padding-top: 4px; }
.overview-identity strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.overview-identity small { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.overview-links { position: absolute; z-index: 1; right: 8px; bottom: 7px; left: 8px; display: grid; grid-template-columns: repeat(4, 1fr); height: 32px; border-radius: 6px; background: rgba(255,255,255,.22); }
.overview-links a { display: grid; place-items: center; color: #fff; }
.overview-links a:hover { background: rgba(255,255,255,.17); }
.overview-links svg { width: 15px; height: 15px; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.overview-stat { display: grid; min-height: 61px; place-items: center; align-content: center; border: 1px solid #31a3ff; border-radius: 8px; background: #edf7ff; color: #218ded; }
.overview-stat:nth-child(3) { border-color: #28c884; background: #e9f9f2; color: #0aa366; }
.overview-stat:nth-child(4) { border-color: #ff4c60; background: #fff2f4; color: #f04454; }
.overview-stat-main { grid-column: 1 / -1; min-height: 62px; border-color: #ff4c60; background: #fff5f7; color: #f04454; }
.overview-stat strong { font-size: 20px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.overview-stat span { font-size: 11px; }
.rate-widget .widget-heading, .article-ranking-widget .widget-heading { border-bottom: 1px solid var(--line); }
.rate-widget .widget-heading h2 svg, .article-ranking-widget .widget-heading h2 svg { color: #ff5364; }
.widget-rail .rate-list { margin-top: 8px; }
.widget-rail .rate-list li { min-height: 25px; border: 0; font-size: 12px; }
.widget-rail .rate-list li > span { gap: 5px; }
.rate-flag { display: inline-flex; width: 17px; height: 13px; flex: 0 0 17px; align-items: center; overflow: hidden; border-radius: 2px; }
.rate-flag img { display: block; width: 17px; height: 13px; object-fit: cover; }
.widget-rail .rate-list b { width: auto; color: var(--ink-muted); font-size: 12px; font-weight: 500; }
.widget-rail .rate-list strong { color: var(--ink-muted); font-size: 12px; font-weight: 500; }
.rate-footer { display: flex; min-height: 29px; align-items: center; justify-content: space-between; gap: 5px; margin-top: 4px; color: var(--ink-muted); font-size: 10px; }
.rate-footer button, .news-footer button, .article-ranking-widget .widget-heading a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 4px; border: 0; border-radius: 14px; background: var(--surface-soft); color: var(--ink-muted); font-size: 10px; text-decoration: none; cursor: pointer; }
.rate-footer svg, .news-footer svg, .article-ranking-widget .widget-heading svg { width: 13px; height: 13px; }
.rate-converter { display: flex; align-items: end; gap: 6px; padding: 8px 0 3px; border-top: 1px solid var(--line); }
.rate-converter[hidden] { display: none; }
.rate-converter label { display: grid; min-width: 0; gap: 2px; color: var(--ink-muted); font-size: 10px; }
.rate-converter input, .rate-converter select { width: 65px; height: 28px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; }
.rate-converter output { min-width: 0; margin-left: auto; color: var(--ink-strong); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.hot-news-widget { padding-top: 5px !important; }
.news-tabs { display: flex; gap: 9px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.news-tabs::-webkit-scrollbar { display: none; }
.news-tabs button { min-height: 37px; flex: 0 0 auto; padding: 0 0 3px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.news-tabs button.is-active { border-bottom-color: #f04658; color: #ec3346; font-weight: 700; }
.news-list { height: 266px; overflow-y: auto; scrollbar-width: thin; }
.news-list:empty { height: 0; margin: 0; }
.widget-rail .sidebar-ranked-list li { border: 0; }
.widget-rail .sidebar-ranked-list li a { min-height: 29px; gap: 4px; font-size: 12px; }
.widget-rail .sidebar-ranked-list li a > .rank-number { width: 17px; height: 17px; flex-basis: 17px; font-size: 10px; font-weight: 500; }
.widget-rail .sidebar-ranked-list li a > .rank-title { width: auto; min-width: 0; flex: 1; font-size: 12px; }
.news-footer { display: flex; align-items: center; justify-content: space-between; min-height: 25px; color: var(--ink-muted); font-size: 11px; }
.news-footer a { color: inherit; text-decoration: none; }
.news-footer button { background: transparent; }
.site-ranking-widget { background: #fff3f5 !important; }
.site-ranking-head { display: flex; min-height: 33px; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1dfe3; }
.site-ranking-head h2 { display: flex; align-items: center; gap: 3px; margin: 0; color: var(--ink-strong); font-size: 13px; font-weight: 600; }
.site-ranking-head h2 svg { width: 14px; height: 14px; color: #de5363; }
.ranking-tabs { position: relative; display: flex; align-items: stretch; gap: 9px; }
.ranking-tabs button { position: relative; z-index: 1; min-height: 33px; padding: 0; border: 0; background: transparent; color: var(--ink-muted); font-size: 13px; white-space: nowrap; cursor: pointer; }
.ranking-tabs button.is-active { color: #f04454; font-weight: 700; }
.ranking-tabs .module-tab-indicator { top: auto; bottom: -1px; height: 3px; border-radius: 2px; background: #ff4058; box-shadow: 0 1px 5px #f55; }
.site-ranking-widget .sidebar-site-list { display: grid; gap: 7px; margin-top: 12px; }
.site-ranking-widget .sidebar-site-list li { border: 0; }
.site-ranking-widget .sidebar-site-list a { min-height: 61px; padding: 6px 9px; border-radius: 8px; background: rgba(230,232,235,.65); }
.site-ranking-widget .sidebar-site-list li:nth-child(2n) a { background: rgba(238,240,243,.78); }
.site-ranking-widget .sidebar-site-list li:nth-child(3n) a { background: rgba(224,226,232,.58); }
.site-ranking-widget .sidebar-site-list a > .site-rank-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 50%; background: #fff; }
.site-ranking-widget .site-rank-icon img { width: 38px; height: 38px; border-radius: 50%; }
.site-ranking-widget .site-rank-copy strong { font-size: 12px; }
.site-ranking-widget .site-rank-copy small { font-size: 11px; }
.site-ranking-widget .widget-more { min-height: 35px; margin-top: 12px; background: #ffe5e6; color: #dd541e; font-size: 12px; }
.ranking-empty { min-height: 399px; display: grid; place-items: center; margin: 0; color: var(--ink-muted); font-size: 11px; }
.article-ranking-widget .sidebar-ranked-list { margin-top: 7px; }
.article-ranking-widget .widget-heading a { background: transparent; }
html[data-theme="dark"] .site-ranking-widget { background: #32242a !important; }
html[data-theme="dark"] .site-ranking-head { border-color: var(--line); }
html[data-theme="dark"] .site-ranking-widget .sidebar-site-list a { background: var(--surface-soft); }
html[data-theme="dark"] .site-ranking-widget .widget-more { background: #442a31; }
@media (max-width: 720px) {
  .site-announcement { grid-template-columns: 30px minmax(0, 1fr); }
  .site-announcement > div { display: grid; gap: 2px; }
  .site-announcement > div span { white-space: normal; }
  .site-announcement > a { grid-column: 2; min-height: 28px; }
  .search-provider-tabs { justify-content: flex-start; }
  .cwnav-home .rate-list,
  .cwnav-home .rate-footer,
  .cwnav-home .news-list,
  .cwnav-home .article-ranking-widget .sidebar-ranked-list { padding-right: 42px; }
}

.submission-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.form-field { display: grid; gap: 5px; }
.form-field-wide,
.form-actions { grid-column: 1 / -1; }
.form-field label { color: var(--ink-muted); font-size: 11px; font-weight: 650; }
.form-field input,
.form-field textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--surface-soft); color: var(--ink); }
.form-field input:focus,
.form-field textarea:focus { border-color: #a44bd0; box-shadow: 0 0 0 3px rgba(180, 11, 243, 0.12); }
.form-field textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions p { margin: 0; color: var(--ink-muted); font-size: 11px; }
.form-actions button,
.primary-link,
.cwnav-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; }
.form-actions button:hover,
.primary-link:hover,
.cwnav-button:hover { background: var(--coral-hover); }
.honeypot { position: absolute; left: -10000px; }

.empty-state { grid-column: 1 / -1; min-height: 130px; display: grid; place-items: center; align-content: center; padding: 24px; border: 1px dashed #cfd3da; border-radius: 10px; color: var(--ink-muted); text-align: center; }
.empty-state[hidden] { display: none !important; }
.empty-state h3 { margin-bottom: 4px; color: var(--ink-strong); font-size: 14px; }
.empty-state p { margin: 0; font-size: 11px; }

.portal-bottom { display: grid; grid-column: 2 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; min-width: 0; align-items: start; }
.portal-bottom > .portal-panel { grid-column: 1; margin: 0; }
.portal-bottom > .side-widget { grid-column: 2; }
.portal-bottom .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; }
.portal-bottom .side-widget li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-bottom .widget-heading a { display: grid; width: 32px; height: 32px; place-items: center; color: var(--ink-muted); }
.portal-bottom .widget-heading a svg { width: 16px; height: 16px; }
.home-ads { display: grid; grid-column: 2 / -1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.home-ads:has(.ad-banner:only-child) { grid-template-columns: minmax(0, 1fr); }
.ad-banner { min-width: 0; }
.ad-surface { position: relative; display: flex; height: 256px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px 26px 34px; border-radius: 12px; background: #2a3038; color: #fff; box-shadow: 0 4px 7px rgba(24, 29, 37, .18); text-decoration: none; }
.ad-surface::after { position: absolute; inset: 0; background: rgba(19, 25, 33, .28); content: ""; opacity: 0; transition: opacity 160ms ease-out; }
.ad-surface:hover::after { opacity: 1; }
.ad-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.ad-headline, .ad-copy, .ad-arrow { position: relative; z-index: 1; }
.ad-headline { max-width: calc(100% - 24px); color: #55d3fb; font-size: 33px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ad-copy { max-width: calc(100% - 72px); color: #f5f8fb; font-size: 12px; font-weight: 600; }
.ad-arrow { position: absolute; right: 26px; bottom: 26px; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: #55d3fb; color: #172a35; }
.ad-arrow svg { width: 27px; height: 27px; }
.ad-surface--empty { align-items: center; justify-content: center; gap: 9px; border: 1px dashed var(--line); background: var(--surface-soft); color: var(--ink-strong); box-shadow: none; text-align: center; }
.ad-surface--empty::after { display: none; }
.ad-slot-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 10px; background: var(--surface); color: var(--ink-muted); }
.ad-slot-icon svg { width: 23px; height: 23px; }
.ad-surface--empty strong { font-size: 18px; }
.ad-surface--empty > span:last-child { color: var(--ink); font-size: 12px; }
.ad-disclosure { display: flex; min-height: 24px; justify-content: space-between; gap: 10px; padding: 3px 8px; color: var(--ink-muted); font-size: 11px; }
.ad-disclosure span:first-child { color: #1597ca; }
.ad-banner:has(.ad-surface--empty) .ad-disclosure,
.ad-banner:has(.ad-surface--empty) .ad-disclosure span:first-child { color: var(--ink); }
.site-footer { width: min(var(--cwnav-content-width), calc(100% - 20px)); margin: 0 auto 10px; border-radius: var(--radius); background: var(--surface); color: var(--ink-muted); box-shadow: var(--shadow); }
.footer-inner { display: grid; grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.45fr) auto; gap: 24px 36px; padding: 38px 26px 24px; }
.footer-brand { min-width: 0; }
.footer-identity { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-strong); font-size: 17px; text-decoration: none; }
.footer-identity img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand p { max-width: 42ch; margin: 15px 0 20px; color: var(--ink); font-size: 13px; line-height: 1.7; }
.footer-social { display: flex; gap: 7px; }
.footer-social a { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--ink); }
.footer-social a:hover { color: var(--coral); }
.footer-social svg { width: 16px; height: 16px; }
.footer-links { min-width: 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 0 17px; padding: 0; list-style: none; }
.footer-nav a, .footer-friends a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink); font-size: 13px; text-decoration: none; }
.footer-nav a:hover, .footer-friends a:hover { color: var(--coral); }
.footer-friends > strong { display: block; margin-bottom: 10px; color: var(--ink-strong); font-size: 13px; }
.footer-friends > div { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-friends a { color: var(--ink-muted); }
.footer-codes { display: flex; gap: 16px; }
.footer-codes figure { width: 88px; margin: 0; text-align: center; }
.footer-codes img { width: 88px; height: 88px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; object-fit: contain; }
.footer-qr { display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #262a30; }
.footer-qr img { border: 0; }
.footer-qr svg { width: 42px; height: 42px; }
.footer-codes figcaption { margin-top: 5px; font-size: 11px; }
.footer-legal { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 5px 16px; margin-top: 9px; color: var(--ink-muted); font-size: 11px; }
.footer-legal a { color: inherit; }

.floating-tools { position: fixed; z-index: 45; right: 12px; bottom: 22px; display: grid; gap: 7px; }
.floating-tools button,
.floating-tools a { border: 1px solid rgba(255, 255, 255, 0.64); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.ai-panel { position: fixed; z-index: 70; right: 62px; bottom: 22px; width: min(340px, calc(100% - 84px)); padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.ai-panel > header { display: flex; align-items: center; justify-content: space-between; }
.ai-panel > header div { display: grid; }
.ai-panel > header span { color: var(--ink-muted); font-size: 11px; }
.ai-panel p { margin: 13px 0; color: var(--ink-muted); font-size: 12px; }
.ai-panel > div:last-child { display: grid; gap: 7px; }
.ai-panel > div:last-child a { padding: 9px 10px; border-radius: 8px; background: var(--surface-soft); font-size: 11px; text-decoration: none; }

.command-dialog { width: min(620px, calc(100% - 30px)); padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.command-dialog::backdrop { background: rgba(17, 10, 21, 0.64); backdrop-filter: blur(4px); }
.command-head { display: flex; min-height: 56px; align-items: center; justify-content: space-between; padding: 8px 10px 8px 17px; border-bottom: 1px solid var(--line); }
.command-head label { font-weight: 720; }
.command-dialog > input { width: calc(100% - 30px); margin: 15px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.command-results { max-height: 340px; overflow-y: auto; padding: 0 15px 15px; }
.command-results p { color: var(--ink-muted); font-size: 11px; }
.command-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 11px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.command-results small { color: var(--ink-muted); }

.auth-dialog { width: min(460px, calc(100% - 24px)); max-height: min(760px, calc(100dvh - 24px)); padding: 0; overflow: auto; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.auth-dialog::backdrop { background: rgba(17, 10, 21, 0.68); backdrop-filter: blur(5px); }
.auth-shell { padding: 18px; }
.auth-head { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 16px; }
.auth-brand { display: flex; min-width: 0; align-items: center; gap: 10px; }
.auth-brand img { width: 44px; height: 44px; border-radius: 10px; background: #fff; }
.auth-brand > span { display: grid; min-width: 0; }
.auth-brand strong { color: var(--ink-strong); font-size: 17px; }
.auth-brand small { color: var(--ink-muted); font-size: 11px; }
.auth-preview-note { display: flex; min-height: 38px; align-items: center; gap: 7px; margin: 14px 0 10px; padding: 7px 9px; border-radius: 8px; background: #fff4d8; color: #775c19; font-size: 11px; }
.auth-preview-note svg { width: 15px; height: 15px; flex: 0 0 auto; }
html[data-theme="dark"] .auth-preview-note { background: #3b321f; color: #efcf78; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 14px 0 16px; padding: 4px; border-radius: 10px; background: var(--surface-soft); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font-weight: 700; }
.auth-tabs button:hover { color: var(--ink-strong); }
.auth-tabs button.is-active { background: var(--surface); color: var(--ink-strong); box-shadow: 0 4px 12px rgba(42, 32, 49, 0.08); }
.auth-panel[hidden],
.auth-signed-in[hidden] { display: none !important; }
.auth-panel form { display: grid; gap: 13px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { color: var(--ink-strong); font-size: 12px; font-weight: 650; }
.auth-field input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-soft); color: var(--ink-strong); }
.auth-field input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(180, 11, 243, 0.1); }
.auth-field input::placeholder { color: var(--ink-muted); }
.auth-options { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-muted); font-size: 11px; }
.auth-options label,
.auth-consent { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 11px; }
.auth-options input,
.auth-consent input { width: 16px; height: 16px; accent-color: var(--coral); }
.auth-link { min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--purple); font-size: 11px; text-decoration: none; }
.auth-submit { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; background: var(--coral); color: #fff; font-weight: 720; }
.auth-submit:hover { background: var(--coral-hover); }
.auth-submit svg { width: 17px; height: 17px; }
.auth-status { min-height: 18px; margin: 10px 0 0; color: var(--ink-muted); font-size: 11px; text-align: center; }
.auth-guidance { margin: 0; color: var(--ink-muted); font-size: 11px; }
.auth-registration-closed { display: grid; min-height: 190px; place-items: center; align-content: center; padding: 20px; color: var(--ink-muted); text-align: center; }
.auth-registration-closed svg { width: 30px; height: 30px; margin-bottom: 8px; color: var(--ink-soft); }
.auth-registration-closed strong { color: var(--ink-strong); font-size: 14px; }
.auth-registration-closed p { max-width: 30ch; margin: 5px 0 0; font-size: 11px; }
.auth-signed-in { display: grid; justify-items: center; padding: 30px 12px 10px; text-align: center; }
.auth-avatar { display: grid; width: 68px; height: 68px; margin-bottom: 12px; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; font-size: 24px; font-weight: 800; }
.auth-signed-in > div { display: grid; }
.auth-signed-in > div strong { color: var(--ink-strong); font-size: 17px; }
.auth-signed-in > div small { color: var(--ink-muted); font-size: 11px; }
.auth-signed-in p { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0; color: var(--ink-muted); font-size: 11px; }
.auth-signed-in p svg { width: 16px; height: 16px; color: var(--green); }

.toast { position: fixed; z-index: 90; right: 18px; bottom: 18px; max-width: min(360px, calc(100% - 36px)); padding: 11px 15px; border-radius: 9px; background: #2d2231; color: #fff; box-shadow: var(--shadow-float); font-size: 12px; pointer-events: none; opacity: 0; transform: translateY(10px); transition: opacity 180ms ease-out, transform 180ms ease-out; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.mobile-drawer,
.page-scrim { display: none; }

.content-page,
.single-entry,
.cwnav-account { max-width: 1040px; margin: 100px auto 40px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.content-page-heading,
.single-entry > header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.content-page-heading h1,
.single-entry h1 { margin-bottom: 7px; color: var(--ink-strong); font-size: 30px; }
.post-index article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-index h2 { margin: 4px 0; font-size: 18px; }
.post-index h2 a { text-decoration: none; }
.post-index p,
.entry-deck { color: var(--ink-muted); }
.entry-content { max-width: 72ch; margin: 30px 0; font-size: 16px; }
.entry-media img { width: 100%; border-radius: 12px; }
.cwnav-account > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cwnav-account dl { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.cwnav-account dl > div { padding: 16px; border-right: 1px solid var(--line); }
.cwnav-account dl > div:last-child { border-right: 0; }
.cwnav-account dt { color: var(--ink-muted); font-size: 11px; }
.cwnav-account dd { margin: 4px 0 0; color: var(--ink-strong); font-size: 18px; font-weight: 750; }

.directory-page,
.detail-page,
.article-page,
.standard-page,
.submit-page { width: min(var(--cwnav-content-width), calc(100% - 32px)); margin: 92px auto 36px; }

.breadcrumbs { display: flex; min-height: 38px; align-items: center; gap: 6px; overflow: hidden; color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs span { overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs svg { width: 13px; height: 13px; flex: 0 0 auto; }
.eyebrow { color: var(--coral); font-size: 11px; font-weight: 750; }

.directory-hero { display: grid; min-height: 184px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; padding: 20px 28px 26px; overflow: hidden; border-radius: 12px; background: #27252a; color: #fff; box-shadow: var(--shadow); }
.directory-hero .breadcrumbs { grid-column: 1 / -1; align-self: start; color: rgba(255, 255, 255, 0.58); }
.directory-hero .breadcrumbs a { color: rgba(255, 255, 255, 0.74); }
.directory-hero h1 { margin: 4px 0 7px; font-size: 30px; }
.directory-hero p { max-width: 720px; margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 12px; }
.directory-hero > strong { display: grid; min-width: 94px; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.16); color: #ff5d6e; font-size: 32px; line-height: 1; text-align: right; }
.directory-hero > strong small { margin-top: 7px; color: rgba(255, 255, 255, 0.58); font-size: 10px; font-weight: 500; }

.directory-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.directory-filter { position: sticky; top: 84px; align-self: start; padding: 10px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.filter-title { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--ink-strong); }
.directory-filter > a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; padding: 0 10px; border-radius: 7px; color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.directory-filter > a:hover,
.directory-filter > a.is-active { background: var(--surface-soft); color: var(--coral); }
.directory-filter a b { color: var(--ink-muted); font-size: 10px; font-weight: 600; }
.directory-results { min-width: 0; padding: 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.directory-toolbar { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.directory-toolbar > div { display: grid; }
.directory-toolbar strong { color: var(--ink-strong); font-size: 15px; }
.directory-toolbar span { color: var(--ink-muted); font-size: 10px; }
.directory-toolbar form { display: flex; width: min(300px, 48%); }
.directory-toolbar input { min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-right: 0; border-radius: 7px 0 0 7px; background: var(--surface-soft); }
.directory-toolbar button { display: grid; width: 40px; height: 38px; place-items: center; border: 0; border-radius: 0 7px 7px 0; background: var(--coral); color: #fff; }
.archive-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.navigation.pagination { margin-top: 18px; }
.nav-links { display: flex; justify-content: center; gap: 5px; }
.page-numbers { display: grid; min-width: 38px; height: 38px; padding: 0 10px; place-items: center; border-radius: 7px; background: var(--surface-soft); text-decoration: none; }
.page-numbers.current { background: var(--coral); color: #fff; }

.detail-layout,
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.detail-main,
.article-main { min-width: 0; overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.resource-detail-head { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 26px; border-bottom: 1px solid var(--line); }
.detail-icon { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: #68709c; font-size: 26px; font-weight: 800; }
.detail-icon img { width: 56px; height: 56px; object-fit: contain; }
.detail-kicker { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); font-size: 10px; }
.detail-kicker span { padding: 2px 6px; border-radius: 4px; background: rgba(46, 189, 115, 0.12); color: #1c9256; }
.detail-title h1 { margin: 5px 0 5px; color: var(--ink-strong); font-size: 26px; }
.detail-title > p { max-width: 680px; margin: 0; color: var(--ink-muted); font-size: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.detail-tags a { padding: 3px 7px; border-radius: 5px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10px; text-decoration: none; }
.detail-actions { display: grid; min-width: 130px; gap: 7px; }
.secondary-action { display: inline-flex; width: auto; min-height: 40px; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-soft); }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 14px 26px; border-bottom: 1px solid var(--line); }
.detail-facts > div { padding: 3px 14px; border-left: 1px solid var(--line); }
.detail-facts > div:first-child { padding-left: 0; border-left: 0; }
.detail-facts dt { color: var(--ink-muted); font-size: 10px; }
.detail-facts dd { margin: 3px 0 0; overflow: hidden; color: var(--ink-strong); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.detail-content,
.article-content { max-width: 820px; padding: 28px 34px; color: var(--ink); font-size: 15px; line-height: 1.9; }
.detail-content h2,
.article-content h2 { margin: 28px 0 10px; color: var(--ink-strong); font-size: 21px; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3,
.article-content h3 { color: var(--ink-strong); font-size: 17px; }
.detail-content a,
.article-content a { color: #2478c7; }
.detail-content img,
.article-content img { height: auto; border-radius: 8px; }
.detail-notice { display: flex; gap: 12px; margin: 0 34px 28px; padding: 14px; border: 1px solid #dae6df; border-radius: 8px; background: #f3faf6; color: #31704e; }
html[data-theme="dark"] .detail-notice { border-color: #315341; background: #203229; color: #95cfad; }
.detail-notice p { margin: 2px 0 0; font-size: 11px; }
.related-section { padding: 0 26px 26px; }
.section-title { display: flex; min-height: 52px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.section-title h2 { margin: 0; color: var(--ink-strong); font-size: 16px; }
.section-title a { color: var(--ink-muted); font-size: 11px; }
.detail-sidebar,
.article-sidebar { display: grid; align-content: start; gap: 12px; }
.detail-sidebar section,
.article-sidebar section { padding: 16px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.sidebar-label { display: block; margin-bottom: 10px; color: var(--ink-muted); font-size: 10px; font-weight: 700; }
.status-good { display: flex; align-items: center; gap: 6px; color: #238653; font-size: 13px; }
.detail-sidebar section > p,
.article-sidebar section > p { margin: 7px 0 0; color: var(--ink-muted); font-size: 10px; }
.domain-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; color: var(--ink-strong); font-size: 12px; font-weight: 700; text-decoration: none; }
.detail-sidebar ol,
.article-sidebar ol { margin: 0; padding: 0; list-style: none; }
.detail-sidebar li,
.article-sidebar li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 39px; border-top: 1px solid var(--line); }
.detail-sidebar li b,
.article-sidebar li b { color: var(--coral); font-size: 11px; }
.detail-sidebar li a,
.article-sidebar li a { overflow: hidden; color: var(--ink); font-size: 11px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }

.article-main > header { padding: 34px 38px 26px; border-bottom: 1px solid var(--line); }
.article-main h1 { max-width: 820px; margin: 6px 0 12px; color: var(--ink-strong); font-size: 32px; line-height: 1.3; }
.article-main header > p { max-width: 760px; margin: 15px 0 0; color: var(--ink-muted); }
.article-byline { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-muted); font-size: 10px; }
.article-byline span { display: inline-flex; align-items: center; gap: 5px; }
.article-byline svg { width: 14px; height: 14px; }
.article-cover { margin: 0; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-footer { margin: 0 34px 22px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 10px; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 26px 26px; }
.post-nav > a { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 8px; background: var(--surface-soft); text-decoration: none; }
.post-nav span { display: grid; font-size: 10px; }
.post-nav small { max-width: 240px; overflow: hidden; color: var(--ink-strong); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.article-sidebar section > a { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--coral); font-size: 11px; text-decoration: none; }

.search-toolbar { margin: 16px 0; padding: 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.search-toolbar form { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 8px; }
.search-toolbar input,
.search-toolbar select,
.submit-card select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.search-toolbar button { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--coral); color: #fff; }
.search-page .search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.search-article { padding: 16px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.search-article > span { color: var(--coral); font-size: 10px; }
.search-article h2 { margin: 5px 0; font-size: 16px; }
.search-article h2 a { text-decoration: none; }
.search-article p { color: var(--ink-muted); font-size: 11px; }
.search-article > a { display: inline-flex; align-items: center; gap: 5px; color: var(--coral); font-size: 11px; text-decoration: none; }

.article-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.article-index-grid article { overflow: hidden; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.article-index-grid article > a { display: block; text-decoration: none; }
.article-index-grid img,
.article-placeholder { display: grid; width: 100%; aspect-ratio: 1.9; place-items: center; background: #dde2e9; object-fit: cover; color: #89919b; }
.article-placeholder svg { width: 36px; height: 36px; }
.article-index-grid article div { padding: 15px; }
.article-index-grid article div > span { color: var(--ink-muted); font-size: 10px; }
.article-index-grid h2 { margin: 6px 0; color: var(--ink-strong); font-size: 17px; }
.article-index-grid p { color: var(--ink-muted); font-size: 11px; }
.article-index-grid b { display: inline-flex; align-items: center; gap: 5px; color: var(--coral); font-size: 11px; }

.standard-page { max-width: 1040px; }
.standard-page > article { padding: 28px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.standard-page article > header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.standard-page h1,
.submit-page h1 { margin: 5px 0 7px; color: var(--ink-strong); font-size: 30px; }
.standard-content { padding-top: 22px; }
.submit-page > header { padding: 24px 28px; border-radius: 10px; background: #29272c; color: #fff; }
.submit-page > header h1 { color: #fff; }
.submit-page > header p { max-width: 700px; margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 12px; }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 16px; }
.submit-card { padding: 24px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.submit-guide { display: grid; align-content: start; gap: 10px; }
.submit-guide section { display: flex; gap: 12px; padding: 16px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.submit-guide section > svg { flex: 0 0 auto; color: var(--coral); }
.submit-guide strong { color: var(--ink-strong); font-size: 12px; }
.submit-guide p { margin: 3px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.5; }
.not-found-page { display: grid; min-height: calc(100vh - 100px); place-items: center; align-content: center; padding: 90px 20px 40px; text-align: center; }
.not-found-page > span { color: var(--coral); font-size: 72px; font-weight: 800; }
.not-found-page h1 { margin-bottom: 5px; color: var(--ink-strong); }
.not-found-page p { color: var(--ink-muted); }
.not-found-page form { display: flex; width: min(440px, 100%); margin: 12px 0; }
.not-found-page input { min-width: 0; flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 7px 0 0 7px; background: var(--surface); }
.not-found-page button { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 0 7px 7px 0; background: var(--coral); color: #fff; }

@keyframes hero-arrive {
  from { opacity: 0.72; clip-path: inset(0 0 18% 0); filter: saturate(0.82); }
  to { opacity: 1; clip-path: inset(0); filter: saturate(1); }
}
.search-hero { animation: hero-arrive 620ms cubic-bezier(0.16, 1, 0.3, 1) both; }

@media (max-width: 1240px) {
  .topbar { gap: 12px; }
  .topnav a { padding-inline: 7px; }
  .topbar-clock { display: none; }
  .portal-shell { grid-template-columns: 132px minmax(0, 1fr) 270px; }
  .rail-collapsed .portal-shell { grid-template-columns: 58px minmax(0, 1fr) 270px; }
  .portal-bottom { grid-template-columns: minmax(0, 1fr) 270px; }
  .portal-bottom .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr); }
  .footer-codes { grid-column: 2; }
  .quick-grid,
  .compact-panel .quick-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (max-width: 980px) {
  body.nav-open { overflow: hidden; }
  .topnav { display: none; }
  .menu-toggle { display: inline-grid; }
  .topbar { justify-content: space-between; }
  .topbar .brand { position: absolute; left: 50%; min-width: auto; transform: translateX(-50%); }
  .topbar .brand small { display: none; }
  .topbar-actions { margin-left: 0; }
  .topbar-actions .member-menu,
  .topbar-actions .member-button,
  .topbar-actions [data-theme-toggle] { display: none; }
  .portal-shell { grid-template-columns: 128px minmax(0, 1fr); }
  .rail-collapsed .portal-shell { grid-template-columns: 58px minmax(0, 1fr); }
  .portal-bottom { grid-column: 2; grid-row: 3; grid-template-columns: minmax(0, 1fr); }
  .home-ads { grid-column: 2; grid-row: 4; }
  .portal-bottom > .side-widget { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-codes { grid-column: 1 / -1; }
  #recommend .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .widget-rail { position: static; grid-column: 2; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-top: 14px; }
  .widget-rail > .brand-widget, .widget-rail > .stats-widget { grid-column: span 1; }
  .archive-resource-grid,
  .search-page .search-results,
  .article-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout,
  .article-layout,
  .submit-layout { grid-template-columns: 1fr; }
  .detail-sidebar,
  .article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hot-strip-grid > :nth-child(n + 4) { display: none; }
  .software-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-drawer { position: fixed; z-index: 80; inset: 0 auto 0 0; display: flex; width: min(300px, calc(100% - 48px)); flex-direction: column; gap: 24px; padding: 20px 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); transform: translateX(-102%); transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1); }
  .mobile-drawer nav { margin-top: 8px; }
  .sidebar-menu { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
  .mobile-drawer > .member-button { margin-top: auto; justify-content: center; }
  body.nav-open .mobile-drawer { transform: translateX(0); }
  .page-scrim { position: fixed; z-index: 75; inset: 0; background: rgba(18, 12, 21, 0.6); }
  body.nav-open .page-scrim { display: block; }
}

@media (max-width: 720px) {
  .topbar { height: 60px; padding: 0 9px; }
  .topbar .brand img { width: 38px; height: 38px; }
  .topbar .brand strong { font-size: 15px; }
  .topbar-actions .icon-button { width: 44px; height: 44px; }
  .menu-toggle { width: 44px; height: 44px; }

  .search-hero { height: 525px; background-position: 55% center; }
  .search-stage { padding-top: 124px; }
  .hero-search { width: calc(100% - 20px); }
  .scope-tabs { width: 100%; justify-content: space-between; }
  .scope-tabs label { flex: 1; }
  .scope-tabs span { min-width: 0; min-height: 44px; font-size: 14px; }
  .scope-tabs input:checked + span::after { right: 12px; left: 12px; }
  .hero-search-field { height: 50px; grid-template-columns: minmax(0, 1fr) 46px; }
  .hero-search-field button { width: 44px; height: 44px; }
  .search-suggestions { gap: 25px; }
  .search-suggestions a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .hot-strip-head a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .hot-strip { bottom: 30px; width: calc(100% - 20px); padding: 10px; }
  .hot-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hot-strip-grid > a { height: 50px; padding: 6px; }
  .hot-strip-grid .mini-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .hot-strip-grid small { display: none; }

  .portal-shell { display: block; width: 100%; padding: 10px 10px 30px; }
  .portal-bottom { display: block; width: 100%; margin-top: 10px; }
  .portal-bottom .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .home-ads { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .ad-surface { height: 188px; padding: 30px 18px 24px; }
  .ad-headline { font-size: 23px; }
  .ad-arrow { right: 18px; bottom: 18px; width: 44px; height: 44px; }
  .category-rail { display: none; }
  .widget-rail { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .demo-notice { margin-top: 0; }
  .market-ticker { gap: 15px; margin-inline: 0; }
  .market-ticker > span:nth-child(n + 5) { display: none; }
  .portal-panel { margin-top: 10px; padding: 10px; }
  .panel-heading { align-items: flex-start; }
  .tabbed-heading { flex-wrap: wrap; }
  .tabbed-heading h2 { order: 0; }
  .tabbed-heading [data-module-more] { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: flex-end; order: 1; }
  .tabbed-heading .module-tabs { order: 2; width: max-content; max-width: 100%; }
  .module-tabs button { min-height: 44px; }
  .module-tab-indicator { height: 44px; }
  .quick-grid,
  .compact-panel .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .quick-grid a { height: 62px; padding: 7px; }
  .resource-grid,
  .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  #recommend .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-main { min-height: 82px; padding: 10px 8px 7px; }
  .resource-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .resource-heading strong { font-size: 11px; }
  .resource-description { -webkit-line-clamp: 2; }
  .resource-meta { min-height: 44px; padding-right: 3px; }
  .favorite-button { width: 44px; height: 44px; }
  .software-card { min-height: 226px; }
  .software-main { gap: 9px; padding-top: 16px; }
  .software-icon { width: 68px; height: 68px; flex-basis: 68px; border-radius: 16px; }
  .software-icon img { width: 54px; height: 54px; }
  .software-copy strong { font-size: 11px; }
  .software-tags { padding-inline: 6px; }
  .software-tags span:last-child { display: none; }
  .software-meta { gap: 4px; padding-left: 6px; }
  .software-platform { font-size: 0; }
  .software-meta .favorite-button { flex-basis: 44px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid article > a { min-height: 132px; }
  .article-media { height: 132px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .submission-form { grid-template-columns: 1fr; }
  .form-actions { display: grid; }
  .form-actions button { min-height: 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 23px; padding: 25px 18px; }
  .footer-codes { grid-column: auto; }
  .footer-legal { grid-column: auto; }
  .footer-social a { width: 44px; height: 44px; }
  .footer-nav a, .footer-friends a { min-height: 44px; }
  .floating-tools { right: 8px; bottom: 12px; }
  .floating-tools button,
  .floating-tools a { width: 44px; height: 44px; }
  .content-page,
  .single-entry,
  .cwnav-account { margin: 82px 10px 24px; padding: 16px; }
  .auth-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .auth-shell { padding: 14px; }
  .auth-tabs button,
  .auth-link,
  .auth-options label,
  .auth-consent { min-height: 44px; }
  .cwnav-account dl { grid-template-columns: 1fr; }
  .cwnav-account dl > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .directory-page,
  .detail-page,
  .article-page,
  .standard-page,
  .submit-page { width: calc(100% - 20px); margin-top: 78px; }
  .directory-hero { min-height: 166px; grid-template-columns: 1fr; gap: 12px; padding: 14px 17px 18px; }
  .directory-hero h1 { font-size: 24px; }
  .directory-hero > strong { display: none; }
  .directory-layout { grid-template-columns: 1fr; }
  .directory-filter { position: static; display: flex; overflow-x: auto; gap: 5px; padding: 6px; scrollbar-width: none; }
  .directory-filter .filter-title { display: none; }
  .directory-filter > a { min-width: max-content; min-height: 42px; margin: 0; }
  .directory-filter a b { display: none; }
  .directory-results { padding: 10px; }
  .directory-toolbar { align-items: flex-start; }
  .directory-toolbar form { width: 54%; }
  .archive-resource-grid,
  .search-page .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .resource-detail-head { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 18px 14px; }
  .detail-icon { width: 58px; height: 58px; }
  .detail-title h1 { font-size: 21px; }
  .detail-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .detail-facts { grid-template-columns: repeat(2, 1fr); padding: 10px 14px; }
  .detail-facts > div { padding: 8px; border-bottom: 1px solid var(--line); }
  .detail-content,
  .article-content { padding: 22px 18px; font-size: 14px; }
  .detail-notice { margin: 0 18px 22px; }
  .related-section { padding: 0 14px 18px; }
  .detail-sidebar,
  .article-sidebar { grid-template-columns: 1fr; }
  .article-main > header { padding: 24px 18px; }
  .article-main h1 { font-size: 25px; }
  .article-footer { margin-inline: 18px; }
  .post-nav { grid-template-columns: 1fr; padding-inline: 14px; }
  .search-toolbar form { grid-template-columns: 1fr; }
  .search-toolbar button { justify-content: center; }
  .article-index-grid { grid-template-columns: 1fr; }
  .standard-page > article,
  .submit-card { padding: 18px; }
}

@media (max-width: 420px) {
  .topbar .brand { min-width: auto; }
  .topbar .brand > span { display: grid; }
  .hot-strip-grid { gap: 4px; }
  .hot-strip-grid strong { font-size: 11px; }
  .quick-grid strong { font-size: 11px; }
  .quick-grid small { font-size: 11px; }
  .archive-resource-grid,
  .search-page .search-results { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Secondary pages share the portal's content rhythm, while each keeps its own task layout. */
.account-menu { position: relative; }
.account-menu .member-button { cursor: pointer; }
.account-menu .member-button svg:last-child { width: 12px; height: 12px; }
.account-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 300px; padding: 9px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.account-menu.is-open .account-menu-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.account-menu-panel a { text-decoration: none; }
.account-menu-profile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; background: #248bf3; color: #fff; }
.account-menu-profile > svg { width: 34px; height: 34px; }
.account-menu-profile span { display: grid; }
.account-menu-profile strong { font-size: 14px; }
.account-menu-profile small { color: #eff7ff; font-size: 11px; }
.account-menu-membership { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; margin: 8px 0; border-radius: 7px; background: #392b31; color: #ffebd1; font-size: 12px; }
.account-menu-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.account-menu-links a { display: grid; min-height: 38px; place-items: center; border-radius: 6px; background: #eaf3ff; color: #176abd; font-size: 11px; }
.account-menu-links a:nth-child(2) { background: #e8faed; color: #217845; }
.account-menu-links a:nth-child(3) { background: #fff1e8; color: #aa561a; }
.account-trigger, .language-trigger { width: 40px; height: 40px; }
.account-trigger:hover, .language-trigger:hover { background: rgba(255, 255, 255, 0.6); }
.account-menu-panel { right: -240px; width: 300px; padding: 8px; }
.account-menu-profile { min-height: 59px; gap: 9px; padding: 8px 11px; }
.account-menu-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 2px solid rgba(255,255,255,0.78); border-radius: 50%; background: rgba(255,255,255,0.88); color: #3671b9; font-size: 16px; font-weight: 750; }
.account-menu-avatar svg { width: 24px; height: 24px; }
.account-menu-membership { min-height: 36px; margin: 7px 0; }
.account-menu-membership svg { width: 14px; height: 14px; }
.account-menu-links a { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 4px; }
.account-menu-links svg { width: 13px; height: 13px; }
.account-menu-signed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.account-menu-signed a, .account-menu-signed button { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 6px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; }
.account-menu-signed .account-menu-admin { grid-column: 1 / -1; background: #eaf3ff; color: #176abd; }
.account-menu-signed svg { width: 15px; height: 15px; }
.account-menu-signed[hidden], .account-menu-panel [hidden] { display: none !important; }
.language-menu { position: relative; }
.language-current, .locale-flag { display: block; width: 20px; height: 15px; flex: 0 0 20px; border-radius: 2px; object-fit: cover; }
.language-menu-panel { position: absolute; top: calc(100% + 10px); right: -78px; display: grid; width: 170px; padding: 6px; border-radius: 9px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.language-menu.is-open .language-menu-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.language-menu-panel button { display: flex; min-height: 34px; align-items: center; gap: 9px; padding: 3px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.language-menu-panel button:hover, .language-menu-panel button[aria-current="true"] { background: var(--surface-soft); color: var(--coral); }
.language-menu-panel small { padding: 7px 10px 2px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 10px; }
.drawer-languages { display: grid; gap: 7px; margin-top: auto; color: var(--ink-muted); font-size: 12px; }
.drawer-languages > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.drawer-languages button { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
.drawer-languages .locale-flag { width: 18px; height: 13.5px; flex-basis: 18px; }
.drawer-languages button[aria-current="true"] { border-color: var(--coral); color: var(--coral); }
.mobile-drawer .drawer-auth-links, .mobile-drawer > .member-button { margin-top: 0; }

.command-dialog { top: 78px; bottom: auto; width: min(1024px, calc(100% - 24px)); max-height: calc(100dvh - 90px); margin: 0 auto; border-radius: 10px; background: var(--surface); }
.command-dialog::backdrop { background: rgba(27, 16, 42, 0.62); backdrop-filter: blur(3px); }
.command-shell { position: relative; padding: 15px; }
.command-close { position: absolute; top: 19px; right: 15px; width: 42px; height: 42px; }
.command-search-form { display: grid; height: 54px; grid-template-columns: 118px minmax(0, 1fr) 48px; gap: 0; margin-right: 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.command-search-form select, .command-search-form input { min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink-strong); font: inherit; }
.command-search-form select { padding: 0 12px; border-right: 1px solid var(--line); cursor: pointer; }
.command-search-form input { padding: 0 15px; outline-offset: -3px; }
.command-search-form button { display: grid; margin: 4px; place-items: center; border: 0; border-radius: 6px; background: var(--coral); color: #fff; cursor: pointer; }
.command-search-form button svg { width: 18px; height: 18px; }
.command-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 36%); gap: 16px; margin-top: 14px; }
.command-discovery { min-height: 286px; padding: 15px; border-radius: 8px; background: var(--surface-soft); }
.command-discovery h3, .command-ranking h3 { margin: 0 0 11px; color: var(--ink-strong); font-size: 13px; }
.command-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.command-keywords button { min-height: 33px; padding: 5px 12px; border: 0; border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.command-keywords button:hover { color: var(--coral); }
.command-results[hidden], .command-ranking ol[hidden] { display: none; }
.command-results { max-height: 315px; padding: 0; }
.command-results p { margin: 3px 0; font-size: 12px; }
.command-results a { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 6px; }
.command-results a:hover { color: var(--coral); }
.command-ranking { min-width: 0; padding: 15px; border-radius: 8px; background: var(--surface-soft); }
.command-ranking header { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.command-rank-tabs { display: flex; flex: 0 0 auto; }
.command-rank-tabs button { min-height: 30px; padding: 4px 6px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-muted); font: inherit; font-size: 11px; cursor: pointer; }
.command-rank-tabs button.is-active { color: var(--coral); font-weight: 750; }
.command-ranking ol { min-height: 218px; margin: 0; padding: 0; list-style: none; }
.command-ranking li { display: grid; min-height: 34px; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 5px; border-bottom: 1px solid var(--line); font-size: 12px; }
.command-ranking li b { color: var(--coral); }
.command-ranking li a { overflow: hidden; color: var(--ink); text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }
.command-ranking li a:hover { color: var(--coral); }
.command-ranking .command-rank-empty { display: block; padding: 20px 2px; color: var(--ink-muted); }
.command-rank-more { display: flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; border-radius: 6px; background: var(--surface); color: var(--coral); font-size: 12px; text-decoration: none; }
.command-rank-more svg { width: 14px; height: 14px; }
@media (max-width: 980px) { .topbar-actions .account-menu, .topbar-actions .language-menu { display: none; } }
@media (min-width: 981px) { .drawer-languages { display: none; } }
@media (max-width: 720px) {
  .command-dialog { top: 72px; width: calc(100% - 20px); max-height: calc(100dvh - 82px); }
  .command-shell { padding: 10px; }
  .command-close { top: 11px; right: 10px; }
  .command-search-form { height: 50px; grid-template-columns: 84px minmax(0, 1fr) 45px; margin-right: 42px; }
  .command-search-form select { padding-inline: 5px; font-size: 12px; }
  .command-search-form input { padding-inline: 8px; font-size: 12px; }
  .command-body { grid-template-columns: 1fr; gap: 10px; }
  .command-discovery { min-height: 100px; padding: 12px; }
  .command-ranking { padding: 12px; }
  .command-ranking ol { min-height: 0; }
}
.drawer-auth-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: auto; }
.drawer-auth-links a { display: grid; min-height: 44px; place-items: center; border-radius: 7px; background: var(--surface-soft); color: var(--ink-strong); font-size: 11px; text-decoration: none; }

body.cwnav-auth-page { background: #a50cb3; }
.auth-page { display: grid; min-height: 100dvh; align-content: center; justify-items: center; padding: 30px 16px; }
.auth-page-shell { display: grid; width: min(1080px, 100%); min-height: 450px; grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr); gap: 30px; padding: 12px; border-radius: 12px; background: #f7d2f7; color: #3f3a43; }
.auth-page-brand { display: flex; min-height: 426px; flex-direction: column; justify-content: space-between; padding: 30px; border-radius: 8px; background: linear-gradient(90deg, rgba(52, 23, 112, 0.9), rgba(102, 28, 142, 0.38)), url('../images/hero-cosmos.jpg') center / cover; color: #fff; }
.auth-page-brand a { display: flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.auth-page-brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 9px; background: #fff; }
.auth-page-brand span { display: grid; }
.auth-page-brand strong { font-size: 25px; }
.auth-page-brand small { color: #e6d7ee; font-size: 12px; }
.auth-page-brand p { max-width: 24ch; margin: 0; font-size: 24px; font-weight: 700; line-height: 1.5; }
.auth-page-form { align-self: center; padding: 26px 22px 20px 0; }
.auth-page-form h1 { margin: 0 0 22px; font-size: 24px; }
.auth-page-form form { display: grid; gap: 12px; }
.auth-page-form form > input:not([type='hidden']) { width: 100%; min-height: 40px; padding: 0 13px; border: 1px solid transparent; border-radius: 6px; outline: 0; background: #fff; color: #30323a; }
.auth-page-form form > input:focus { border-color: #a50cb3; box-shadow: 0 0 0 3px rgba(165, 12, 179, 0.15); }
.auth-page-form input::placeholder { color: #686e78; }
.auth-page-remember { display: flex; min-height: 30px; align-items: center; gap: 7px; font-size: 12px; }
.auth-page-remember input { width: 16px; height: 16px; accent-color: #1683df; }
.auth-page-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 4px; }
.auth-page-actions button, .auth-page-actions a, .auth-page-primary { display: grid; min-height: 40px; place-items: center; border: 1px solid var(--coral); border-radius: 7px; background: var(--coral); color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.auth-page-actions a { background: transparent; color: #d73549; }
.auth-page-actions button:hover, .auth-page-primary:hover { background: var(--coral-hover); }
.auth-page-switch { margin: 16px 0 0; color: #72657a; font-size: 11px; }
.auth-page-switch a { color: #ba3053; }
.auth-page-switch span { padding: 0 3px; }
.auth-page-hint, .auth-page-success, .auth-page-error, .auth-page-status { color: #5d4964; font-size: 12px; }
.auth-page-success { padding: 10px; border-radius: 6px; background: #e6f7ec; color: #216d43; }
.auth-page-error, .auth-page-status:not(:empty) { margin-top: 12px; color: #a72438; }
.auth-page-primary { width: fit-content; min-width: 140px; padding: 0 20px; }
.auth-page-footer { margin: 18px 0 0; color: #fae6fa; font-size: 11px; }

.explore-page, .ranking-page, .account-page { width: min(var(--cwnav-content-width), calc(100% - 32px)); margin: 92px auto 36px; }
.explore-heading { padding: 16px 0 20px; }
.explore-heading h1 { margin: 0 0 4px; color: var(--ink-strong); font-size: 27px; }
.explore-heading p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.filter-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.filter-summary a { position: relative; display: grid; min-height: 104px; align-content: space-between; overflow: hidden; padding: 16px; border-radius: 8px; background: var(--surface); text-decoration: none; }
.filter-summary span { color: var(--ink-muted); font-size: 12px; }
.filter-summary strong { color: var(--ink-strong); font-size: 26px; }
.filter-summary svg { position: absolute; right: 13px; bottom: 9px; width: 42px; height: 42px; color: var(--line); }
.filter-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.filter-groups section { min-width: 0; padding: 18px; border-radius: 8px; background: var(--surface); }
.filter-groups h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--ink-strong); font-size: 16px; }
.filter-groups h2 svg { width: 14px; height: 14px; color: var(--coral); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-tags a { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 12px; text-decoration: none; }
.filter-tags a:hover { border-color: var(--coral); }
.filter-tags a > span { color: var(--coral); }
.filter-tags small { color: var(--ink-muted); }
.filter-empty { color: var(--ink-muted); font-size: 12px; }

.ranking-page { margin-top: 82px; }
.ranking-hero { min-height: 190px; padding: 26px 20px 32px; border-radius: 8px 8px 0 0; background: #f34b5b; color: #fff; text-align: center; }
.ranking-hero nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.ranking-hero a { color: #ffe2e5; font-size: 12px; text-decoration: none; }
.ranking-hero a.is-active { color: #fff; font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.ranking-hero h1 { margin: 24px 0 4px; font-size: 30px; }
.ranking-hero p { margin: 0; font-size: 11px; }
.ranking-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--surface-soft); }
.ranking-period { display: grid; align-content: start; gap: 6px; }
.ranking-period a { min-height: 44px; padding: 11px 14px; border-radius: 7px; background: var(--surface); color: var(--ink); text-decoration: none; }
.ranking-period a.is-active { background: var(--coral); color: #fff; }
.ranking-list { min-width: 0; padding: 16px; border-radius: 8px; background: var(--surface); }
.ranking-list h2 { margin: 0 0 12px; color: var(--ink-strong); font-size: 17px; }
.ranking-row { display: grid; grid-template-columns: 26px 46px minmax(0, 1fr) auto; min-height: 66px; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); text-decoration: none; }
.ranking-row > b { color: var(--ink-muted); font-size: 17px; }
.ranking-row:nth-of-type(-n+3) > b { color: var(--coral); }
.ranking-icon { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border-radius: 7px; background: var(--surface-soft); }
.ranking-icon img { width: 32px; height: 32px; object-fit: contain; }
.ranking-copy { display: grid; min-width: 0; }
.ranking-copy strong, .ranking-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-copy strong { color: var(--ink-strong); font-size: 13px; }
.ranking-copy small { color: var(--ink-muted); font-size: 11px; }
.ranking-score { color: var(--coral); font-weight: 750; text-align: right; }
.ranking-score small { display: block; color: var(--ink-muted); font-size: 10px; font-weight: 400; }

.news-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-columns--single { grid-template-columns: minmax(0, 1fr); }
.news-source { min-width: 0; padding: 14px; border-radius: 8px; background: var(--surface); }
.news-source header { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.news-source h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-strong); font-size: 14px; }
.news-source h2 svg { color: var(--coral); }
.news-source header a { display: inline-flex; align-items: center; color: var(--ink-muted); font-size: 11px; text-decoration: none; }
.news-source header a svg { width: 14px; height: 14px; }
.news-source ol { margin: 0; padding: 0; list-style: none; counter-reset: news; }
.news-source li { counter-increment: news; }
.news-source li a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; gap: 7px; min-height: 37px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-source li a::before { content: counter(news); color: var(--ink-muted); font-size: 11px; }
.news-source li:nth-child(-n+3) a::before { color: var(--coral); font-weight: 800; }
.news-source li span { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.news-source time { color: var(--ink-muted); font-size: 10px; }

.account-banner { display: flex; min-height: 245px; align-items: end; gap: 16px; padding: 30px; border-radius: 10px; background: #4b075f url('../images/hero-cosmos.jpg') center / cover; color: #fff; }
.account-avatar { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fff; color: var(--purple-deep); }
.account-banner h1 { margin: 0; font-size: 23px; }
.account-banner p { margin: 0; color: #eee0f2; font-size: 12px; }
.account-banner > a { margin-left: auto; color: #fff; font-size: 12px; }
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.account-side { align-self: start; padding: 14px; border-radius: 8px; background: var(--surface); }
.account-side nav { display: grid; }
.account-side nav a { display: flex; min-height: 42px; align-items: center; gap: 9px; padding: 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.account-side nav svg { color: var(--coral); }
.account-guest-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 12px; }
.account-guest-actions a { min-height: 35px; padding: 8px 3px; border-radius: 6px; background: var(--surface-soft); font-size: 10px; text-align: center; text-decoration: none; }
.account-membership-note { margin: 12px 4px 0; color: var(--ink-muted); font-size: 11px; }
.account-membership { scroll-margin-top: 90px; }
.account-membership > p { margin-bottom: 14px; color: var(--ink-soft); font-size: 13px; }
.account-membership-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.account-membership-tiers > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.account-membership-tiers strong { color: var(--ink-strong); font-size: 13px; }
.account-membership-tiers span { color: var(--ink-muted); font-size: 11px; }
.account-membership-contact { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; margin-top: 16px; padding: 7px 14px; border-radius: 6px; background: var(--coral); color: #fff; font-size: 12px; text-decoration: none; }
.account-membership-contact svg { width: 15px; height: 15px; }
.account-membership-help { margin: 16px 0 4px; }
.account-membership > small { display: block; margin-top: 10px; color: var(--ink-muted); font-size: 11px; }
.account-content { min-height: 390px; padding: 22px; border-radius: 8px; background: var(--surface); }
.account-content section + section { margin-top: 28px; }
.account-content h2 { margin: 0 0 14px; color: var(--ink-strong); font-size: 17px; }
.account-content h2 small { color: var(--ink-muted); }
.account-empty { display: grid; min-height: 340px; justify-items: center; align-content: center; text-align: center; }
.account-empty > svg { width: 50px; height: 50px; color: var(--ink-muted); }
.account-empty h2 { margin: 13px 0 4px; }
.account-empty p, .account-list-empty { color: var(--ink-muted); font-size: 12px; }
.account-item-list { margin: 0; padding: 0; list-style: none; }
.account-item-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.account-item-list li a { text-decoration: none; }
.account-item-list li > span:last-child, .account-item-list small { color: var(--ink-muted); font-size: 11px; }

.submit-page .submit-hero { min-height: 170px; padding: 32px; border-radius: 8px; background: #226fc3; color: #fff; }
.submit-page .submit-hero h1 { color: #fff; }
.submit-page .submit-hero p { color: #eef6ff; }
.submit-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: -14px 12px 0; padding: 9px; position: relative; border-radius: 8px; background: var(--surface); }
.submit-types a { display: flex; min-height: 45px; align-items: center; justify-content: center; gap: 7px; border-radius: 6px; background: var(--surface-soft); color: var(--ink); font-size: 12px; text-decoration: none; }
.submit-types a.is-active { background: #e5f2ff; color: #176abd; font-weight: 750; }
.submit-types svg { width: 16px; height: 16px; }
.submit-gate { display: grid; min-height: 350px; justify-items: center; align-content: center; border-radius: 8px; background: var(--surface); text-align: center; }
.submit-gate > svg { width: 44px; height: 44px; color: var(--ink-muted); }
.submit-gate h2 { margin: 12px 0 3px; color: var(--ink-strong); font-size: 17px; }
.submit-gate p { color: var(--ink-muted); font-size: 12px; }
.submit-gate a { padding: 9px 18px; border-radius: 7px; background: var(--coral); color: #fff; text-decoration: none; }
.form-field.is-hidden { display: none; }
.detail-preview { margin: 0; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.detail-preview img { width: 100%; max-height: 440px; object-fit: contain; border-radius: 7px; background: var(--surface-soft); }
.detail-page--cwnav_book .detail-icon { width: 108px; height: 148px; border-radius: 7px; }
.detail-page--cwnav_book .detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-page--cwnav_book .resource-detail-head { grid-template-columns: 108px minmax(0, 1fr) auto; }
.detail-actions .secondary-action { width: 100%; margin-left: 0; white-space: nowrap; }

.detail-page--cwnav_software { margin-top: 88px; }
.detail-page--cwnav_software .breadcrumbs { margin: 9px 0 13px; }
.detail-page--cwnav_software .detail-hot-strip { margin-bottom: 0; }
.detail-page--cwnav_software .hot-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-page--cwnav_software .mini-mark img { width: 28px; height: 28px; object-fit: contain; }
.software-detail-hero { display: grid; min-height: 420px; grid-template-columns: minmax(0, 1fr) minmax(390px, 43%); align-items: center; gap: 30px; padding: 28px 10px 34px; }
.software-detail-summary { display: grid; min-width: 0; grid-template-columns: 126px minmax(0, 1fr); align-items: start; gap: 26px; }
.software-detail-icon { display: grid; width: 126px; height: 126px; place-items: center; overflow: hidden; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--purple-deep); font-size: 42px; font-weight: 800; }
.software-detail-icon img { width: 104px; height: 104px; object-fit: contain; }
.software-detail-copy { min-width: 0; }
.software-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.software-detail-heading h1 { min-width: 0; margin: 2px 0 5px; overflow-wrap: anywhere; color: var(--ink-strong); font-size: 28px; line-height: 1.28; }
.software-detail-heading h1 small { margin-left: 3px; color: var(--ink-muted); font-size: 12px; font-weight: 650; }
.software-detail-heading .favorite-button { width: auto; min-width: 84px; min-height: 38px; flex: 0 0 auto; padding: 0 12px; border-radius: 7px; color: var(--coral); }
.software-detail-heading .favorite-button svg { width: 15px; height: 15px; }
.software-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.software-badges span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.software-badges svg { width: 12px; height: 12px; }
.software-detail-description { max-width: 58ch; margin: 29px 0 15px; color: var(--ink); font-size: 15px; line-height: 1.7; }
.software-detail-facts { display: grid; gap: 7px; margin: 0; }
.software-detail-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.software-detail-facts dt { color: var(--ink-muted); font-size: 12px; }
.software-detail-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 12px; }
.software-detail-actions { margin-top: 28px; }
.software-detail-actions .primary-link { display: inline-flex; min-width: 164px; min-height: 49px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; background: var(--coral); color: #fff; font-size: 16px; font-weight: 750; cursor: pointer; box-shadow: 0 10px 24px rgba(243, 75, 91, 0.2); }
.software-detail-actions .primary-link:hover { background: #dc3d4c; transform: translateY(-1px); }
.software-detail-actions .primary-link:disabled { cursor: not-allowed; opacity: 0.52; transform: none; }
.software-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--ink-muted); font-size: 10px; }
.software-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.software-detail-meta b { font-weight: 600; }
.software-detail-meta svg { width: 13px; height: 13px; }
.software-gallery { min-width: 0; }
.software-gallery-stage { display: grid; height: 320px; overflow: hidden; border-radius: 10px; background: #191a1e; box-shadow: var(--shadow); }
.software-gallery-stage > * { grid-area: 1 / 1; }
.software-gallery-stage figure { width: 100%; height: 100%; margin: 0; }
.software-gallery-stage img { display: block; width: 100%; height: 100%; background: var(--surface-soft); object-fit: contain; }
.software-gallery-empty { display: grid; min-height: 320px; place-content: center; justify-items: center; gap: 9px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-muted); }
.software-gallery-empty svg { width: 36px; height: 36px; }
.software-gallery-empty span { color: var(--ink-soft); font-size: 13px; }
.software-gallery-empty small { font-size: 10px; }
.software-gallery-empty button { min-height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--ink-soft); font-size: 11px; font-weight: 700; cursor: pointer; }
.software-gallery-empty button:hover { border-color: var(--coral); color: var(--coral); }
.software-gallery-empty button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.software-gallery-dots { display: flex; min-height: 31px; align-items: end; justify-content: center; gap: 7px; }
.software-gallery-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--ink-muted); cursor: pointer; opacity: 0.52; }
.software-gallery-dots button.is-active { width: 20px; border-radius: 5px; background: var(--coral); opacity: 1; }
.software-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 16px; margin-top: 14px; }
.software-detail-body .detail-content { max-width: none; }

.download-dialog { width: min(790px, calc(100% - 30px)); max-height: min(760px, calc(100dvh - 30px)); padding: 0; overflow: auto; border: 0; border-radius: 12px; background: transparent; color: var(--ink); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32); }
.download-dialog::backdrop { background: rgba(8, 10, 14, 0.72); backdrop-filter: blur(3px); }
.download-dialog-shell { padding: 0 24px 24px; border-radius: 12px; background: var(--surface); }
.download-dialog header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.download-dialog h2 { display: inline-flex; min-width: 0; align-items: center; gap: 8px; margin: 0; overflow: hidden; color: var(--ink-strong); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.download-dialog h2 svg { width: 17px; height: 17px; color: #3185cc; }
.download-dialog header > button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.download-dialog header > button:hover { background: var(--surface-soft); color: var(--ink-strong); }
.download-table { margin-top: 18px; }
.download-table-head, .download-table-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 130px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.download-table-head { min-height: 38px; color: var(--ink-muted); font-size: 11px; font-weight: 700; }
.download-table-head span:last-child { text-align: right; }
.download-table-row { min-height: 52px; }
.download-table-row > span { min-width: 0; color: var(--ink-soft); font-size: 12px; }
.download-table-row > span:first-child { display: grid; }
.download-table-row strong { overflow: hidden; color: var(--ink-strong); text-overflow: ellipsis; white-space: nowrap; }
.download-table-row small { color: var(--ink-muted); font-size: 10px; }
.download-table-row > span:last-child { text-align: right; }
.download-table-row button { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid rgba(243, 75, 91, 0.25); border-radius: 6px; background: rgba(243, 75, 91, 0.1); color: var(--coral); font-size: 11px; font-weight: 700; cursor: pointer; }
.download-table-row button svg { width: 12px; height: 12px; }
.download-table-row button:disabled { cursor: not-allowed; opacity: 0.45; }
.download-table-row button.is-loading { cursor: wait; }
.download-quota { display: flex; align-items: center; gap: 6px; margin: 24px 0; padding: 10px; border-radius: 7px; background: rgba(239, 137, 42, 0.12); color: #ba621c; font-size: 11px; }
.download-quota svg { width: 14px; height: 14px; }
.download-dialog-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 22px 0; }
.download-dialog-tags a { display: inline-flex; min-height: 28px; align-items: center; gap: 4px; padding: 0 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); color: #2575c7; font-size: 10px; text-decoration: none; }
.download-dialog-tags svg { width: 11px; height: 11px; }
.download-disclaimer { display: flex; gap: 8px; margin: 0; padding: 11px; border-radius: 7px; background: rgba(38, 126, 203, 0.12); color: #2673b3; font-size: 10px; line-height: 1.6; }
.download-disclaimer svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.download-error { min-height: 18px; margin: 8px 0 0; color: var(--coral); font-size: 10px; text-align: center; }

.detail-page--cwnav_site { margin-top: 88px; }
.detail-hot-strip { padding: 9px 12px 11px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.detail-hot-strip .hot-strip-head { min-height: 27px; color: var(--ink-soft); }
.detail-hot-strip .hot-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-hot-strip .hot-strip-grid > a { background: var(--surface-soft); }
.detail-hot-strip .hot-strip-grid strong { color: var(--ink-strong); }
.detail-page--cwnav_site .breadcrumbs { margin: 9px 0 13px; }
.site-detail-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 30%); gap: 18px; min-height: 360px; }
.site-detail-summary { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 0 0 18px; }
.site-detail-heading { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 15px; }
.site-detail-heading h1 { min-width: 0; margin: 9px 0 6px; overflow-wrap: anywhere; color: var(--ink-strong); font-size: 27px; line-height: 1.35; }
.site-detail-heading .favorite-button { width: auto; min-width: 86px; min-height: 39px; flex: 0 0 auto; gap: 5px; margin: 3px 0 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--coral); font-size: 12px; }
.site-detail-heading .favorite-button svg { width: 16px; height: 16px; }
.site-detail-meta { display: flex; flex-wrap: wrap; gap: 15px; color: var(--ink-muted); font-size: 11px; }
.site-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.site-detail-meta svg { width: 13px; height: 13px; }
.site-detail-description { max-width: 72ch; margin: 34px 0 14px; color: var(--ink); font-size: 15px; line-height: 1.8; }
.site-detail-added { margin: 0 0 17px; color: var(--ink-soft); font-size: 12px; }
.site-detail-added time { margin-left: 13px; color: var(--ink); }
.site-detail-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.site-detail-buttons .primary-link, .site-detail-buttons .secondary-action { display: inline-flex; min-width: 130px; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border-radius: 7px; text-decoration: none; }
.site-detail-buttons svg { width: 16px; height: 16px; }
.site-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 19px; }
.site-detail-tags a, .site-detail-tags span { padding: 5px 9px; border-radius: 6px; background: var(--surface); color: var(--ink-soft); font-size: 11px; text-decoration: none; }
.site-detail-tags span { color: var(--coral); }
.site-detail-tags a:hover { color: var(--coral); }
.site-detail-visual { min-width: 0; height: 338px; margin: 0; padding: 8px; overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.site-detail-visual figcaption { display: flex; height: 23px; align-items: center; gap: 6px; overflow: hidden; color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.site-detail-visual figcaption img, .site-detail-visual figcaption svg { width: 17px; height: 17px; flex: 0 0 auto; object-fit: contain; }
.site-detail-visual figcaption span { overflow: hidden; text-overflow: ellipsis; }
.site-detail-visual > img { display: block; width: 100%; height: calc(100% - 23px); border-radius: 5px; background: var(--surface-soft); object-fit: contain; object-position: top center; }
[data-site-preview][hidden], [data-site-preview-fallback][hidden] { display: none; }
.site-detail-no-preview { display: grid; height: calc(100% - 23px); align-content: center; justify-items: center; gap: 8px; border: 1px dashed var(--line); border-radius: 5px; background: var(--surface-soft); color: var(--ink-muted); }
.site-detail-no-preview svg { width: 35px; height: 35px; }
.site-detail-no-preview span { color: var(--ink-soft); font-size: 13px; }
.site-detail-no-preview small { font-size: 11px; }
.site-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 30%); align-items: start; gap: 16px; margin-top: 18px; }
.site-detail-body .detail-main { min-height: 400px; }
.site-detail-body .detail-content { max-width: none; padding: 25px 28px; }
.site-detail-body .detail-content > :first-child { margin-top: 0; }
.site-detail-body .detail-notice { margin-inline: 28px; }
.site-detail-aside { display: grid; min-width: 0; gap: 12px; }
.site-detail-aside > section { overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.site-author { display: grid; justify-items: center; padding-bottom: 20px; text-align: center; }
.site-author-banner { width: 100%; height: 100px; background: var(--purple-deep) url("../images/hero-cosmos.jpg") center / cover; }
.site-author-mark { display: grid; width: 65px; height: 65px; margin-top: -31px; place-items: center; border: 5px solid var(--surface); border-radius: 50%; background: var(--surface-soft); color: var(--purple-deep); font-size: 22px; font-weight: 800; }
.site-author strong { margin-top: 6px; color: var(--ink-strong); font-size: 14px; }
.site-author span { color: var(--ink-muted); font-size: 11px; }
.site-aside-panel { padding: 16px; }
.site-aside-panel h2 { margin: 0 0 10px; color: var(--ink-strong); font-size: 14px; }
.site-aside-panel p { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: #238653; font-size: 12px; }
.site-aside-panel p svg { width: 15px; height: 15px; }
.site-aside-panel > a { display: flex; align-items: center; justify-content: space-between; gap: 6px; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; text-decoration: none; }
.site-aside-panel > a svg { width: 15px; height: 15px; flex: 0 0 auto; }
.site-aside-panel ol { margin: 0; padding: 0; list-style: none; }
.site-aside-panel li { display: grid; min-height: 39px; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 6px; border-top: 1px solid var(--line); font-size: 12px; }
.site-aside-panel li b { color: var(--coral); }
.site-aside-panel li a { overflow: hidden; color: var(--ink); text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }

@media (max-width: 980px) {
  .topbar-actions .account-menu { display: none; }
  .news-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-detail-intro, .site-detail-body { grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); }
  .software-detail-hero { grid-template-columns: 1fr; }
  .software-gallery { width: min(680px, 100%); }
}
@media (max-width: 720px) {
  .auth-page-shell { width: min(370px, 100%); min-height: 0; grid-template-columns: 1fr; padding: 34px; }
  .auth-page-brand { display: none; }
  .auth-page-form { padding: 0; }
  .auth-page-form h1 { margin-bottom: 16px; }
  .explore-page, .ranking-page, .account-page { width: calc(100% - 20px); margin-top: 88px; }
  .filter-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-groups, .news-columns { grid-template-columns: 1fr; }
  .ranking-body { grid-template-columns: 1fr; padding: 10px; }
  .ranking-period { display: flex; justify-content: center; }
  .ranking-period a { flex: 1; text-align: center; }
  .ranking-hero { min-height: 205px; }
  .ranking-hero nav { gap: 12px; }
  .ranking-hero h1 { font-size: 26px; }
  .account-banner { min-height: 200px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-membership-tiers { grid-template-columns: 1fr; }
  .account-membership-tiers > div { grid-template-columns: 90px minmax(0, 1fr); align-items: center; padding: 10px 12px; }
  .submit-types { gap: 3px; margin-inline: 6px; padding: 5px; }
  .submit-types a { flex-direction: column; gap: 2px; font-size: 11px; }
  .detail-page--cwnav_book .resource-detail-head { grid-template-columns: 82px minmax(0, 1fr); }
  .detail-page--cwnav_book .detail-icon { width: 82px; height: 116px; }
  .detail-page--cwnav_software { margin-top: 78px; }
  .detail-page--cwnav_software .hot-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-page--cwnav_software .hot-strip-grid > :nth-child(n + 3) { display: none; }
  .software-detail-hero { min-height: 0; gap: 24px; padding: 18px 0 24px; }
  .software-detail-summary { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
  .software-detail-icon { width: 78px; height: 78px; border-radius: 12px; }
  .software-detail-icon img { width: 64px; height: 64px; }
  .software-detail-heading { display: block; }
  .software-detail-heading h1 { font-size: 23px; }
  .software-detail-heading .favorite-button { min-width: 76px; min-height: 34px; margin-top: 5px; }
  .software-detail-description { grid-column: 1 / -1; margin-top: 22px; font-size: 14px; }
  .software-detail-facts > div { grid-template-columns: 68px minmax(0, 1fr); }
  .software-detail-actions { margin-top: 22px; }
  .software-detail-meta { gap: 8px; }
  .software-gallery-stage, .software-gallery-empty { min-height: 240px; height: 240px; }
  .software-detail-body { grid-template-columns: 1fr; }
  .download-dialog-shell { padding-inline: 16px; }
  .download-table-head, .download-table-row { grid-template-columns: minmax(0, 1fr) 76px 92px; gap: 8px; }
  .download-table-row button { padding-inline: 6px; }
  .detail-page--cwnav_site { margin-top: 78px; }
  .detail-hot-strip .hot-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hot-strip .hot-strip-grid > :nth-child(n + 3) { display: none; }
  .site-detail-intro, .site-detail-body { grid-template-columns: 1fr; }
  .site-detail-intro { gap: 12px; }
  .site-detail-heading h1 { font-size: 23px; }
  .site-detail-description { margin-top: 20px; font-size: 14px; }
  .site-detail-summary { padding-bottom: 0; }
  .site-detail-visual { height: 270px; }
  .site-detail-body { margin-top: 12px; }
  .site-detail-body .detail-content { padding: 20px 18px; }
  .site-detail-body .detail-notice { margin-inline: 18px; }
}
@media (max-width: 420px) {
  .auth-page-shell { padding: 26px; }
  .ranking-row { grid-template-columns: 19px 40px minmax(0, 1fr) auto; gap: 7px; padding-inline: 5px; }
  .ranking-score { font-size: 11px; }
  .ranking-score small { display: none; }
}

.journal-page { width: min(var(--cwnav-content-width), calc(100% - 32px)); margin: 92px auto 36px; }
.journal-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 14px 0 18px; }
.journal-heading h1 { margin: 0 0 5px; color: var(--ink-strong); font-size: 28px; }
.journal-heading p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.journal-heading > span { color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.journal-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.journal-filters a { min-height: 34px; padding: 7px 14px; border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 12px; text-decoration: none; }
.journal-filters a.is-active { background: var(--coral); color: #fff; }
.journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.journal-list { min-width: 0; }
.journal-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; margin-bottom: 10px; padding: 12px; border-radius: 8px; background: var(--surface); }
.journal-media { display: grid; min-height: 126px; place-items: center; overflow: hidden; border-radius: 6px; background: var(--surface-soft); color: var(--ink-muted); }
.journal-media img { width: 100%; height: 100%; object-fit: cover; }
.journal-media svg { width: 34px; height: 34px; }
.journal-item h2 { margin: 2px 0 8px; color: var(--ink-strong); font-size: 17px; line-height: 1.45; }
.journal-item h2 a { text-decoration: none; }
.journal-item p { display: -webkit-box; max-height: 3.2em; overflow: hidden; color: var(--ink-muted); font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 11px; }
.journal-meta a { padding: 2px 6px; border-radius: 4px; background: var(--surface-soft); color: var(--coral); text-decoration: none; }
.journal-sidebar { display: grid; align-content: start; gap: 12px; }
.journal-sidebar section { padding: 16px; border-radius: 8px; background: var(--surface); }
.journal-sidebar h2 { margin: 0 0 9px; color: var(--ink-strong); font-size: 15px; }
.journal-sidebar ol { margin: 0; padding: 0 0 0 20px; }
.journal-sidebar li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--coral); }
.journal-sidebar li a { color: var(--ink); font-size: 12px; text-decoration: none; }
.journal-sidebar p { color: var(--ink-muted); font-size: 12px; }
.journal-sidebar section > a { display: inline-flex; align-items: center; gap: 5px; color: var(--coral); font-size: 12px; text-decoration: none; }
@media (max-width: 980px) { .journal-layout { grid-template-columns: minmax(0, 1fr) 230px; } }
@media (max-width: 720px) {
  .journal-page { width: calc(100% - 20px); margin-top: 88px; }
  .journal-layout { grid-template-columns: 1fr; }
  .journal-sidebar { display: none; }
  .journal-item { grid-template-columns: 126px minmax(0, 1fr); gap: 10px; padding: 9px; }
  .journal-media { min-height: 98px; }
  .journal-item h2 { font-size: 13px; }
  .journal-item p { display: none; }
}
