@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;
  --overview-gradient: linear-gradient(118deg, #3f0871 0%, #62119a 48%, #a114c4 76%, #e92caa 100%);
  --ranking-gradient: linear-gradient(145deg, #fff0f2 0%, #fff7f8 34%, #ffffff 72%);
  --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;
  --overview-gradient: linear-gradient(118deg, #31075a 0%, #59108f 48%, #9712bd 76%, #d4269d 100%);
  --ranking-gradient: linear-gradient(145deg, rgba(122, 37, 51, 0.78) 0%, rgba(83, 42, 52, 0.62) 34%, #242527 72%);
  --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: 16px;
  padding: 0 10px;
  border: 1px solid rgba(35, 37, 42, 0.08);
  border-radius: 12px;
  background: rgba(245, 245, 245, 0.75);
  color: #45484e;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: saturate(2) blur(15px);
}

html[data-theme="dark"] .topbar {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(46, 46, 46, 0.65);
  color: #e3e4e6;
}

.brand {
  display: flex;
  min-width: 160px;
  align-items: center;
  gap: 8px;
  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: 17px; font-weight: 800; }
.topbar .brand strong { color: currentColor; }
.brand small { margin-top: 4px; color: currentColor; font-size: 10px; opacity: 0.62; }

.topnav { display: flex; min-width: 0; align-items: center; gap: 2px; }
.topnav-menu { display: flex; min-width: 0; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.topnav-menu > li { min-width: 0; }
.topnav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 7px;
  color: #55585e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.topnav a:hover { background: rgba(255, 255, 255, 0.56); color: #161218; }
html[data-theme="dark"] .topnav a { color: rgba(241, 242, 244, 0.76); }
html[data-theme="dark"] .topnav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topnav svg { width: 16px; height: 16px; }

.cwnav-menu-icon.cwnav-icon-color--coral { color: #df3048 !important; }
.cwnav-menu-icon.cwnav-icon-color--blue { color: #1d6fd8 !important; }
.cwnav-menu-icon.cwnav-icon-color--green { color: #17803d !important; }
.cwnav-menu-icon.cwnav-icon-color--amber { color: #a85a00 !important; }
.cwnav-menu-icon.cwnav-icon-color--violet { color: #7c3aed !important; }
.cwnav-menu-icon.cwnav-icon-color--cyan { color: #0b7f92 !important; }
html[data-theme="dark"] .cwnav-menu-icon.cwnav-icon-color--coral { color: #ff6977 !important; }
html[data-theme="dark"] .cwnav-menu-icon.cwnav-icon-color--blue { color: #76aaff !important; }
html[data-theme="dark"] .cwnav-menu-icon.cwnav-icon-color--green { color: #54c878 !important; }
html[data-theme="dark"] .cwnav-menu-icon.cwnav-icon-color--amber { color: #f0a447 !important; }
html[data-theme="dark"] .cwnav-menu-icon.cwnav-icon-color--violet { color: #b393ff !important; }
html[data-theme="dark"] .cwnav-menu-icon.cwnav-icon-color--cyan { color: #48c3d4 !important; }

.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar-clock { margin-right: 6px; font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0.75; }
.weather-header-action { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .5); color: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
.weather-header-action:hover,
.weather-header-action[aria-expanded="true"] { background: rgba(127, 127, 127, .13); }
.weather-header-action svg { width: 15px; height: 15px; color: #248bf3; }
.weather-header-action[data-weather-state="error"] svg { color: #a14a50; }
.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-width: 92px; min-height: 30px; justify-content: center; gap: 5px; padding: 0 11px; font-size: 12px; }
.topbar-actions .member-menu > .member-button svg { width: 14px; height: 14px; }
.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;
  isolation: isolate;
  height: var(--cwnav-hero-height);
  overflow: hidden;
  background-color: #8618db;
  background-image: none;
  background-position: center 43%;
  background-size: cover;
}
.search-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(45deg, #8618db 0%, #d711ff 50%, #460fdd 100%);
  background-position: 0% 100%;
  background-size: 400% auto;
  content: "";
  pointer-events: none;
  animation: cwnav-hero-gradient 7.5s ease-in-out infinite;
}
.search-hero::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 380px;
  background-image: linear-gradient(to top, var(--canvas) 0%, transparent 80%);
  content: "";
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
html[data-theme="dark"] .hero-overlay { background: rgba(0, 0, 0, 0.7); }
@keyframes cwnav-hero-gradient {
  50% { background-position: 100% 0; }
}
.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,
.search-suggestions,
.search-status { text-shadow: 0 1px 12px rgba(4, 8, 14, 0.55); }
.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); }
html[data-theme="dark"] .hero-search-field { border: 1px solid rgba(255, 255, 255, 0.08); background: #222427; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32); }
html[data-theme="dark"] .hero-search-field input { color: var(--ink-strong); }
html[data-theme="dark"] .hero-search-field input::placeholder { color: #a9adb4; }
.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%);
  -webkit-backdrop-filter: blur(14px);
  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; overflow: hidden; border-radius: 50%; background: #eef0f4; color: #5d62a8; font-size: 12px; font-weight: 800; }
.mini-mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.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: var(--cwnav-category-width, 140px) minmax(0, 1fr) var(--cwnav-widget-width, 310px);
  align-items: start;
  gap: 14px;
  width: min(var(--cwnav-content-width), calc(100% - 20px));
  margin: 0 auto;
  padding: 18px 0 18px;
}
.category-rail {
  --category-accent: #bd2033;
  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 0 10px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .category-rail { --category-accent: #ff6674; }
.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: hidden; scrollbar-width: none; }
.category-links::-webkit-scrollbar { display: none; }
.category-links > a > span { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.category-footer-menu { flex: 0 0 auto; padding-top: 4px; border-top: 1px solid var(--line); }
.category-footer-menu ul, .drawer-footer-menu ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.category-footer-menu 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) var(--cwnav-widget-width, 310px); }
.rail-collapsed .category-rail { width: 58px; padding-inline: 8px; transition: box-shadow 180ms ease-out; }
.rail-collapsed .category-links > a, .rail-collapsed .category-row > a, .rail-collapsed .category-footer-menu 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-footer-menu a > span, .rail-collapsed .category-collapse > span { display: none; }
.rail-collapsed .category-row > button { display: none; }
.rail-auto-collapsed.rail-peek .category-rail { z-index: 55; width: var(--cwnav-category-width, 140px); padding-right: 0; padding-left: 10px; border: 1px solid rgba(255, 255, 255, 0.56); background: rgba(255, 255, 255, 0.88); box-shadow: var(--shadow-float); -webkit-backdrop-filter: blur(16px) saturate(0.92); backdrop-filter: blur(16px) saturate(0.92); }
html[data-theme="dark"] .rail-auto-collapsed.rail-peek .category-rail { border-color: rgba(255, 255, 255, 0.08); background: rgba(31, 32, 35, 0.84); }
.rail-auto-collapsed.rail-peek .category-links > a,
.rail-auto-collapsed.rail-peek .category-row > a,
.rail-auto-collapsed.rail-peek .category-footer-menu a,
.rail-auto-collapsed.rail-peek .category-collapse { justify-content: flex-start; padding-inline: 10px; font-size: 13px; }
.rail-auto-collapsed.rail-peek .category-rail .category-row > a { padding-right: 0; }
.rail-auto-collapsed.rail-peek .category-links > a > span,
.rail-auto-collapsed.rail-peek .category-row > a > span,
.rail-auto-collapsed.rail-peek .category-footer-menu a > span,
.rail-auto-collapsed.rail-peek .category-collapse > span { display: block; }
.rail-auto-collapsed.rail-peek .category-row > button { display: flex; }
.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;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.category-rail .category-links > a,
.rail-auto-collapsed.rail-peek .category-rail .category-links > a { gap: 6px; padding-right: 0; }
.category-rail a:hover,
.sidebar-menu a:hover { background: var(--surface-soft); color: var(--ink-strong); }
.category-links > a.is-active,
.category-row > a.is-active,
.category-item.is-open > .category-row > a { background: var(--surface-soft); color: var(--category-accent); }
.category-links > a.is-active > svg,
.category-row > a.is-active > svg,
.category-item.is-open > .category-row > a > svg { color: currentColor; }
.category-rail svg,
.sidebar-menu svg { width: 17px; height: 17px; color: var(--ink-soft); transition: color 160ms ease-out; }
.category-links > a:is(:hover, :focus-visible),
.category-row:is(:hover, :focus-within, :has(> button[aria-expanded="true"])) > a,
.sidebar-menu a:is(:hover, :focus-visible) { background: var(--surface-soft); color: var(--category-accent, var(--coral)); }
.category-links > a:is(:hover, :focus-visible) > svg,
.category-row:is(:hover, :focus-within, :has(> button[aria-expanded="true"])) > a > svg,
.sidebar-menu a:is(:hover, :focus-visible) > svg { color: currentColor; }
.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-wrap: anywhere; white-space: normal; }
.category-row > button {
  display: flex;
  width: 26px;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  flex: 0 0 26px;
}
.category-row > button:hover,
.category-row > button[aria-expanded="true"] { color: var(--category-accent); }
.category-row > button > svg { width: 15px; height: 15px; color: var(--ink-soft); transition: transform 160ms ease-out; }
.category-row > button:is(:hover, :focus-visible, [aria-expanded="true"]) > svg { color: currentColor; }
.category-row > button[aria-expanded="true"] > svg { transform: rotate(90deg); }
.category-submenu {
  position: fixed;
  z-index: 30;
  display: grid;
  width: max-content;
  max-width: calc(100vw - 20px);
  grid-template-columns: repeat(2, minmax(92px, max-content));
  gap: 6px;
  padding: 8px;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(19, 22, 27, 0.14);
}
.category-submenu[hidden] { display: none !important; }
.category-submenu:has(> a:only-child) { grid-template-columns: minmax(92px, max-content); }
.category-rail .category-submenu a {
  display: flex;
  min-width: 92px;
  min-height: 34px;
  width: 100%;
  justify-content: center;
  gap: 0;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}
.category-rail .category-submenu a:is(:hover, :focus-visible, .is-active) { background: color-mix(in srgb, var(--surface-soft) 82%, var(--line)); color: var(--category-accent); }
.category-submenu a > svg,
.category-submenu a small,
.category-submenu a b { display: none; }
.category-submenu a > span { display: block; min-width: 0; }
.category-submenu a strong { color: inherit; font-size: inherit; font-weight: inherit; }
html[data-theme="dark"] .category-submenu { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26); }
.portal-main { display: flex; min-width: 0; flex-direction: column; gap: 14px; grid-column: 2; grid-row: 1; }
.portal-main > .portal-panel { margin-top: 0; }
.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: 34px;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, var(--canvas));
  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::-webkit-scrollbar { display: none; }
.market-ticker > span { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; }
.market-ticker-label { position: sticky; z-index: 1; left: -12px; align-self: stretch; flex: 0 0 auto; padding: 0 10px 0 12px; background: color-mix(in srgb, var(--surface) 82%, var(--canvas)); color: var(--ink-strong); font-weight: 700; }
html[data-theme="dark"] .market-ticker-label { background: #232529; }
.market-ticker-label svg { width: 14px; height: 14px; color: var(--coral); }
.market-clock-cluster { flex: 0 0 auto; }
.market-clock-flags { display: inline-flex; align-items: center; }
.market-clock-flags img { width: 17px; height: 13px; margin-left: -3px; border: 1px solid rgba(255,255,255,.72); border-radius: 2px; object-fit: cover; }
.market-clock-flags img:first-child { margin-left: 0; }
.market-clock-cities { color: var(--ink-soft); }
.market-clock-item { flex: 0 0 auto; }
.market-clock-item > img { width: 17px; height: 13px; border-radius: 2px; object-fit: cover; }
.market-ticker time { 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] { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; margin-left: auto; font-size: 12px; }
.tabbed-heading [data-module-more] svg { width: 14px; height: 14px; }
.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; transition: background-color 160ms ease-out, color 160ms ease-out; }
.module-tabs button:not(.is-active):is(:hover, :focus-visible) { background: rgba(89, 96, 108, .11); 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; }
html[data-theme="dark"] .module-tabs button:not(.is-active):is(:hover, :focus-visible) { background: rgba(255, 255, 255, .075); }

.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); }
html[data-theme="dark"] .hot-strip { border-color: rgba(255, 255, 255, 0.08); background: rgba(30, 31, 34, 0.92); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); }
html[data-theme="dark"] .hot-strip-head { color: #d6d8dd; }
html[data-theme="dark"] .hot-strip-grid > a,
html[data-theme="dark"] .hot-placeholder { background: rgba(255, 255, 255, 0.055); }
html[data-theme="dark"] .hot-strip-grid small { color: #a8acb3; }
html[data-theme="dark"] .hot-placeholder i { background: rgba(255, 255, 255, 0.12); color: #aeb2b9; }
html[data-theme="dark"] .hot-placeholder b { background: rgba(255, 255, 255, 0.065); }
.hot-sites-heading { justify-content: flex-start; gap: 14px; }
.hot-site-sort { display: flex; min-width: 0; flex: 1; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.hot-site-sort::-webkit-scrollbar { display: none; }
.hot-site-sort a { position: relative; display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; padding: 0 8px; color: var(--ink-muted); font-size: 13px; font-weight: 620; text-decoration: none; white-space: nowrap; }
.hot-site-sort a:not(:last-child)::after { position: absolute; right: -1px; color: var(--line); content: "·"; font-weight: 400; }
.hot-site-sort a:hover { color: var(--ink-strong); }
.hot-site-sort a.is-active { color: var(--coral); }
.hot-site-sort a.is-active::before { position: absolute; right: 8px; bottom: 1px; left: 8px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.hot-sites-panel .hot-sites-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hot-sites-grid [data-quick-item][hidden] { display: none; }
.quick-load-more { display: grid; grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr); align-items: center; gap: 12px; margin-top: 11px; }
.quick-load-more::before,
.quick-load-more::after { height: 1px; background: var(--line); content: ""; }
.quick-load-more[hidden] { display: none; }
.quick-load-more button { display: inline-flex; min-height: 36px; align-items: center; gap: 5px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font-size: 11px; }
.quick-load-more button:hover { color: var(--coral); }
.quick-load-more button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.quick-load-more svg { width: 14px; height: 14px; }


.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
#recommend .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.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-width: 0; min-height: 78px; gap: 10px; overflow: hidden; padding: 12px 10px 8px; text-decoration: none; }
.resource-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border-radius: 50%; background: #eceef2; color: #6970a3; font-weight: 800; }
.resource-main > .icon-glow-shell { width: 42px; height: 42px; flex: 0 0 42px; }
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; flex: 1; overflow: hidden; }
.resource-heading { display: flex; min-width: 0; max-width: 100%; align-items: baseline; gap: 5px; overflow: hidden; }
.resource-heading strong { display: block; min-width: 0; max-width: 100%; flex: 1; 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; }
.cwnav-site-cards-large .resource-main { min-height: 98px; padding: 16px 14px 10px; }
.cwnav-site-cards-large .resource-icon { width: 52px; height: 52px; flex-basis: 52px; }
.cwnav-site-cards-large .resource-main > .icon-glow-shell { width: 52px; height: 52px; flex-basis: 52px; }
.cwnav-site-cards-large .resource-icon img { width: 38px; height: 38px; }
.cwnav-site-cards-compact .resource-main { min-height: 68px; padding-block: 8px 5px; }
.cwnav-site-cards-compact .resource-description { -webkit-line-clamp: 1; }
.resource-tags { display: none; }
#recommend .resource-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 0; border-radius: 10px; background: var(--surface-soft); transition: background 160ms ease-out; }
#recommend .resource-card[hidden] { display: none; }
#recommend .resource-card:hover { background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface)); box-shadow: none; transform: none; }
#recommend .resource-main,
.cwnav-site-cards-large #recommend .resource-main,
.cwnav-site-cards-compact #recommend .resource-main { min-height: 100px; align-items: center; gap: 10px; padding: 10px 38px 34px 10px; }
#recommend .resource-icon,
.cwnav-site-cards-large #recommend .resource-icon,
.cwnav-site-cards-compact #recommend .resource-icon { width: 52px; height: 52px; flex-basis: 52px; }
#recommend .resource-main > .icon-glow-shell,
.cwnav-site-cards-large #recommend .resource-main > .icon-glow-shell,
.cwnav-site-cards-compact #recommend .resource-main > .icon-glow-shell { width: 52px; height: 52px; flex-basis: 52px; }
#recommend .resource-icon img,
.cwnav-site-cards-large #recommend .resource-icon img,
.cwnav-site-cards-compact #recommend .resource-icon img { width: 42px; height: 42px; }
#recommend .resource-copy { display: grid; gap: 3px; }
#recommend .resource-heading strong { font-size: 13px; }
#recommend .resource-description { max-width: 68ch; margin: 0; -webkit-line-clamp: 2; }
#recommend .resource-tags { display: flex; min-width: 0; min-height: 19px; align-items: center; gap: 4px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; }
#recommend .resource-tags::-webkit-scrollbar { display: none; }
#recommend .resource-tags > span,
#recommend .resource-tags > a { display: inline-flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 2px; overflow: hidden; padding: 3px 5px; border-radius: 4px; background: rgba(136, 136, 136, .1); color: var(--ink-muted); font-size: 11px; line-height: 13px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
#recommend .resource-tags > .resource-category-tag { background: rgba(241, 64, 75, .1); color: #f1404b; }
#recommend .resource-tags svg { width: 11px; height: 11px; flex: 0 0 11px; }
#recommend .resource-topic-marker { flex: 0 0 auto; }
#recommend .resource-meta { position: absolute; right: 5px; bottom: 5px; min-height: 32px; padding: 0; border-top: 0; background: transparent; }
#recommend .resource-meta--taxonomy { left: 10px; }
#recommend .resource-meta--taxonomy::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--line); content: ""; }
#recommend .resource-meta--taxonomy > .resource-tags { flex: 1 1 auto; padding: 0; border-radius: 0; background: transparent; color: inherit; }
#recommend .resource-meta > .resource-score { display: none; }
#recommend .resource-external { flex: 0 0 32px; color: #93959a; }
#recommend .resource-meta--taxonomy .resource-external svg { width: 13px; height: 13px; stroke-width: 1.7; }
html[data-theme="dark"] #recommend .resource-external { color: #73757a; }

.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; }
.cwnav-software-cards-compact .software-card { min-height: 168px; }
.cwnav-software-cards-compact .software-main { flex-direction: row; gap: 10px; padding: 13px 10px 8px; text-align: left; }
.cwnav-software-cards-compact .software-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 12px; }
.cwnav-software-cards-compact .software-icon img { width: 44px; height: 44px; }

.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; }
.cwnav-article-cards-cover .article-grid article > a { grid-template-columns: 1fr; grid-template-rows: 138px minmax(126px, auto); }
.cwnav-article-cards-cover .article-media { height: 138px; }

.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: sticky; top: 84px; align-self: start; }
.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-row { display: flex; width: 100%; min-width: 0; min-height: inherit; align-items: center; justify-content: space-between; gap: 9px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rate-row > span { display: flex; min-width: 0; align-items: center; gap: 9px; }
.rate-row:hover strong, .rate-row:focus-visible strong { color: var(--coral); }
.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; }

/* Each icon carries a blurred duplicate of itself so its own colors create the glow. */
.icon-glow-shell {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  isolation: isolate;
}
.icon-glow-shell::before {
  position: absolute;
  z-index: 0;
  inset: -10%;
  border-radius: 30%;
  background: var(--icon-glow-color, var(--coral));
  content: "";
  filter: blur(10px) opacity(.7) saturate(1.16);
  opacity: .6;
  pointer-events: none;
  transform: scale(0);
  transform-origin: center;
  transition: transform .3s ease-out;
}
.icon-glow-shell.has-icon-glow-image::before {
  background-color: transparent;
  background-image: var(--icon-glow-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.icon-glow-mark { position: relative; z-index: 1; }
.icon-glow-trigger:is(:hover, :focus-within) .icon-glow-shell::before { transform: scale(1); }
.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: var(--overview-gradient); 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; overflow: hidden; border-radius: 50%; background: #fff; }
.overview-logo img { display: block; 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; }
html[data-theme="dark"] .overview-stat { border-color: #2da4ff; background: rgba(36, 139, 243, .12); color: #3da9ff; }
html[data-theme="dark"] .overview-stat:nth-child(3) { border-color: #23c47b; background: rgba(46, 189, 115, .12); color: #2dd083; }
html[data-theme="dark"] .overview-stat:nth-child(4),
html[data-theme="dark"] .overview-stat-main { border-color: #ff4c60; background: rgba(243, 75, 91, .12); color: #ff5364; }
.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-row > 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: 11px; }
.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 button { font-size: 11px; }
.rate-footer svg, .news-footer svg, .article-ranking-widget .widget-heading svg { width: 13px; height: 13px; }
.currency-dialog { width: min(520px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 42px rgba(20, 23, 31, .28); }
.currency-dialog::backdrop { background: rgba(18, 21, 28, .62); }
.currency-dialog-head { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.currency-dialog-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-strong); font-size: 16px; }
.currency-dialog-head h2 svg { width: 18px; height: 18px; color: var(--coral); }
.currency-dialog-close, .currency-swap { display: inline-grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; }
.currency-dialog-close { border-radius: 6px; }
.currency-dialog-close:hover, .currency-dialog-close:focus-visible, .currency-swap:hover, .currency-swap:focus-visible { background: var(--surface-soft); color: var(--ink-strong); }
.currency-dialog-close svg, .currency-swap svg { width: 18px; height: 18px; }
.currency-dialog-body { display: grid; gap: 18px; padding: 20px; }
.currency-dialog label { display: grid; min-width: 0; gap: 7px; color: var(--ink-muted); font-size: 12px; font-weight: 600; }
.currency-dialog input, .currency-dialog select { width: 100%; height: 44px; min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface-soft); color: var(--ink-strong); font: inherit; font-size: 14px; }
.currency-dialog input:focus, .currency-dialog select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(243, 75, 91, .12); }
.currency-route { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: end; gap: 10px; }
.currency-swap { margin-bottom: 2px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.currency-result { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 60px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--surface-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.currency-result span:first-child { min-width: 0; color: var(--ink-muted); }
.currency-result strong { min-width: 0; color: var(--coral); text-align: right; overflow-wrap: anywhere; }
.currency-dialog.is-invalid .currency-result { grid-template-columns: 1fr; }
.currency-dialog.is-invalid .currency-result > span:not(:first-child), .currency-dialog.is-invalid .currency-result strong { display: none; }
.currency-note { margin: -8px 0 0; color: var(--ink-muted); font-size: 11px; text-align: right; }
.hot-news-widget { padding-top: 0 !important; }
.hot-news-head { display: flex; min-width: 0; min-height: 48px; align-items: center; }
.news-tabs { display: flex; min-width: 0; width: 100%; gap: 15px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.news-tabs::-webkit-scrollbar { display: none; }
.news-tabs button { display: inline-flex; min-height: 24px; flex: 0 0 auto; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 21px; opacity: .8; white-space: nowrap; cursor: pointer; transition: color .3s ease-out, opacity .3s ease-out; }
.news-tabs button:hover, .news-tabs button:focus-visible { color: #f1404b; opacity: 1; }
.news-tabs button.is-active { color: #f1404b; font-weight: 700; opacity: 1; }
.news-source-icon { display: inline-grid; width: 14px; height: 14px; flex: 0 0 14px; place-items: center; overflow: hidden; border-radius: 3px; }
.news-source-icon img { display: block; width: 14px; height: 14px; object-fit: contain; }
.news-source-fallback { display: none; width: 14px; height: 14px; place-items: center; border-radius: 3px; background: var(--surface-soft); color: currentColor; font-size: 8px; font-weight: 750; line-height: 1; }
.news-source-icon.is-error img { display: none; }
.news-source-icon.is-error .news-source-fallback { display: grid; }
.news-source-label { line-height: 18px; }
.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: 14px; font-weight: 400; line-height: 21px; }
.widget-rail .sidebar-ranked-list li a > .rank-number {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  border-radius: 4px;
  background: rgba(136, 136, 136, .1);
  color: #666;
  font-size: 11.2px;
  font-weight: 400;
  line-height: 18px;
}
.widget-rail .sidebar-ranked-list li:nth-child(1) .rank-number { background: rgba(255, 84, 115, .1); color: #f1404b; }
.widget-rail .sidebar-ranked-list li:nth-child(2) .rank-number { background: rgba(255, 110, 6, .1); color: #ff6f06; }
.widget-rail .sidebar-ranked-list li:nth-child(3) .rank-number { background: rgba(149, 92, 255, .1); color: #955cff; }
.widget-rail .sidebar-ranked-list li a > .rank-title { width: auto; min-width: 0; flex: 1; font-size: 14px; font-weight: 400; line-height: 21px; }
.hot-news-widget .sidebar-ranked-list li a { align-items: flex-start; padding-bottom: 8px; }
.hot-news-widget .sidebar-ranked-list li a > .rank-title { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.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 {
  --ranking-surface: #fff;
  --ranking-text: #484b4f;
  --ranking-muted: #93959a;
  --ranking-tile: rgba(116, 116, 116, .1);
  --ranking-pattern-before-opacity: .3;
  --ranking-pattern-after-opacity: .1;
  position: relative;
  display: flex;
  min-height: 524px;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  padding: 0 !important;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(241, 64, 75, .2) 0%, var(--ranking-surface) 30%) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
  color: var(--ranking-text);
}
.site-ranking-widget::before,
.site-ranking-widget::after {
  position: absolute;
  z-index: 0;
  left: 0;
  pointer-events: none;
  content: "";
  filter: blur(2px);
  transform: scale(1.05);
  transform-origin: left center;
}
.site-ranking-widget::before {
  top: 0;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 12px 0 100% 0;
  background: linear-gradient(161deg, rgba(220, 65, 75, .6) 10%, transparent 90%);
  opacity: var(--ranking-pattern-before-opacity);
}
.site-ranking-widget::after {
  bottom: 0;
  width: 115%;
  height: 40%;
  border-radius: 0 100% 0 0;
  background: linear-gradient(179deg, rgba(241, 64, 75, .4) 10%, #d12768 80%);
  filter: blur(4px);
  opacity: var(--ranking-pattern-after-opacity);
}
.site-ranking-widget > * { position: relative; z-index: 1; }
.site-ranking-head { position: relative; display: flex; min-height: 43px; align-items: center; justify-content: space-between; padding: 0 15px; }
.site-ranking-head::after { position: absolute; right: 15px; bottom: 0; left: 15px; height: 1px; background: color-mix(in srgb, var(--ranking-text) 10%, transparent); content: ""; }
.site-ranking-head h2 { display: flex; align-items: center; gap: 2px; margin: 0; color: var(--ranking-text); font-size: 16px; font-weight: 500; line-height: 1.2; }
.site-ranking-head h2 svg { width: 12px; height: 12px; color: currentColor; stroke-width: 2; }
.site-ranking-head h2 svg:last-child { transform: scaleX(-1); }
.ranking-tabs { position: relative; display: flex; min-height: 43px; align-items: stretch; gap: 10px; }
.ranking-tabs button { position: relative; z-index: 1; min-height: 43px; padding: 0; border: 0; background: transparent; color: var(--ranking-muted); font-size: 16px; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.ranking-tabs button.is-active { color: #f1404b; font-weight: 700; }
.ranking-tabs .module-tab-indicator { top: auto; bottom: 0; height: 3px; border-radius: 2px; background: #ff4058; box-shadow: 0 1px 5px rgba(255, 64, 88, .72); }
.site-ranking-widget [data-module-panel] { flex: 1; padding: 15px; }
.site-ranking-widget .sidebar-site-list { display: grid; gap: 8px; margin: 0; }
.site-ranking-widget .sidebar-site-list li { height: 60px; border: 0; }
.site-ranking-widget .sidebar-site-list a { height: 60px; min-height: 60px; gap: 8px; padding: 10px; border-radius: 8px; background: var(--ranking-tile); transition: box-shadow .3s, background-color .3s, transform .3s; }
.site-ranking-widget .sidebar-site-list a:hover { background: var(--ranking-tile); box-shadow: 0 0 2px var(--ranking-tile) inset, 0 20px 25px -10px rgba(0, 0, 0, .1); }
.site-ranking-widget .sidebar-site-list a > .site-rank-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 50%; background: rgba(116, 116, 116, .1); }
.site-ranking-widget .site-rank-icon img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; }
.site-ranking-widget .site-rank-copy { gap: 0; }
.site-ranking-widget .site-rank-copy strong { color: var(--ranking-text); font-size: 14px; font-weight: 500; line-height: 21px; }
.site-ranking-widget .site-rank-copy small { color: var(--ranking-muted); font-size: 12px; line-height: 18px; }
.site-ranking-widget .site-rank-score { display: none; }
.site-ranking-widget .widget-more { min-height: 35px; margin: 0 16px 16px; border-radius: 8px; background: rgba(255, 110, 6, .1); color: #ff6f06; font-size: 14px; line-height: 21px; text-decoration: none; transition: .3s; }
.site-ranking-widget .widget-more:hover { background: #ff6f06; color: #fff; }
.ranking-empty { display: grid; min-height: 400px; place-items: center; margin: 0; color: var(--ranking-muted); font-size: 12px; }
.article-ranking-widget .sidebar-ranked-list { margin-top: 7px; }
.article-ranking-widget .sidebar-ranked-list li a > .rank-number { width: 16px; height: 16px; flex-basis: 16px; background: rgba(129, 139, 149, .1); color: #818b95; line-height: 16px; }
.article-ranking-widget .sidebar-ranked-list li:nth-child(1) .rank-number { background: rgba(255, 84, 115, .1); color: #f1404b; }
.article-ranking-widget .sidebar-ranked-list li:nth-child(2) .rank-number { background: rgba(255, 110, 6, .1); color: #ff6f06; }
.article-ranking-widget .sidebar-ranked-list li:nth-child(3) .rank-number { background: rgba(149, 92, 255, .1); color: #955cff; }
.article-ranking-widget .widget-heading a { background: transparent; }

/* Sidebar headers share the source site's expanding rule and color response. */
.rate-widget > .widget-heading,
.article-ranking-widget > .widget-heading,
.hot-news-head,
.site-ranking-head,
.site-tag-cloud > .site-aside-heading,
.archive-tag-cloud > .widget-heading {
  --widget-line-inset: 0px;
  position: relative;
}
.site-ranking-head { --widget-line-inset: 15px; }
.rate-widget > .widget-heading::before,
.rate-widget > .widget-heading::after,
.article-ranking-widget > .widget-heading::before,
.article-ranking-widget > .widget-heading::after,
.hot-news-head::before,
.hot-news-head::after,
.site-ranking-head::before,
.site-ranking-head::after,
.site-tag-cloud > .site-aside-heading::before,
.site-tag-cloud > .site-aside-heading::after,
.archive-tag-cloud > .widget-heading::before,
.archive-tag-cloud > .widget-heading::after {
  position: absolute;
  z-index: 2;
  right: var(--widget-line-inset);
  bottom: 0;
  left: var(--widget-line-inset);
  height: 1px;
  content: "";
  pointer-events: none;
}
.rate-widget > .widget-heading::before,
.article-ranking-widget > .widget-heading::before,
.hot-news-head::before,
.site-ranking-head::before,
.site-tag-cloud > .site-aside-heading::before,
.archive-tag-cloud > .widget-heading::before { background: var(--line); }
.rate-widget > .widget-heading::after,
.article-ranking-widget > .widget-heading::after,
.hot-news-head::after,
.site-ranking-head::after,
.site-tag-cloud > .site-aside-heading::after,
.archive-tag-cloud > .widget-heading::after {
  background: #f1404b;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease-out;
}
.rate-widget:is(:hover, :focus-within) > .widget-heading::after,
.article-ranking-widget:is(:hover, :focus-within) > .widget-heading::after,
.hot-news-widget:is(:hover, :focus-within) > .hot-news-head::after,
.site-ranking-widget:is(:hover, :focus-within) > .site-ranking-head::after,
.site-tag-cloud:is(:hover, :focus-within) > .site-aside-heading::after,
.archive-tag-cloud:is(:hover, :focus-within) > .widget-heading::after { transform: scaleX(1); }
.rate-widget > .widget-heading h2,
.article-ranking-widget > .widget-heading h2,
.site-ranking-head h2,
.site-tag-cloud > .site-aside-heading h2,
.archive-tag-cloud > .widget-heading h2 { transition: color .3s ease-out; }
.rate-widget:is(:hover, :focus-within) > .widget-heading h2,
.article-ranking-widget:is(:hover, :focus-within) > .widget-heading h2,
.site-ranking-widget:is(:hover, :focus-within) > .site-ranking-head h2,
.site-tag-cloud:is(:hover, :focus-within) > .site-aside-heading h2,
.archive-tag-cloud:is(:hover, :focus-within) > .widget-heading h2 { color: #f1404b; }
.article-ranking-widget .widget-heading h2 .widget-tools-icon,
.site-tag-cloud .site-aside-heading h2 .widget-tools-icon,
.archive-tag-cloud .widget-heading h2 .widget-tools-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #f1404b;
  filter: drop-shadow(2px 2px 3px rgba(220, 65, 75, .6));
}
.widget-tools-icon::before,
.widget-tools-icon::after {
  position: absolute;
  width: 9px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}
.widget-tools-icon::before { top: 4px; left: 3px; }
.widget-tools-icon::after { top: 10px; left: 6px; }
html[data-theme="dark"] .site-ranking-widget {
  --ranking-surface: #2d2e2f;
  --ranking-text: #b4b8bf;
  --ranking-muted: #73757a;
  --ranking-tile: rgba(116, 116, 116, .1);
  --ranking-pattern-before-opacity: .5;
  --ranking-pattern-after-opacity: .08;
}
@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) var(--cwnav-widget-width, 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; width: min(var(--cwnav-content-width), calc(100% - 20px)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; margin: 0 auto 18px; }
.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); }
.cwnav-ad-slot { display: grid; width: min(var(--cwnav-content-width), calc(100% - 20px)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; margin: 10px auto; }
.cwnav-ad-item { display: grid; min-width: 0; min-height: 92px; grid-template-columns: 112px minmax(0, 1fr) 24px; align-items: center; gap: 14px; overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 6px 18px rgba(42, 34, 50, .06); text-decoration: none; transition: border-color 160ms ease-out, transform 160ms ease-out; }
.cwnav-ad-item[hidden] { display: none; }
.cwnav-ad-item:hover { border-color: color-mix(in srgb, var(--coral) 42%, var(--line)); transform: translateY(-1px); }
.cwnav-ad-item > img { width: 112px; height: 72px; border-radius: 6px; object-fit: cover; }
.cwnav-ad-copy { display: grid; min-width: 0; gap: 3px; }
.cwnav-ad-copy small { color: var(--coral); font-size: 9px; font-weight: 750; }
.cwnav-ad-copy strong { overflow: hidden; color: var(--ink-strong); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cwnav-ad-copy > span { display: -webkit-box; overflow: hidden; color: var(--ink-muted); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cwnav-ad-item > svg { width: 17px; height: 17px; color: var(--ink-muted); }
.cwnav-ad-item.is-compact { min-height: 72px; grid-template-columns: 72px minmax(0, 1fr) 18px; gap: 10px; padding: 8px; }
.cwnav-ad-item.is-compact > img { width: 72px; height: 54px; }
.cwnav-ad-slot--home-top { margin-top: 16px; }
.cwnav-ad-slot--carousel { position: relative; grid-template-columns: minmax(0, 1fr); }
.cwnav-ad-slot--carousel .cwnav-ad-item { min-height: 132px; padding-right: 116px; }
.cwnav-ad-slot--carousel .cwnav-ad-item > img { width: 136px; height: 110px; }
.cwnav-ad-carousel-controls { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 5px; }
.cwnav-ad-carousel-controls > button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-muted); }
.cwnav-ad-carousel-controls > button:hover { color: var(--coral); }
.cwnav-ad-carousel-controls > button svg { width: 14px; height: 14px; }
.cwnav-ad-carousel-controls > span { display: flex; gap: 4px; }
.cwnav-ad-carousel-controls > span button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.cwnav-ad-carousel-controls > span button[aria-pressed="true"] { background: var(--coral); }
.cwnav-ad-slot--home-links,
.cwnav-ad-slot--article,
.cwnav-ad-slot--comments,
.cwnav-ad-slot--resource,
.cwnav-ad-slot--download,
.cwnav-ad-slot--sidebar { width: 100%; }
.cwnav-ad-slot--home-links { grid-column: 2 / -1; }
.cwnav-ad-slot--sidebar { grid-template-columns: minmax(0, 1fr); margin: 0 0 12px; }
.cwnav-ad-slot--download { margin: 16px 0 0; }
.cwnav-ad-slot--footer { margin-top: 16px; }
.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; min-height: 328px; grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.45fr) auto; grid-template-rows: auto auto; align-content: space-between; gap: 24px 36px; padding: 48px 26px 28px; }
.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; flex-wrap: wrap; gap: 7px; }
.footer-social a, .footer-social button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--ink); cursor: pointer; }
.footer-social a:hover, .footer-social button:hover { color: var(--coral); }
.footer-social svg { width: 16px; height: 16px; }
.footer-more-content { margin-top: -11px !important; color: var(--ink-muted) !important; white-space: normal; }
.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 .sub-menu { flex-basis: 100%; margin: 0 0 8px 14px; }
.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-block-two { color: var(--ink-muted); font-size: 13px; line-height: 1.8; }
.footer-block-two a { margin-right: 16px; color: var(--ink); text-decoration: none; }
.footer-block-two a:hover { color: var(--coral); }
.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; }
.site-footer--compact .footer-inner { grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr); }
.site-footer--compact .footer-codes { grid-column: 1 / -1; }
.site-footer--centered .footer-inner { display: flex; max-width: 900px; flex-direction: column; align-items: center; margin: 0 auto; text-align: center; }
.site-footer--centered .footer-brand p { margin-inline: auto; }
.site-footer--centered .footer-social, .site-footer--centered .footer-nav ul, .site-footer--centered .footer-friends > div, .site-footer--centered .footer-codes, .site-footer--centered .footer-legal { justify-content: center; }

.floating-tools {
  position: fixed;
  z-index: 75;
  right: 0;
  bottom: 22px;
  display: grid;
  width: 40px;
  gap: 6px;
  padding: 8px 0;
  transform: translateX(24px);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-tools::before {
  display: none;
}
.floating-tools:hover,
.floating-tools:focus-within,
.floating-tools.is-open { transform: translateX(0); }
.floating-tools > button,
.floating-tools > a {
  position: relative;
  border: 0;
  background: color-mix(in srgb, var(--surface-raised) 72%, transparent);
  color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(18, 14, 25, .06);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  transition: opacity 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
.floating-tools > .tool-rail-toggle { display: none; }
.floating-tools > [hidden] { display: none !important; }
.floating-tools > button:hover,
.floating-tools > a:hover,
.floating-tools > button[aria-expanded="true"] { background: color-mix(in srgb, var(--surface-soft) 88%, transparent); color: var(--coral); }
@media (hover: hover) and (pointer: fine) {
  .floating-tools:not(:hover):not(:focus-within):not(.is-open) > button,
  .floating-tools:not(:hover):not(:focus-within):not(.is-open) > a { opacity: 0; pointer-events: none; }
}
.floating-tools > [data-tool-label]::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: max-content;
  max-width: 132px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--ink-strong);
  color: var(--surface);
  content: attr(data-tool-label);
  font-size: 11px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  transition: opacity 140ms ease-out, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.floating-tools > [data-tool-label]:hover::after,
.floating-tools > [data-tool-label]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.floating-tools .weather-tool { position: relative; background: linear-gradient(145deg, #248bf3, #6458ef); color: #fff; }
.weather-temperature { position: absolute; top: -7px; right: -7px; display: grid; min-width: 30px; height: 20px; place-items: center; padding: 0 5px; border: 2px solid var(--surface); border-radius: 10px; background: var(--coral); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1; }
.weather-tool[data-weather-state="loading"] .weather-temperature { background: #6d727a; }
.weather-tool[data-weather-state="error"] .weather-temperature { background: #8b555a; }
.tool-popover {
  position: fixed;
  z-index: 72;
  right: 64px;
  bottom: 22px;
  width: min(326px, calc(100% - 84px));
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  animation: tool-popover-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-popover[hidden] { display: none; }
@keyframes tool-popover-in {
  from { opacity: 0.65; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.tool-popover-head { display: flex; min-height: 42px; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool-popover-head > div { display: grid; gap: 2px; }
.tool-popover-head strong { color: var(--ink-strong); font-size: 14px; }
.tool-popover-head span { color: var(--ink-muted); font-size: 11px; }
.tool-popover-head .icon-button { flex: 0 0 auto; width: 36px; height: 36px; }
.tool-contact-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 13px; }
.tool-contact-codes figure { min-width: 0; margin: 0; text-align: center; }
.tool-contact-codes img,
.tool-contact-codes .footer-qr { width: min(112px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: contain; }
.tool-contact-codes figcaption { margin-top: 7px; color: var(--ink-muted); font-size: 11px; }
.tool-contact-email { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; border-radius: 8px; background: var(--surface-soft); font-size: 11px; text-decoration: none; }
.weather-summary { display: grid; grid-template-columns: 56px auto 1fr; align-items: center; gap: 9px; margin: 13px 0 16px; }
.weather-summary > svg { width: 48px; height: 48px; color: var(--blue); stroke-width: 1.55; }
.weather-summary strong { color: var(--ink-strong); font-size: 38px; font-variant-numeric: tabular-nums; font-weight: 620; line-height: 1; }
.weather-summary span { align-self: end; padding-bottom: 3px; color: var(--ink-muted); font-size: 12px; }
.weather-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weather-range > span { display: grid; min-width: 0; justify-items: center; gap: 2px; padding: 11px 3px; }
.weather-range > span + span { border-left: 1px solid var(--line); }
.weather-range svg { width: 16px; height: 16px; color: var(--coral); }
.weather-range small { color: var(--ink-muted); font-size: 11px; }
.weather-range b { color: var(--ink-strong); font-size: 11px; font-variant-numeric: tabular-nums; }
.weather-forecast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 10px 0 0; list-style: none; }
.weather-forecast li { display: grid; min-width: 0; justify-items: center; gap: 4px; padding: 7px 4px; }
.weather-forecast li + li { border-left: 1px solid var(--line); }
.weather-forecast span,
.weather-forecast small { color: var(--ink-muted); font-size: 11px; }
.weather-forecast svg { width: 22px; height: 22px; color: var(--blue); }
.weather-forecast strong { color: var(--ink-strong); font-size: 11px; font-variant-numeric: tabular-nums; }
.weather-actions { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.weather-provider { display: inline-flex; min-width: 0; min-height: 36px; align-items: center; gap: 5px; padding: 0 9px; border-radius: 8px; color: var(--ink-muted); font-size: 11px; }
.weather-provider:hover { background: var(--surface-soft); color: var(--ink); }
.weather-provider span { overflow: hidden; color: var(--ink); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.weather-provider svg { width: 13px; height: 13px; color: var(--coral); }
.weather-refresh { display: inline-flex; min-height: 36px; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font-size: 11px; }
.weather-refresh:hover { background: var(--surface-soft); color: var(--ink); }
.weather-refresh svg { width: 14px; height: 14px; }
.ai-orb {
  position: fixed;
  z-index: 77;
  right: 0;
  bottom: 84px;
  width: 52px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: #fff;
  cursor: grab;
  filter: drop-shadow(0 9px 18px rgba(43, 23, 78, .28));
  touch-action: none;
  transform: translateX(0);
  transition: filter 180ms ease-out, opacity 180ms ease-out, transform 280ms cubic-bezier(.16, 1, .3, 1);
  user-select: none;
}
.ai-orb.is-positioned { right: auto; bottom: auto; left: var(--ai-orb-x); top: var(--ai-orb-y); }
.ai-orb.is-dragging { cursor: grabbing; transition: none; }
.ai-orb-sphere {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: inherit;
  background: linear-gradient(180deg, #b64cff 0%, #ec4f86 48%, #24b8f5 100%);
  box-shadow: inset 6px 0 12px rgba(255, 255, 255, .18), inset -7px 0 13px rgba(31, 27, 91, .24);
  isolation: isolate;
}
.ai-orb-sphere::after { position: absolute; inset: 7px 6px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; content: ""; }
.ai-orb svg { position: relative; z-index: 1; width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(37, 26, 91, .42)); stroke-width: 1.8; transition: opacity 140ms ease-out; }
.ai-orb:not(.is-dragging):hover,
.ai-orb:not(.is-dragging):focus-visible { filter: drop-shadow(0 11px 22px rgba(93, 42, 173, .46)); transform: translateX(0); }
.ai-orb[aria-expanded="true"] { width: 52px; opacity: 1; transform: translateX(0); }

.ai-panel {
  --ai-accent: #c92f43;
  --ai-accent-hover: #ad2236;
  position: fixed;
  z-index: 74;
  right: 18px;
  bottom: 18px;
  display: flex;
  width: min(380px, calc(100% - 36px));
  height: min(520px, calc(100dvh - 92px));
  min-height: 360px;
  overflow: hidden;
  flex-direction: column;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(18, 14, 25, .28);
  animation: ai-panel-enter 320ms cubic-bezier(.16, 1, .3, 1);
}
.ai-panel[hidden] { display: none; }
@keyframes ai-panel-enter {
  from { opacity: .2; clip-path: inset(0 0 82% 62% round 14px); transform: translateY(12px) scale(.97); }
  to { opacity: 1; clip-path: inset(0 round 14px); transform: translateY(0) scale(1); }
}
.ai-panel-head { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 10px 8px 15px; background: var(--ai-accent); color: #fff; }
.ai-panel-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.ai-panel-identity > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.ai-panel-identity > span { display: grid; min-width: 0; gap: 1px; }
.ai-panel-identity strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ai-panel-identity small { overflow: hidden; color: rgba(255, 255, 255, .88); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ai-panel-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.ai-panel-actions button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; }
.ai-panel-actions button:hover { background: rgba(255, 255, 255, .26); }
.ai-panel-actions svg { width: 16px; height: 16px; }
.ai-thread { min-height: 0; overflow-y: auto; flex: 1; padding: 16px; background: color-mix(in srgb, var(--canvas) 48%, var(--surface)); scrollbar-color: color-mix(in srgb, var(--ink-muted) 48%, transparent) transparent; scrollbar-width: thin; }
.ai-message { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.ai-message + .ai-message { margin-top: 10px; }
.ai-message-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--coral) 16%, var(--surface)); color: var(--coral); }
.ai-message-avatar svg { width: 16px; height: 16px; }
.ai-message strong { color: var(--ink-strong); font-size: 12px; }
.ai-message p { margin: 6px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.ai-message ul { display: grid; gap: 5px; margin: 10px 0 0; padding-left: 18px; color: var(--ink); font-size: 12px; line-height: 1.5; }
.ai-message--user { grid-template-columns: minmax(0, 1fr) 32px; margin-left: 28px; background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.ai-message--user .ai-message-avatar { order: 2; background: var(--coral); color: #fff; }
.ai-message--user > div { order: 1; }
.ai-message.is-pending p { color: var(--ink-muted); }
.ai-message.is-error { border: 1px solid color-mix(in srgb, #d63638 30%, var(--line)); background: color-mix(in srgb, #d63638 7%, var(--surface)); }
.ai-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ai-shortcuts a { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; background: var(--surface-soft); color: var(--ink); font-size: 11px; text-decoration: none; }
.ai-shortcuts a:hover { background: color-mix(in srgb, var(--coral) 11%, var(--surface-soft)); color: var(--coral); }
.ai-shortcuts svg { width: 15px; height: 15px; }
.ai-composer { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-composer input { min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--ink); font-size: 12px; outline: 0; }
.ai-composer input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 16%, transparent); }
.ai-composer textarea { min-width: 0; height: 38px; max-height: 112px; padding: 9px 12px; resize: none; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 12px; line-height: 18px; outline: 0; }
.ai-composer textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 16%, transparent); }
.ai-composer button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--ai-accent); color: #fff; }
.ai-composer button:hover { background: var(--ai-accent-hover); }
.ai-composer > button:only-child:disabled { grid-column: 1 / -1; width: 100%; border-radius: 9px; background: var(--surface-soft); color: var(--ink-muted); cursor: not-allowed; }
.ai-composer [data-ai-submit]:disabled { opacity: .56; cursor: wait; }
.ai-composer button svg { width: 16px; height: 16px; }
.ai-composer .ai-primary-action { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; grid-column: 1 / -1; border-radius: 9px; background: var(--ai-accent); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.ai-composer .ai-primary-action:hover { background: var(--ai-accent-hover); }
.ai-primary-action svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .ai-orb.is-idle:not(:hover):not(:focus-visible):not([aria-expanded="true"]):not(.is-dragging) { width: 16px; opacity: 1; filter: none; transform: translateX(0); }
  .ai-orb.is-idle:not(:hover):not(:focus-visible):not([aria-expanded="true"]):not(.is-dragging) svg { opacity: 0; }
  .ai-orb.is-positioned.is-idle[data-orb-edge="right"]:not(:hover):not(:focus-visible):not([aria-expanded="true"]):not(.is-dragging) { left: calc(100vw - 16px); }
  .ai-orb.is-positioned.is-idle[data-orb-edge="left"]:not(:hover):not(:focus-visible):not([aria-expanded="true"]):not(.is-dragging) { left: 0; border-radius: 0 12px 12px 0; }
}

.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); }
.cwnav-ad-popup { width: min(var(--cwnav-popup-width, 560px), calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 0; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.cwnav-ad-popup::backdrop { background: rgba(17, 10, 21, .68); backdrop-filter: blur(5px); }
.cwnav-ad-popup-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 310px; }
.cwnav-ad-popup-shell:has(.cwnav-ad-popup-image) { grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr); }
.cwnav-ad-popup-close { position: absolute; z-index: 2; top: 10px; right: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 5px 16px rgba(0, 0, 0, .15); }
.cwnav-ad-popup-image { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.cwnav-ad-popup-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 42px 32px 32px; }
.cwnav-ad-popup-copy small { color: var(--coral); font-size: 10px; font-weight: 750; }
.cwnav-ad-popup-copy h2 { margin: 8px 0 12px; overflow-wrap: anywhere; color: var(--ink-strong); font-size: 25px; line-height: 1.25; }
.cwnav-ad-popup-copy p { color: var(--ink-muted); font-size: 13px; line-height: 1.7; }
.cwnav-ad-popup-copy a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; margin-top: auto; border-radius: 6px; background: var(--ink-strong); color: var(--surface); font-size: 12px; font-weight: 720; text-decoration: none; }
.cwnav-ad-popup-copy a svg { width: 15px; height: 15px; }
.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,
.mobile-nav-recall-wrap { 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% - 20px)); margin: 88px 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-layout.has-widget-sidebar { grid-template-columns: 190px minmax(0, 1fr) 270px; }
.directory-widget-sidebar { display: grid; min-width: 0; align-content: start; gap: 12px; }
.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; }
.article-footer > span { display: block; max-width: 72ch; margin-bottom: 5px; line-height: 1.7; }
.related-article { min-width: 0; border-radius: 8px; background: var(--surface-soft); }
.related-article a { display: grid; min-height: 78px; align-content: center; gap: 7px; padding: 14px; color: var(--ink); text-decoration: none; }
.related-article strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.related-article small { color: var(--ink-muted); font-size: 11px; }
.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; }
.comments-area { margin: 0 26px 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments-area h2,
.comments-area h3 { color: var(--ink-strong); font-size: 17px; }
.comment-list { margin: 0 0 24px; padding: 0; list-style: none; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .comment-body { position: relative; padding-left: 56px; }
.comment-list .avatar { position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; }
.comment-list .comment-author { color: var(--ink-strong); font-size: 12px; }
.comment-list .comment-meta { color: var(--ink-muted); font-size: 10px; }
.comment-list .comment-meta a { color: inherit; }
.comment-list .comment-content { margin-top: 8px; font-size: 13px; }
.comment-list .reply a { color: var(--coral); font-size: 11px; }
.comment-list .children { margin: 12px 0 0 26px; padding: 0; list-style: none; }
.comment-form { display: grid; gap: 11px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 5px; color: var(--ink-strong); font-size: 11px; font-weight: 650; }
.comment-form textarea,
.comment-form input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-muted); font-size: 10px; }
.comment-form .submit { min-height: 42px; padding: 0 17px; border: 0; border-radius: 6px; background: var(--coral); color: #fff; font-weight: 700; }
.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.has-sidebar { max-width: var(--cwnav-content-width); }
.standard-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.standard-page.has-sidebar .standard-layout { grid-template-columns: minmax(0, 1fr) 290px; }
.standard-layout > article { min-width: 0; 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; }

/* Native WordPress widgets share one compact visual language across placements. */
.cwnav-widget .widget-heading { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cwnav-widget-list { margin: 0 !important; padding: 0 !important; list-style: none; }
.cwnav-widget-list li {
  display: grid;
  min-width: 0;
  min-height: 54px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.cwnav-widget-list.is-ranked li { min-height: 44px; grid-template-columns: 22px minmax(0, 1fr); }
.cwnav-widget-list li > a { display: grid; min-width: 0; min-height: 0; align-content: center; gap: 2px; }
.cwnav-widget-list strong,
.cwnav-widget-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cwnav-widget-list strong { color: var(--ink-strong); font-size: 12px; font-weight: 680; }
.cwnav-widget-list small { color: var(--ink-muted); font-size: 10px; }
.cwnav-widget-icon { display: grid; width: 36px; height: 36px; place-items: center; overflow: hidden; border-radius: 9px; background: var(--surface-soft); color: var(--ink-muted); }
.cwnav-widget-icon img { width: 30px; height: 30px; object-fit: contain; }
.cwnav-widget-icon svg { width: 17px; height: 17px; }
.cwnav-widget-rank { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; background: var(--surface-soft); color: var(--ink-muted); font-size: 10px; font-weight: 760; }
.cwnav-widget-list li:nth-child(1) .cwnav-widget-rank { background: rgba(243, 75, 91, .12); color: var(--coral); }
.cwnav-widget-list li:nth-child(2) .cwnav-widget-rank { background: rgba(255, 139, 42, .12); color: #e66f13; }
.cwnav-widget-list li:nth-child(3) .cwnav-widget-rank { background: rgba(149, 92, 255, .12); color: #8350df; }
.cwnav-widget-profile { display: grid; gap: 12px; }
.cwnav-widget-profile-cover { height: 82px; margin: -1px; border-radius: 8px; background: var(--surface-soft) var(--profile-cover) center / cover no-repeat; }
.cwnav-widget-profile-head { display: flex; min-width: 0; align-items: center; gap: 10px; }
.cwnav-widget-profile-head img { width: 52px; height: 52px; flex: 0 0 52px; border: 3px solid var(--surface); border-radius: 50%; background: var(--surface-soft); object-fit: contain; }
.cwnav-widget-profile-head > span { display: grid; min-width: 0; gap: 2px; }
.cwnav-widget-profile-head strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cwnav-widget-profile-head small,
.cwnav-widget-profile p { color: var(--ink-muted); font-size: 11px; line-height: 1.65; }
.cwnav-widget-profile p { margin: 0; }
.cwnav-widget-button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; border-radius: 7px; background: var(--surface-soft); color: var(--ink-strong); font-size: 11px; font-weight: 680; text-decoration: none; }
.cwnav-widget-button:hover { color: var(--coral); }
.cwnav-widget-button svg { width: 14px; height: 14px; }
.detail-widget-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.detail-hot-strip-area { display: grid; min-width: 0; gap: 12px; }
.detail-hot-strip-slot { min-width: 0; }
.cwnav-current-resource { display: grid; gap: 8px; }
.cwnav-current-resource > p { margin: 0; color: var(--ink-muted); font-size: 10px; }
.cwnav-current-resource-link { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.cwnav-current-resource-link > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) and (min-width: 721px) {
  .directory-layout.has-widget-sidebar { grid-template-columns: 190px minmax(0, 1fr); }
  .directory-widget-sidebar { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@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: 10px; }
  .topnav a { padding-inline: 7px; }
  .topbar-clock { display: none; }
  .portal-shell { grid-template-columns: 132px minmax(0, 1fr) 310px; }
  .rail-collapsed .portal-shell { grid-template-columns: 58px minmax(0, 1fr) 310px; }
  .portal-bottom { grid-template-columns: minmax(0, 1fr) 310px; }
  .portal-bottom .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(230px, .95fr) minmax(0, 1.35fr) auto; }
  .footer-codes { grid-column: auto; }
  .quick-grid,
  .compact-panel .quick-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .hot-sites-panel .hot-sites-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  #recommend { padding: 12px; }
  html[data-theme="dark"] #recommend { background: #2d2e2f; }
  #recommend .panel-heading { min-height: 19px; margin-bottom: 8px; }
  #recommend .tabbed-heading { flex-wrap: nowrap; }
  #recommend .tabbed-heading h2 { font-size: 14px; line-height: 19px; }
  #recommend .tabbed-heading [data-module-more] { min-width: 0; min-height: 19px; padding: 0; }
  #recommend .resource-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #recommend .resource-card { display: flex; min-height: 0; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--surface-soft); }
  #recommend .resource-card:hover { background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface)); }
  #recommend .resource-main,
  .cwnav-site-cards-large #recommend .resource-main,
  .cwnav-site-cards-compact #recommend .resource-main { width: 100%; min-height: 70px; height: 70px; flex: 0 0 70px; align-items: center; gap: 8px; padding: 10px 10px 0; }
  #recommend .resource-icon,
  .cwnav-site-cards-large #recommend .resource-icon,
  .cwnav-site-cards-compact #recommend .resource-icon { width: 60px; height: 60px; flex-basis: 60px; }
  #recommend .resource-main > .icon-glow-shell,
  .cwnav-site-cards-large #recommend .resource-main > .icon-glow-shell,
  .cwnav-site-cards-compact #recommend .resource-main > .icon-glow-shell { width: 60px; height: 60px; flex-basis: 60px; }
  #recommend .resource-icon img,
  .cwnav-site-cards-large #recommend .resource-icon img,
  .cwnav-site-cards-compact #recommend .resource-icon img { width: 60px; height: 60px; }
  #recommend .resource-copy { gap: 0; }
  #recommend .resource-heading strong { font-size: 14px; line-height: 21px; }
  #recommend .resource-description { margin: 0; color: #93959a; font-size: 12px; line-height: 18px; -webkit-line-clamp: 1; }
  html[data-theme="dark"] #recommend .resource-description { color: #73757a; }
  #recommend .resource-meta--taxonomy { position: relative; inset: auto; width: 100%; min-height: 0; align-items: center; gap: 0; padding: 5px 10px 10px; margin: 5px 0 -3px; }
  #recommend .resource-meta--taxonomy::before { right: 10px; left: 10px; }
  #recommend .resource-meta--taxonomy .resource-tags { position: static; width: max-content; max-width: calc(100% - 24px); min-height: 19px; flex: 0 1 auto; gap: 4px; margin-right: 8px; flex-wrap: nowrap; }
  #recommend .resource-tags > span,
  #recommend .resource-tags > a { gap: 4px; padding: 2.75px 4.4px; font-size: 11px; line-height: 13.2px; }
  #recommend .resource-meta--taxonomy .resource-external { width: 16px; height: 18px; flex: 0 0 16px; margin-left: auto; border-radius: 0; }
}

/* Match the source portal's Bootstrap lg boundary: secondary widgets collapse below 992px. */
@media (max-width: 991.98px) {
  .cwnav-home .portal-shell { grid-template-columns: 128px minmax(0, 1fr); }
  .cwnav-home.rail-collapsed .portal-shell { grid-template-columns: 58px minmax(0, 1fr); }
  .cwnav-home .widget-rail { display: none; }
  .cwnav-home .portal-bottom { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
  .cwnav-home .portal-bottom > .side-widget { display: none; }
}

@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: 2; grid-template-columns: minmax(0, 1fr); }
  .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: 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; }
  .standard-page.has-sidebar .standard-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(360px, calc(100% - 30px)); height: 100dvh; overflow-y: auto; flex-direction: column; padding: 0 20px 20px; background: var(--surface); color: var(--ink); overscroll-behavior: contain; scrollbar-width: none; transform: translateX(calc(-100% - 40px)); transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
  .mobile-drawer::-webkit-scrollbar { display: none; }
  .drawer-head { position: sticky; z-index: 2; top: 0; display: grid; min-height: 70px; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; margin: 0 -20px; padding: max(7px, env(safe-area-inset-top)) 14px 7px; background: color-mix(in srgb, var(--surface) 96%, transparent); }
  .drawer-head .brand { min-width: 0; justify-self: center; gap: 7px; }
  .drawer-head .brand img { width: 40px; height: 40px; }
  .drawer-head .brand strong { font-size: 15px; }
  .drawer-head .brand small { display: none; }
  .drawer-head .icon-button { width: 44px; height: 44px; color: var(--ink-soft); }
  .drawer-head .drawer-command { justify-self: end; }
  .mobile-drawer > nav { margin-top: 10px; padding: 8px 0; border-radius: 12px; background: var(--surface-soft); }
  .mobile-top-menu,
  .mobile-top-menu .sub-menu { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
  .mobile-top-menu li { min-width: 0; }
  .mobile-top-menu > li > a,
  .mobile-menu-row > a,
  .mobile-top-menu .sub-menu > li > a { display: flex; min-width: 0; min-height: 43px; align-items: center; gap: 10px; padding: 0 15px; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 560; text-decoration: none; transition: background-color 160ms ease-out, color 160ms ease-out; }
  .mobile-top-menu a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-top-menu a > svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--ink-soft); transition: color 160ms ease-out; }
  .mobile-top-menu a:is(:hover, :focus-visible),
  .mobile-menu-row:has(.mobile-submenu-toggle[aria-expanded="true"]) > a { background: color-mix(in srgb, var(--surface-raised) 72%, transparent); color: var(--coral); }
  .mobile-top-menu a:is(:hover, :focus-visible) > svg,
  .mobile-menu-row:has(.mobile-submenu-toggle[aria-expanded="true"]) > a > svg { color: currentColor; }
  .mobile-menu-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; border-radius: 8px; }
  .mobile-menu-row > a { padding-right: 4px; }
  .mobile-submenu-toggle { display: grid; width: 44px; height: 43px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; }
  .mobile-submenu-toggle:hover,
  .mobile-submenu-toggle:focus-visible { background: color-mix(in srgb, var(--surface-raised) 72%, transparent); color: var(--coral); }
  .mobile-submenu-toggle svg { width: 16px; height: 16px; transition: transform 220ms cubic-bezier(.16, 1, .3, 1); }
  .mobile-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mobile-top-menu .sub-menu { gap: 2px; margin: 2px 8px 5px 25px; padding-left: 9px; border-left: 1px solid var(--line); }
  .mobile-top-menu .sub-menu > li > a,
  .mobile-top-menu .sub-menu .mobile-menu-row > a { min-height: 38px; padding-inline: 11px; color: var(--ink-muted); font-size: 12px; }
  .mobile-top-menu .sub-menu[hidden] { display: none; }
  .sidebar-menu { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
  .sidebar-menu > li > a { padding-inline: 15px; }
  .sidebar-menu .sub-menu { display: grid; gap: 2px; margin: 2px 0 5px 27px; padding: 0 0 0 10px; border-left: 1px solid var(--line); list-style: none; }
  .sidebar-menu .sub-menu a { min-height: 38px; color: var(--ink-muted); font-size: 12px; }
  .drawer-footer-menu { margin-top: 10px; padding: 8px 0; border-radius: 12px; background: var(--surface-soft); }
  .drawer-footer-menu a { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 0 10px; border-radius: 8px; color: var(--ink); font-size: 13px; text-decoration: none; }
  .drawer-footer-menu a:hover { background: var(--surface-soft); color: var(--coral); }
  .drawer-footer-menu svg { width: 17px; height: 17px; color: currentColor; }
  .drawer-account-card { display: grid; min-height: 64px; gap: 10px; margin-top: 24px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(115deg, #315ce8, #0876b8); color: #fff; text-decoration: none; }
  .drawer-account-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
  .drawer-account-identity > span:last-child { display: grid; min-width: 0; gap: 2px; }
  .drawer-account-identity strong,
  .drawer-account-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .drawer-account-identity strong { color: #fff; font-size: 14px; }
  .drawer-account-identity small { color: rgba(255, 255, 255, .86); font-size: 11px; }
  .drawer-account-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #315ce8; }
  .drawer-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .drawer-account-avatar svg { width: 20px; height: 20px; }
  .drawer-account-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .drawer-account-metrics > span { display: flex; min-width: 0; min-height: 24px; align-items: center; justify-content: center; gap: 4px; border-radius: 5px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .96); font-size: 10px; }
  .drawer-account-metrics svg { width: 12px; height: 12px; }
  .drawer-account-metrics b { font-variant-numeric: tabular-nums; }
  .mobile-drawer > .drawer-membership { position: relative; min-height: 0; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; padding: 6px 12px; overflow: hidden; border: 1px solid #6f4263; border-radius: 8px; background: linear-gradient(115deg, #4d3420 15%, #6f4263 37%, #2f2121 63%, #442424 93%); color: #ffe2be; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 21px; text-align: left; box-shadow: 0 0 0 0 transparent; transition: box-shadow 200ms ease-out; }
  .mobile-drawer > .drawer-membership::before { position: absolute; top: -110%; left: -100%; width: 220%; height: 200%; border-radius: 100%; background: linear-gradient(344deg, #000 5%, transparent 40%); content: ""; opacity: .2; }
  .mobile-drawer > .drawer-membership:hover { color: #ffe2be; box-shadow: 0 5px 20px -2px rgba(45, 25, 25, .3); }
  .mobile-drawer > .drawer-membership svg { width: 14px; height: 14px; margin-right: 8px; }
  .drawer-account-actions,
  .drawer-auth-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
  .drawer-account-actions[hidden],
  .drawer-auth-links[hidden],
  .drawer-account-metrics[hidden] { display: none !important; }
  .drawer-account-actions a,
  .drawer-auth-links a { display: flex; min-width: 0; min-height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; border-radius: 8px; background: color-mix(in srgb, var(--blue) 10%, var(--surface-soft)); color: #1768a8; font-size: 11px; text-decoration: none; }
  .drawer-account-actions a:nth-child(2),
  .drawer-auth-links a:nth-child(2) { background: color-mix(in srgb, var(--purple) 10%, var(--surface-soft)); color: #6940a5; }
  .drawer-account-actions a.is-danger,
  .drawer-auth-links a:nth-child(3) { background: color-mix(in srgb, var(--coral) 10%, var(--surface-soft)); color: #b52d3f; }
  .drawer-account-actions svg,
  .drawer-auth-links svg { width: 14px; height: 14px; flex: 0 0 14px; }
  html[data-theme="dark"] .drawer-account-actions a,
  html[data-theme="dark"] .drawer-auth-links a { color: #36a7ee; }
  html[data-theme="dark"] .drawer-account-actions a:nth-child(2),
  html[data-theme="dark"] .drawer-auth-links a:nth-child(2) { color: #a47ae6; }
  html[data-theme="dark"] .drawer-account-actions a.is-danger,
  html[data-theme="dark"] .drawer-auth-links a:nth-child(3) { color: #ff6575; }
  body.nav-open .mobile-drawer { transform: translateX(0); }
  .page-scrim { position: fixed; z-index: 75; inset: 0; background: rgba(18, 12, 21, 0.68); }
  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; }
  .mobile-nav-recall-wrap { position: fixed; z-index: 98; left: 0; bottom: max(62px, calc(48px + env(safe-area-inset-bottom))); display: block; width: 88px; height: 96px; transition: transform 220ms ease-out, opacity 160ms ease-out; }
  .mobile-nav-recall { position: absolute; top: 28px; left: 12px; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 12px; background: rgba(220, 220, 220, .6); color: #66686b; box-shadow: none; transition: transform 220ms ease-out; }
  html[data-theme="dark"] .mobile-nav-recall { background: rgba(55, 55, 55, .6); color: #a6a8ab; }
  .mobile-nav-recall svg { width: 16px; height: 16px; }
  body.nav-open .mobile-nav-recall-wrap { opacity: 0; pointer-events: none; transform: translateX(-50px); }

  .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; }
  .overview-banner { min-height: 128px; }
  .overview-links { height: 44px; }
  .overview-links a { min-height: 44px; }
  .rate-footer button,
  .news-footer button,
  .news-footer a,
  .article-ranking-widget .widget-heading a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .hot-news-head { align-items: center; }
  .news-tabs button,
  .ranking-tabs button { min-width: 44px; min-height: 44px; }
  .widget-rail .sidebar-ranked-list li a { min-height: 44px; }
  .site-ranking-widget .widget-more { min-height: 44px; }
  .demo-notice { margin-top: 0; }
  .market-ticker { gap: 14px; margin-inline: 0; }
  .market-ticker-label { left: -12px; }
  .portal-panel { margin-top: 10px; padding: 10px; }
  .panel-heading { align-items: flex-start; }
  .hot-site-sort a { min-height: 44px; }
  .tabbed-heading { position: relative; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .tabbed-heading h2 { width: 100%; min-height: 19px; padding-right: 52px; line-height: 19px; }
  .tabbed-heading [data-module-more] { position: absolute; top: 0; right: 0; display: inline-flex; min-width: 0; min-height: 18px; align-items: center; justify-content: flex-end; margin-left: 0; padding: 0; line-height: 18px; }
  .tabbed-heading .module-tabs { width: 100%; max-width: 100%; margin-top: 16px; }
  .module-tabs button { min-height: 28px; padding-inline: 10px; font-size: 14px; }
  .module-tab-indicator { height: 28px; }
  .quick-grid,
  .compact-panel .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .hot-sites-panel .hot-sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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: minmax(0, 1fr); }
  #recommend .resource-card { grid-template-columns: minmax(0, 1fr); }
  #recommend .resource-meta { min-height: 32px; }
  #recommend .resource-meta > .resource-score { display: none; }
  .resource-main { min-height: 82px; padding: 10px 8px 7px; }
  .resource-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .resource-main > .icon-glow-shell,
  .cwnav-site-cards-medium .resource-main > .icon-glow-shell,
  .cwnav-site-cards-compact .resource-main > .icon-glow-shell { 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 { min-height: 0; grid-template-columns: 1fr; grid-template-rows: none; align-content: start; gap: 23px; padding: 25px 18px; }
  .footer-codes { grid-column: auto; }
  .footer-legal { grid-column: auto; }
  .footer-social a, .footer-social button { width: 44px; height: 44px; }
  .site-footer--hide-brand-mobile .footer-brand { display: none; }
  .footer-nav a, .footer-friends a { min-height: 44px; }
  .floating-tools { right: 8px; bottom: 12px; width: 54px; transform: none; border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 14px; }
  .floating-tools > button,
  .floating-tools > a { width: 44px; height: 44px; }
  .floating-tools > .tool-rail-toggle { display: inline-grid; }
  .floating-tools > :not(.tool-rail-toggle) { display: none; }
  .floating-tools.is-mobile-open > :not(.tool-rail-toggle),
  .floating-tools.is-open > :not(.tool-rail-toggle) { display: inline-grid; }
  .floating-tools > [hidden] { display: none !important; }
  .floating-tools > [data-tool-label]::after { display: none; }
  .tool-popover { right: 70px; bottom: 12px; width: min(310px, calc(100% - 88px)); }
  .ai-orb { right: 0; bottom: 82px; width: 52px; height: 60px; }
  .ai-orb[aria-expanded="true"]:not(.is-positioned) { bottom: 82px; }
  .ai-panel { right: 10px; bottom: 10px; width: calc(100% - 20px); height: min(520px, calc(100dvh - 78px)); min-height: 330px; }
  .ai-panel-head { min-height: 54px; }
  .ai-thread { padding: 12px; }
  .ai-composer { padding: 9px 10px; }
  .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,
  .directory-layout.has-widget-sidebar { grid-template-columns: 1fr; }
  .directory-widget-sidebar { grid-column: auto; }
  .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-layout > article,
  .submit-card { padding: 18px; }
}

@media (max-width: 720px) and (hover: hover) and (pointer: fine) {
  .mobile-nav-recall-wrap { opacity: 0; }
  .mobile-nav-recall { transform: translateX(-18px); }
  body:not(.nav-open) .mobile-nav-recall-wrap:is(:hover, :focus-within) { opacity: 1; }
  body:not(.nav-open) .mobile-nav-recall-wrap:is(:hover, :focus-within) .mobile-nav-recall { transform: translateX(0); }
}

@media (max-width: 420px) {
  .currency-dialog { width: calc(100% - 20px); }
  .currency-dialog-body { gap: 14px; padding: 16px; }
  .currency-route { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 6px; }
  .currency-swap { width: 36px; height: 36px; flex-basis: 36px; }
  .currency-result { gap: 8px; padding-inline: 11px; font-size: 13px; }
  .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; }
}

.page-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--canvas);
  color: var(--coral);
  opacity: 1;
  transition: opacity 200ms ease-out, visibility 200ms ease-out;
}
.page-loader.is-hidden { visibility: hidden; opacity: 0; }
.page-loader-mark { display: flex; width: 70px; height: 48px; align-items: center; justify-content: center; gap: 7px; }
.page-loader-mark i { display: block; width: 10px; height: 10px; border-radius: 2px; background: currentColor; animation: cwnav-loader 720ms ease-in-out infinite alternate; }
.page-loader-mark i:nth-child(2) { animation-delay: 120ms; }
.page-loader-mark i:nth-child(3) { animation-delay: 240ms; }
.page-loader--spinner .page-loader-mark i:not(:first-child) { display: none; }
.page-loader--spinner .page-loader-mark i:first-child { width: 34px; height: 34px; border: 3px solid color-mix(in srgb, currentColor 24%, transparent); border-top-color: currentColor; border-radius: 50%; background: transparent; animation: cwnav-loader-spin 700ms linear infinite; }
.page-loader--blocks .page-loader-mark i { width: 15px; height: 15px; border-radius: 3px; }
@keyframes cwnav-loader { to { opacity: .3; transform: translateY(-7px); } }
@keyframes cwnav-loader-spin { to { transform: rotate(360deg); } }

.cwnav-home #recommend .resource-grid,
.post-type-archive-cwnav_site .archive-resource-grid { grid-template-columns: repeat(var(--cwnav-site-cols-desktop, 4), minmax(0, 1fr)); }
@media (min-width: 1200px) {
  .post-type-archive-cwnav_site .archive-resource-grid { grid-template-columns: repeat(var(--cwnav-site-cols-large, 5), minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .cwnav-home #recommend .resource-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  .post-type-archive-cwnav_site .archive-resource-grid { grid-template-columns: repeat(var(--cwnav-site-cols-wide, 6), minmax(0, 1fr)); }
}
@media (min-width: 1101px) and (max-width: 1399px) {
  .cwnav-home #recommend .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 576px) and (max-width: 1100px) {
  .cwnav-home #recommend .resource-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-type-archive-cwnav_site .archive-resource-grid { grid-template-columns: repeat(var(--cwnav-site-cols-tablet, 3), minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 575px) {
  .cwnav-home #recommend .resource-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-type-archive-cwnav_site .archive-resource-grid { grid-template-columns: repeat(var(--cwnav-site-cols-mobile, 2), minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 720px) {
  .cwnav-mobile-header-brand_search_menu .topbar > .brand { order: 1; }
  .cwnav-mobile-header-brand_search_menu .topbar > .topbar-actions { order: 2; }
  .cwnav-mobile-header-brand_search_menu .topbar > .menu-toggle { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-mark i { animation: none; }
}

@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; }
}

/* Editorial, article, ranking, and live-news surfaces mirror the portal's dense scanning rhythm. */
.content-widget-rail { position: sticky; top: 84px; display: grid; min-width: 0; align-content: start; gap: 16px; align-self: start; }
.content-widget-rail > section { min-width: 0; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.content-widget-rail .content-overview-widget { padding: 10px !important; }
.content-widget-rail .overview-banner { min-height: 116px; }
.content-widget-rail .widget-heading { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.content-widget-rail .widget-heading h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-strong); font-size: 16px; font-weight: 500; }
.content-widget-rail .widget-heading h2 svg { width: 15px; height: 15px; color: var(--coral); }
.content-widget-rail .widget-heading > a { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink-muted); }
.content-widget-rail .widget-heading > a:hover { color: var(--coral); }
.content-widget-rail .widget-heading > a svg { width: 14px; height: 14px; }
.compact-sites-widget { padding: 0 14px 14px !important; }
.compact-sites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
.compact-sites-grid > a { display: flex; min-width: 0; min-height: 40px; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; background: var(--surface-soft); color: var(--ink); text-decoration: none; }
.compact-sites-grid > a:hover { color: var(--coral); box-shadow: 0 10px 22px -18px rgba(0, 0, 0, .55); }
.compact-site-icon { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--surface) 76%, transparent); }
.compact-site-icon img { width: 25px; height: 25px; object-fit: contain; }
.compact-site-icon svg { width: 14px; height: 14px; }
.compact-sites-grid > a > span:last-child { display: grid; min-width: 0; gap: 2px; }
.compact-sites-grid strong, .compact-sites-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-sites-grid strong { font-size: 12px; font-weight: 650; }
.compact-sites-grid small { color: var(--ink-muted); font-size: 10px; }
.compact-sites-widget--media .compact-sites-grid { grid-template-columns: minmax(0, 1fr); }
.compact-sites-widget--media .compact-sites-grid > a { min-height: 68px; }
.compact-sites-widget--media .compact-site-icon { width: 86px; height: 52px; flex-basis: 86px; border-radius: 7px; }
.compact-sites-widget--media .compact-site-icon img { width: 48px; height: 48px; }
.content-author-card { min-height: 312px; padding-bottom: 16px; overflow: hidden; }

.journal-page.article-index-page { width: min(var(--cwnav-content-width), calc(100% - 20px)); margin: 90px auto 36px; }
.blog-feature { display: grid; height: 304px; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); gap: 16px; }
.blog-feature a { position: relative; min-width: 0; overflow: hidden; border-radius: 10px; background: var(--surface); color: #fff; text-decoration: none; }
.blog-feature a::after { position: absolute; inset: 34% 0 0; background: linear-gradient(180deg, transparent, rgba(10, 12, 17, .82)); content: ""; pointer-events: none; }
.blog-feature img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(.16, 1, .3, 1); }
.blog-feature a:hover img { transform: scale(1.025); }
.blog-feature a > span:not(.blog-feature-dots) { position: absolute; z-index: 2; right: 15px; bottom: 14px; left: 15px; overflow: hidden; color: #fff; font-size: 15px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.blog-feature-lead > span:not(.blog-feature-dots) { font-size: 16px !important; text-align: center; }
.blog-feature-side { display: grid; min-width: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.blog-feature-dots { position: absolute; z-index: 3; top: 10px; right: 14px; display: flex; gap: 7px; }
.blog-feature-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.72); }
.blog-feature-dots i:last-child { width: 13px; border-radius: 4px; background: #fff; }
.blog-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; margin-top: 24px; }
.blog-main-column { min-width: 0; }
.article-index-page .journal-filters { min-height: 28px; margin: 0 0 16px; gap: 4px; align-items: center; }
.article-index-page .journal-filters a { display: inline-flex; min-height: 26px; height: 26px; align-items: center; padding: 0 10px; border-radius: 13px; background: transparent; color: var(--ink-muted); line-height: 1; }
.article-index-page .journal-filters a.is-active { background: var(--coral); color: #fff; }
.article-index-page .journal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.article-index-page .journal-item { display: grid; min-width: 0; min-height: 136px; grid-template-columns: 44% minmax(0, 1fr); gap: 14px; margin: 0; padding: 10px; border-radius: 9px; box-shadow: var(--shadow); }
.article-index-page .journal-media { min-height: 116px; border-radius: 7px; }
.article-index-page .journal-copy { display: flex; min-width: 0; flex-direction: column; padding: 2px 0; }
.article-index-page .journal-item h2 { display: -webkit-box; margin: 0 0 5px; overflow: hidden; font-size: 15px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-index-page .journal-item p { margin: 0; font-size: 11px; line-height: 1.55; }
.journal-tags { display: flex; min-width: 0; gap: 4px; margin-top: auto; overflow: hidden; }
.journal-tags a { display: inline-flex; min-width: 0; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 4px; background: rgba(243,75,91,.1); color: var(--coral); font-size: 10px; text-decoration: none; white-space: nowrap; }
.journal-tags svg { width: 10px; height: 10px; }
.article-index-page .journal-meta { gap: 7px; margin-top: 5px; font-size: 10px; }
.article-index-page .journal-meta span { display: inline-flex; min-width: 0; align-items: center; gap: 3px; }
.article-index-page .journal-meta svg { width: 11px; height: 11px; }
.blog-main-column .navigation.pagination { margin-top: 22px; }

.article-page.article-detail-page { width: min(var(--cwnav-content-width), calc(100% - 20px)); margin-top: 90px; }
.article-hot-strip { margin-bottom: 10px; }
.article-detail-page .breadcrumbs { min-height: 48px; }
.article-detail-page .article-layout { grid-template-columns: minmax(0, 1fr) 310px; }
.article-detail-page .article-main > header { padding: 22px 20px 26px; }
.article-detail-page .article-main h1 { margin: 0 0 13px; font-size: 27px; }
.article-detail-page .article-byline { gap: 12px; }
.article-detail-page .article-byline-end { margin-left: auto; }
.article-detail-page .article-cover { padding: 0 20px; }
.article-detail-page .article-cover img { width: 100%; max-height: 520px; border-radius: 8px; object-fit: cover; }
.article-detail-page .article-content { max-width: none; padding: 28px 20px; }
.article-detail-page .article-footer { margin-inline: 20px; }
.article-detail-page .content-widget-rail { align-self: start; }

body.cwnav-rankings { background: linear-gradient(180deg, #b03a45 0, #8a3039 310px, var(--canvas) 780px); }
html[data-theme="dark"] body.cwnav-rankings { background: linear-gradient(180deg, #9c313b 0, #772b34 310px, #24191e 650px, var(--canvas) 940px); }
.ranking-page { width: 100%; margin: 70px 0 36px; }
.ranking-hero { position: relative; display: grid; min-height: 209px; place-content: center; overflow: hidden; padding: 42px 20px 32px; border-radius: 0; background: rgba(134, 35, 47, .43); }
.ranking-hero > i { position: absolute; right: 50%; bottom: -37px; width: 126px; height: 126px; color: rgba(255,255,255,.07); transform: translateX(64%); }
.ranking-hero nav { position: relative; z-index: 1; gap: 32px; }
.ranking-hero a { color: rgba(255,255,255,.42); font-size: 13px; }
.ranking-hero a.is-active { color: #fff; text-decoration: none; }
.ranking-hero a.is-active::before, .ranking-hero a.is-active::after { content: "⌁"; margin: 0 5px; }
.ranking-hero h1 { position: relative; z-index: 1; margin: 13px 0 11px; font-size: 32px; font-weight: 730; }
.ranking-hero p { position: relative; z-index: 1; font-size: 12px; }
.ranking-shell { display: grid; width: min(var(--cwnav-content-width), calc(100% - 20px)); grid-template-columns: 180px minmax(0, 1fr) 310px; align-items: start; gap: 15px; margin: 0 auto; padding-top: 0; }
.ranking-period { position: sticky; top: 84px; display: grid; align-content: start; gap: 6px; min-height: 236px; padding: 15px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.ranking-period a { display: grid; min-height: 49px; place-items: center; padding: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); text-align: center; }
.ranking-period a.is-active { background: var(--coral); color: #fff; font-weight: 700; }
.ranking-list { display: grid; min-width: 0; gap: 16px; padding: 20px; border-radius: 0 0 10px 10px; background: var(--surface); box-shadow: var(--shadow); }
.ranking-row { display: grid; min-height: 60px; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: var(--surface-soft); }
.ranking-row:hover { background: color-mix(in srgb, var(--surface-soft) 76%, var(--coral) 7%); }
.ranking-icon { width: 40px; height: 40px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 76%, transparent); }
.ranking-icon img { width: 40px; height: 40px; border-radius: 50%; }
.ranking-copy strong { font-size: 14px; font-weight: 650; }
.ranking-copy small { font-size: 12px; }
.ranking-shell > .content-widget-rail { position: static; gap: 16px; }

.hotnews-page { width: min(var(--cwnav-content-width), calc(100% - 20px)); margin: 88px auto 36px; }
.hotnews-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hotnews-source { position: relative; display: flex; height: 380px; flex-direction: column; padding: 12px 14px 11px; overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.hotnews-source header { min-height: 35px; border: 0; }
.hotnews-source header h2 { font-size: 14px; font-weight: 550; }
.hotnews-source header h2 svg { width: 15px; height: 15px; }
.hotnews-source header > span { color: var(--ink-muted); font-size: 11px; }
.hotnews-accent { display: block; width: 28px; height: 3px; flex: 0 0 3px; margin: 0 0 7px; border-radius: 2px; background: #ff4058; box-shadow: 0 2px 7px rgba(255,64,88,.45); }
.hotnews-source--1 .hotnews-accent { background: #f34b5b; }
.hotnews-source--2 .hotnews-accent { background: #ef3340; }
.hotnews-source--3 .hotnews-accent { background: #248bf3; }
.hotnews-source--4 .hotnews-accent { background: #2ebd73; }
.hotnews-source--5 .hotnews-accent { background: #ff8e19; }
.hotnews-source ol { min-height: 0; flex: 1; margin: 0 -5px 0 0; padding-right: 5px; overflow-y: auto; scrollbar-color: color-mix(in srgb, var(--ink-muted) 62%, transparent) transparent; scrollbar-width: thin; }
.hotnews-source ol::-webkit-scrollbar { width: 7px; }
.hotnews-source ol::-webkit-scrollbar-thumb { border-radius: 5px; background: color-mix(in srgb, var(--ink-muted) 62%, transparent); }
.hotnews-source li a { min-height: 29px; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; padding: 4px 0; border: 0; align-items: start; }
.hotnews-source li a::before { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 4px; background: color-mix(in srgb, var(--ink-muted) 10%, transparent); color: var(--ink-muted); line-height: 18px; }
.hotnews-source li:nth-child(1) a::before { background: rgba(255,84,115,.12); color: #f1404b; }
.hotnews-source li:nth-child(2) a::before { background: rgba(255,110,6,.12); color: #ff6f06; }
.hotnews-source li:nth-child(3) a::before { background: rgba(149,92,255,.12); color: #955cff; }
.hotnews-source li span { overflow: visible; font-size: 13px; line-height: 1.52; text-overflow: clip; white-space: normal; }
.hotnews-source li em { color: var(--ink-muted); font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hotnews-refresh { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; align-self: end; color: var(--ink-muted); }
.hotnews-refresh:hover { color: var(--coral); }
.hotnews-refresh svg { width: 14px; height: 14px; }
.hotnews-empty { display: grid; flex: 1; place-content: center; gap: 5px; color: var(--ink-muted); text-align: center; }
.hotnews-empty small { font-size: 11px; }

@media (max-width: 900px) {
  .blog-content-layout, .article-detail-page .article-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-content-layout > .content-widget-rail, .article-detail-page .content-widget-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-content-layout > .content-widget-rail .content-overview-widget, .article-detail-page .content-author-card { grid-column: 1 / -1; }
  .ranking-shell { grid-template-columns: 150px minmax(0, 1fr); }
  .ranking-shell > .content-widget-rail { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hotnews-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .journal-page.article-index-page, .article-page.article-detail-page { width: calc(100% - 20px); margin-top: 78px; }
  .blog-feature { height: auto; grid-template-columns: minmax(0, 1fr); }
  .blog-feature-lead { height: 218px; }
  .blog-feature-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 112px; gap: 8px; }
  .blog-feature a > span:not(.blog-feature-dots) { right: 10px; bottom: 9px; left: 10px; font-size: 11px; }
  .article-index-page .journal-list { grid-template-columns: minmax(0, 1fr); }
  .article-index-page .journal-item { grid-template-columns: 42% minmax(0, 1fr); }
  .blog-content-layout > .content-widget-rail, .article-detail-page .content-widget-rail { grid-template-columns: minmax(0, 1fr); }
  .blog-content-layout > .content-widget-rail .content-overview-widget, .article-detail-page .content-author-card { grid-column: auto; }
  .article-detail-page .article-main > header { padding: 20px 16px; }
  .article-detail-page .article-byline-end { margin-left: 0; }
  .article-detail-page .article-cover { padding: 0 16px; }
  .article-detail-page .article-content { padding: 24px 16px; }
  .ranking-page { margin-top: 70px; }
  .ranking-hero { min-height: 188px; padding-inline: 10px; }
  .ranking-hero nav { flex-wrap: nowrap; justify-content: flex-start; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .ranking-hero a { min-width: max-content; }
  .ranking-hero h1 { font-size: 27px; }
  .ranking-shell { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .ranking-period { position: static; display: flex; min-height: 0; overflow-x: auto; gap: 5px; padding: 6px; }
  .ranking-period a { min-width: 78px; min-height: 44px; }
  .ranking-list { gap: 8px; padding: 10px; border-radius: 9px; }
  .ranking-shell > .content-widget-rail { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .hotnews-page { width: calc(100% - 20px); margin-top: 78px; }
  .hotnews-board { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hotnews-source { height: 370px; }
}

/* 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: -196px; 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; }
div.account-menu-profile { display: block; min-height: 0; padding: 10px; background: linear-gradient(120deg, #286be0, #21b9e6); }
.account-menu-identity { display: flex; min-width: 0; align-items: center; gap: 10px; color: #fff; }
.account-menu-identity > span:last-child { min-width: 0; }
.account-menu-identity strong,
.account-menu-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-avatar { overflow: hidden; padding: 0; }
.account-menu-avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-menu-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 9px; }
.account-menu-profile .account-menu-metrics span { display: flex; min-width: 0; height: 24px; align-items: center; justify-content: center; gap: 4px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.94); font-size: 10px; font-variant-numeric: tabular-nums; }
.account-menu-metrics svg { width: 12px; height: 12px; }
.account-menu-metrics b { font-weight: 700; }
.account-menu-signed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-menu-signed .account-menu-logout { background: #fff0f1; color: #be3742; }
html[data-theme="dark"] .account-menu-signed .account-menu-admin { background: rgba(36, 139, 243, 0.14); color: #65b4ff; }
html[data-theme="dark"] .account-menu-signed .account-menu-logout { background: rgba(241, 64, 75, 0.12); color: #ff7e87; }
.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; }
.mobile-drawer .drawer-auth-links { margin-top: 10px; }

.command-trigger { position: relative; }
.command-trigger .command-trigger-close { display: none; }
.command-trigger.is-command-active .command-trigger-search { display: none; }
.command-trigger.is-command-active .command-trigger-close { display: block; }
.command-dialog {
  --command-enter-y: -68px;
  top: 78px;
  bottom: auto;
  width: min(1024px, calc(100% - 20px));
  max-height: calc(100dvh - 90px);
  margin: 0 auto;
  padding: 0;
  overflow-x: visible;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  box-shadow: none;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}
.command-dialog.is-entering,
.command-dialog.is-closing { opacity: 0; transform: translateY(var(--command-enter-y)); }
.command-dialog::backdrop {
  background: rgba(22, 20, 24, 0.48);
  backdrop-filter: blur(2px);
  transition: background-color 500ms ease, backdrop-filter 500ms ease;
}
.command-dialog.is-entering::backdrop,
.command-dialog.is-closing::backdrop { background: rgba(22, 20, 24, 0); backdrop-filter: blur(0); }
.command-shell { position: relative; padding: 5px 0 20px; }
.command-close { display: none; }
.command-search-form { position: relative; display: grid; height: 73px; grid-template-columns: 88px minmax(0, 1fr) 48px; gap: 0; margin: 0; padding: 15px; overflow: hidden; border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 5px 15px rgba(0, 0, 0, .1); }
.command-search-form::after { position: absolute; z-index: 2; inset: 10px; border: 4px solid color-mix(in srgb, var(--coral) 28%, transparent); border-radius: 12px; content: ""; pointer-events: none; transition: border-color 160ms ease-out; }
.command-search-form:focus-within::after { border-color: color-mix(in srgb, var(--coral) 42%, transparent); }
.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 { z-index: 1; margin: 4px 0 4px 4px; padding: 0 9px; border-radius: 8px 0 0 8px; background: var(--surface-soft); font-size: 12px; cursor: pointer; }
.command-search-form input { z-index: 1; padding: 0 15px; background: var(--surface-soft); outline: 0; }
.command-search-form button { z-index: 3; display: grid; margin: 2.5px 3px; place-items: center; border: 0; border-radius: 8px; 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) 360px; gap: 16px; margin-top: 16px; }
.command-discovery { height: 300px; min-height: 300px; padding: 15px; overflow: auto; border-radius: 12px; background: var(--surface); box-shadow: 0 5px 15px rgba(0, 0, 0, .1); }
.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, .command-keywords a { display: inline-flex; min-height: 33px; align-items: center; padding: 5px 12px; border: 0; border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.command-keywords button:hover, .command-keywords a: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; height: 300px; padding: 15px; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--coral) 20%, var(--surface)) 0%, var(--surface) 30%); box-shadow: 0 5px 15px rgba(0, 0, 0, .1); }
.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: 174px; margin: 0; padding: 0; list-style: none; }
.command-ranking li { display: grid; min-height: 29px; 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 (max-width: 720px) {
  .command-dialog { --command-enter-y: -62px; top: 72px; width: calc(100% - 20px); max-height: calc(100dvh - 82px); }
  .command-shell { padding: 0 0 12px; }
  .command-search-form { height: 60px; grid-template-columns: 78px minmax(0, 1fr) 45px; padding: 8px; }
  .command-search-form::after { inset: 5px; }
  .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: 12px; margin-top: 12px; }
  .command-discovery { height: auto; min-height: 124px; padding: 12px; }
  .command-ranking { height: auto; min-height: 270px; 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-page { display: grid; grid-template-columns: 310px minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 88px; }
.quick-filter-sidebar { position: sticky; top: 84px; display: grid; min-width: 0; align-content: start; gap: 14px; }
.quick-filter-sidebar > .overview-widget { min-width: 0; }
.quick-filter-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quick-filter-type {
  --filter-tone: var(--coral);
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 118px;
  align-content: space-between;
  justify-items: start;
  overflow: hidden;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
}
.quick-filter-type::after { position: absolute; right: 0; bottom: 0; width: 55px; height: 55px; border-radius: 14px 0 12px; background: var(--filter-tone); content: ""; opacity: 0; transform: translate(12px, 12px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.quick-filter-type > span { position: relative; z-index: 1; font-size: 14px; font-weight: 500; }
.quick-filter-type > i,
.quick-filter-type > svg { position: absolute; z-index: 2; top: 15px; right: 14px; width: 13px; height: 13px; color: var(--ink-soft); }
.quick-filter-type > strong { position: relative; z-index: 1; color: var(--ink); font-size: 22px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.quick-filter-type > b { position: absolute; z-index: 2; right: 0; bottom: 0; display: grid; width: 53px; height: 53px; place-items: center; color: var(--line); }
.quick-filter-type > b svg { width: 42px; height: 42px; stroke-width: 2; }
.quick-filter-type:is(:hover, :focus-visible, .is-active) { color: var(--filter-tone); }
.quick-filter-type:is(:hover, :focus-visible, .is-active)::after { opacity: 1; transform: translate(0, 0); }
.quick-filter-type:is(:hover, :focus-visible, .is-active) > strong { color: var(--filter-tone); }
.quick-filter-type:is(:hover, :focus-visible, .is-active) > b { color: #fff; }
.quick-filter-type--green { --filter-tone: #25b53b; }
.quick-filter-type--blue { --filter-tone: #26abe8; }
.quick-filter-type--coral { --filter-tone: #ff724e; }
.quick-filter-type--orange { --filter-tone: #ee9c00; }
.quick-filter-back { display: inline-flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink-soft); border-radius: 7px; background: transparent; color: var(--ink-muted); font-size: 14px; cursor: pointer; }
.quick-filter-back:hover { border-color: var(--coral); color: var(--coral); }
.quick-filter-back svg { width: 15px; height: 15px; }

.quick-filter-main,
.quick-filter-panel { display: grid; min-width: 0; align-content: start; gap: 16px; }
.quick-filter-panel[hidden],
.quick-filter-back[hidden],
[data-filter-extra][hidden] { display: none !important; }
.quick-filter-group { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 28%, transparent); }
.quick-filter-group > header { display: flex; min-height: 24px; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.quick-filter-group h2 { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 24px; }
.quick-filter-group h2 svg { width: 13px; height: 13px; color: #ff5364; fill: color-mix(in srgb, #ff5364 14%, transparent); }
.quick-filter-group header small { max-width: 240px; overflow: hidden; color: var(--ink-muted); font-size: 11px; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.quick-filter-tags { display: flex; min-width: 0; flex-wrap: wrap; gap: 10px 12px; }
.quick-filter-tags a { display: inline-flex; min-width: 0; min-height: 30px; align-items: center; gap: 6px; padding: 4px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 12px; line-height: 20px; text-decoration: none; }
.quick-filter-tags a:hover { border-color: #ff5364; color: var(--ink-strong); }
.quick-filter-tags a > span,
.quick-filter-tags a > svg { width: 13px; flex: 0 0 auto; color: #ff6a78; }
.quick-filter-tags a > svg { height: 13px; }
.quick-filter-index-banner {
  --filter-banner: linear-gradient(125deg, #39c9ed, #268fe9);
  position: relative;
  display: grid;
  min-height: 115px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--filter-banner);
  color: #fff;
}
.quick-filter-panel--green .quick-filter-index-banner { --filter-banner: linear-gradient(125deg, #7fc927, #11b83c); }
.quick-filter-panel--coral .quick-filter-index-banner { --filter-banner: linear-gradient(125deg, #ff8c5f, #fb4859); }
.quick-filter-panel--orange .quick-filter-index-banner { --filter-banner: linear-gradient(125deg, #f5bc20, #ff7c08); }
.quick-filter-index-banner strong { position: relative; z-index: 1; font-size: 17px; font-weight: 700; }
.quick-filter-index-banner > svg { position: absolute; right: 18px; bottom: -24px; width: 122px; height: 122px; color: rgba(255, 255, 255, .13); stroke-width: 1.7; }
.quick-filter-index-section { padding-bottom: 17px; }
.quick-filter-more { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; padding: 0 16px; border: 1px solid #ff5364; border-radius: 8px; background: transparent; color: #f04454; font-size: 12px; cursor: pointer; }
.quick-filter-more:hover { background: rgba(243, 75, 91, .08); }
.quick-filter-more svg { width: 13px; height: 13px; }
.quick-filter-empty { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 8px; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-muted); text-align: center; }
.quick-filter-empty svg { width: 34px; height: 34px; color: var(--line); }
.quick-filter-empty strong { color: var(--ink); font-size: 15px; }
.quick-filter-empty span,
.filter-empty { margin: 0; color: var(--ink-muted); font-size: 12px; }
html[data-theme="dark"] .quick-filter-group { background: color-mix(in srgb, var(--surface) 52%, transparent); }

.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-field: color-mix(in srgb, var(--surface-soft) 86%, #111820 14%); }
.submit-overview { position: relative; min-height: 145px; margin-bottom: 24px; }
.submit-page .submit-hero { position: relative; display: flex; width: 400px; min-height: 145px; align-items: center; padding: 28px 20px; overflow: visible; border-radius: 11px; background: linear-gradient(125deg, #315ee0 0%, #248cdf 58%, #42bee1 100%); color: #fff; box-shadow: 0 12px 28px rgba(27, 83, 173, 0.2); }
.submit-page .submit-hero > div { transform: translateY(-6px); }
.submit-hero-icon { position: absolute; top: -16px; left: 22px; display: grid; width: 46px; height: 46px; place-items: center; border: 3px solid rgba(255, 255, 255, 0.25); border-radius: 11px; background: #36aaf2; box-shadow: 0 7px 16px rgba(23, 83, 176, 0.24); }
.submit-hero-icon svg { width: 23px; height: 23px; }
.submit-page .submit-hero h1 { margin: 8px 0 7px; color: #fff; font-size: 25px; line-height: 1.25; }
.submit-page .submit-hero p { max-width: 31ch; margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 12px; line-height: 1.55; }
.submit-types { position: absolute; z-index: 1; top: 14px; right: 0; left: 250px; display: grid; min-height: 116px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 13px 12px; border-radius: 11px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); }
.submit-types .submit-type-card { display: grid; min-width: 0; height: 90px; grid-template-rows: 21px 22px 31px; gap: 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 11px; text-decoration: none; }
.submit-types .submit-type-card:hover .submit-type-action,
.submit-types .submit-type-card:focus-visible .submit-type-action,
.submit-types .submit-type-card.is-active .submit-type-action { background: color-mix(in srgb, var(--type-accent) 18%, var(--surface)); }
.submit-types .submit-type-card:focus-visible { outline: 2px solid var(--type-accent); outline-offset: 3px; }
.submit-type-title { position: relative; display: flex; min-height: 21px; align-items: center; justify-content: flex-end; padding: 2px 7px 2px 38px; border-radius: 4px; background: var(--type-accent); color: #fff; }
.submit-type-title svg { position: absolute; top: -8px; left: 0; box-sizing: border-box; width: 34px; height: 34px; padding: 9px; border: 2px solid color-mix(in srgb, var(--type-accent) 76%, #fff); border-radius: 10px; background: color-mix(in srgb, var(--type-accent) 84%, #fff); color: #fff; }
.submit-type-title strong { margin-left: auto; font-size: 11px; line-height: 1; }
.submit-type-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0; }
.submit-type-stats > span { display: flex; min-width: 0; height: 22px; align-items: center; justify-content: center; gap: 2px; overflow: hidden; border-radius: 4px; color: #fff; font-size: 10px; line-height: 1; white-space: nowrap; }
.submit-type-stats > span:nth-child(1) { background: #22b9e5; }
.submit-type-stats > span:nth-child(2) { background: #f39408; }
.submit-type-stats > span:nth-child(3) { background: #76818a; }
.submit-type-stats b { color: inherit; font-variant-numeric: tabular-nums; }
.submit-type-action { display: flex; min-height: 31px; align-items: center; justify-content: center; gap: 4px; border-radius: 5px; background: color-mix(in srgb, var(--type-accent) 12%, var(--surface)); color: var(--type-accent); font-size: 11px; font-weight: 700; transition: background-color 160ms ease-out; }
.submit-type-action svg { width: 13px; height: 13px; }
.submit-workspace { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 15px; }
.submit-editor-card { min-width: 0; padding: 20px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.submit-editor-heading { display: flex; min-height: 52px; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.submit-editor-heading span { color: var(--coral); font-size: 10px; font-weight: 750; }
.submit-editor-heading h2 { margin: 3px 0 0; color: var(--ink-strong); font-size: 17px; }
.submit-editor-heading > small { display: flex; align-items: center; gap: 5px; color: var(--ink-muted); font-size: 10px; }
.submit-editor-heading svg { width: 14px; height: 14px; color: #21a866; }
.submit-identity { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 18px 0 2px; }
.submit-media-preview { display: grid; width: 96px; height: 96px; place-items: center; overflow: hidden; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--ink-muted); cursor: pointer; }
.submit-media-preview:hover { border-color: var(--coral); color: var(--coral); }
.submit-media-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.submit-media-preview [hidden] { display: none !important; }
.submit-media-preview > span { display: grid; justify-items: center; gap: 5px; }
.submit-media-preview svg { width: 25px; height: 25px; }
.submit-media-preview small { font-size: 10px; }
.submit-identity-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.submit-identity-fields .form-field:first-child { grid-column: 1 / -1; }
.submit-workspace .form-field { position: relative; gap: 6px; }
.submit-workspace .form-field label,
.submit-platforms legend,
.submit-segmented legend { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.submit-workspace .form-field label em,
.submit-editor-label em { color: var(--coral); font-style: normal; }
.submit-workspace .form-field input,
.submit-workspace .form-field textarea,
.submit-workspace .form-field select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--submit-field); color: var(--ink); font: inherit; font-size: 12px; }
.submit-workspace .form-field input::placeholder,
.submit-workspace .form-field textarea::placeholder { color: color-mix(in srgb, var(--ink-muted) 78%, transparent); opacity: 1; }
.submit-workspace .form-field :is(input, textarea, select):focus { border-color: color-mix(in srgb, var(--coral) 68%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 14%, transparent); }
.submit-title-field { padding-top: 18px; }
.submit-summary-field { margin-top: 12px; }
.submit-summary-field textarea { padding-right: 54px; resize: vertical; }
.field-counter { position: absolute; right: 10px; bottom: 9px; color: var(--ink-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.field-counter b { color: inherit; }
.submit-content-field { margin-top: 14px; }
.submit-editor-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.submit-editor-label small { color: var(--ink-muted); font-size: 9px; }
.submit-editor-toolbar { display: flex; min-height: 40px; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--surface-soft); }
.submit-editor-toolbar button { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.submit-editor-toolbar button:hover,
.submit-editor-toolbar button:focus-visible { background: var(--surface); color: var(--ink-strong); }
.submit-editor-toolbar svg { width: 15px; height: 15px; }
.submit-workspace .submit-content-field textarea { min-height: 390px; border-radius: 0 0 7px 7px; line-height: 1.75; resize: vertical; }
.submit-segmented { display: flex; align-items: center; gap: 5px; margin: 14px 0 0; padding: 0; border: 0; }
.submit-segmented legend { float: left; margin-right: auto; padding: 7px 0; }
.submit-segmented label { cursor: pointer; }
.submit-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.submit-segmented span { display: inline-grid; min-width: 54px; height: 31px; place-items: center; border-radius: 6px; background: var(--surface-soft); color: var(--ink-muted); font-size: 10px; }
.submit-segmented input:checked + span { background: var(--coral); color: #fff; }
.submit-segmented input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.submit-sidebar { display: grid; align-content: start; gap: 15px; }
.submit-side-section,
.submit-action-panel,
.submit-guide { padding: 17px; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.submit-side-section { display: grid; gap: 13px; }
.submit-side-section h2,
.submit-guide h2 { margin: 0; color: var(--ink-strong); font-size: 13px; }
.submit-side-section h2::before,
.submit-guide h2::before { display: inline-block; width: 3px; height: 12px; margin-right: 7px; border-radius: 2px; background: var(--coral); content: ""; vertical-align: -1px; }
.submit-side-section .form-field small { color: var(--ink-muted); font-size: 9px; }
.submit-platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.submit-platforms legend { width: 100%; margin-bottom: 1px; }
.submit-platforms label { cursor: pointer; }
.submit-platforms input { position: absolute; opacity: 0; pointer-events: none; }
.submit-platforms span { display: inline-flex; min-height: 27px; align-items: center; padding: 0 8px; border: 1px solid transparent; border-radius: 5px; background: var(--surface-soft); color: var(--ink-muted); font-size: 9px; }
.submit-platforms input:checked + span { border-color: #49a8e9; background: rgba(36, 139, 243, 0.12); color: #248bf3; }
.submit-platforms input:focus-visible + span { outline: 2px solid #248bf3; outline-offset: 2px; }
.submit-sidebar > .submit-side-section:first-child { min-height: 232px; }
.submit-action-panel { display: grid; gap: 0; padding: 20px; }
.submit-action-buttons { display: grid; height: 38px; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border-radius: 7px; }
.submit-action-buttons:has(> :only-child) { grid-template-columns: 1fr; }
.submit-action-buttons button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; border: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.submit-action-buttons svg { width: 14px; height: 14px; }
.submit-draft-button { background: rgba(28, 159, 73, 0.15); color: #18b94b; }
.submit-review-button { background: rgba(27, 133, 213, 0.17); color: #1ba4ef; }
.submit-action-buttons button:hover { filter: brightness(1.13); }
.submit-action-buttons button:disabled { cursor: wait; filter: saturate(0.55); opacity: 0.7; }
.submit-pay-button { display: inline-flex; width: 100%; min-height: 38px; align-items: center; justify-content: center; gap: 5px; margin-top: 16px; border: 0; border-radius: 7px; background: #087aa5; color: #fff; font: inherit; font-size: 13px; font-weight: 700; }
.submit-pay-button svg { width: 14px; height: 14px; }
.submit-pay-button small { color: #fff; font-size: 10px; font-weight: 500; }
.submit-pay-button:disabled { cursor: not-allowed; opacity: 1; }
.submit-action-panel > p { display: none; margin: 8px 0 0; color: var(--ink-muted); font-size: 10px; }
.submit-action-panel > p[data-state] { display: block; }
.submit-action-panel > p[data-state="success"] { color: #229257; }
.submit-action-panel > p[data-state="error"] { color: #d94550; }
.submit-policy { display: flex; height: 61px; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 9px; overflow: hidden; border-radius: 6px; background: rgba(241, 64, 75, 0.09); color: #ff7d86; font-size: 10px; line-height: 1.4; }
.submit-policy svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.submit-guide { display: block; }
.submit-guide ul { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 17px; color: var(--ink-muted); font-size: 10px; line-height: 1.55; }
.submit-gate { display: grid; min-height: 350px; justify-items: center; align-content: center; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); 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; }
@media (max-width: 900px) {
  .submit-overview { display: grid; }
  .submit-page .submit-hero { width: 100%; min-height: 134px; padding-inline: 24px; border-radius: 10px 10px 0 0; }
  .submit-types { position: relative; top: auto; right: auto; left: auto; margin: -16px 10px 0; }
  .submit-workspace { grid-template-columns: 1fr; }
  .submit-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit-action-panel { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body:has(.submit-page) .floating-tools,
  body:has(.submit-page) .ai-orb { display: none; }
  .submit-page { width: calc(100% - 20px); }
  .submit-page .submit-hero { min-height: 150px; padding: 28px 20px 22px; }
  .submit-hero-icon { left: 18px; }
  .submit-page .submit-hero h1 { font-size: 24px; }
  .submit-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; margin-inline: 6px; }
  .submit-editor-card { padding: 16px; }
  .submit-editor-heading { display: grid; }
  .submit-editor-heading > small { justify-self: start; }
  .submit-identity { grid-template-columns: 72px minmax(0, 1fr); }
  .submit-media-preview { width: 72px; height: 72px; }
  .submit-identity-fields { grid-template-columns: 1fr; }
  .submit-identity-fields .form-field:first-child { grid-column: auto; }
  .submit-workspace .submit-content-field textarea { min-height: 300px; }
  .submit-sidebar { grid-template-columns: 1fr; }
  .submit-action-panel { grid-column: auto; }
  .submit-action-buttons { height: 44px; }
  .submit-action-buttons button,
  .submit-pay-button { min-height: 44px; }
  .submit-segmented { flex-wrap: wrap; }
  .submit-segmented legend { width: 100%; }
}
.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(6, 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; min-height: 360px; grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr); gap: 18px; }
.site-detail-intro--no-preview { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.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 { display: inline-flex; width: auto; min-width: 86px; height: 34px; min-height: 34px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; margin: 4px 0 0; padding: 0 12px; border: 0; border-radius: 6px; background: var(--surface); color: var(--coral); font-size: 13px; line-height: 1; white-space: nowrap; }
.site-detail-heading .favorite-button:hover,
.site-detail-heading .favorite-button:focus-visible,
.site-detail-heading .favorite-button[aria-pressed="true"] { background: rgba(241, 64, 75, .13); color: var(--coral); }
.site-detail-heading .favorite-button svg { width: 15px; height: 15px; }
.site-detail-heading .favorite-button b { min-width: 12px; font-size: 11px; font-variant-numeric: tabular-nums; }
.site-detail-meta { display: flex; flex-wrap: wrap; gap: 15px; color: var(--ink-muted); font-size: 11px; }
.site-detail-meta span, .site-detail-meta a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.site-detail-meta a:hover { color: var(--coral); }
.site-detail-meta svg { width: 13px; height: 13px; }
.site-detail-description { max-width: 72ch; margin: 32px 0 14px; color: var(--ink); font-size: 15px; line-height: 1.9; }
.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: 128px; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border-radius: 7px; color: var(--ink); font-size: 12px; text-decoration: none; cursor: pointer; }
.site-detail-buttons .primary-link { color: #fff; }
.site-detail-buttons .site-copy-action { min-width: 40px; padding-inline: 11px; }
.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) 310px; align-items: start; gap: 16px; margin-top: 18px; }
.site-detail-body .detail-main { display: grid; min-height: 400px; gap: 18px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
.site-content-panel, .site-evaluation, .site-detail-body .related-section, .site-detail-body .comments-area { min-width: 0; overflow: hidden; border-radius: 10px; background: var(--surface); }
.site-keywords { margin: 0; padding: 20px 28px 0; color: var(--ink-muted); font-size: 12px; line-height: 1.7; }
.site-content-panel .cwnav-ad-slot { width: auto; margin: 16px 28px 0; }
.site-detail-body .detail-content { max-width: 75ch; padding: 25px 28px 30px; }
.site-detail-body .detail-content > :first-child { margin-top: 0; }
.site-detail-body .detail-content p { margin-block: 0 16px; }
.site-evaluation { padding: 0 28px 28px; }
.site-evaluation .section-title, .site-detail-body .related-section .section-title { border-top: 0; border-bottom: 1px solid var(--line); }
.site-evaluation .section-title h2, .site-detail-body .section-title h2, .site-detail-body .comments-area > h2 { display: inline-flex; align-items: center; gap: 7px; }
.site-evaluation .section-title svg, .site-detail-body .section-title svg, .site-detail-body .comments-area > h2 svg { width: 16px; height: 16px; color: var(--ink-soft); }
.site-evaluation-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.site-evaluation-facts > div { min-width: 0; padding: 13px 14px; border-left: 1px solid var(--line); }
.site-evaluation-facts > div:first-child { border-left: 0; }
.site-evaluation-facts dt { color: var(--ink-muted); font-size: 11px; }
.site-evaluation-facts dd { display: flex; min-width: 0; align-items: center; gap: 5px; margin: 4px 0 0; overflow: hidden; color: var(--ink-strong); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.site-evaluation-facts dd svg { width: 14px; height: 14px; color: #238653; }
.site-evaluation > p { max-width: 72ch; margin: 0; color: var(--ink); font-size: 13px; line-height: 1.85; }
.site-detail-body .detail-notice { margin: 20px 0 0; }
.site-detail-body .related-section { padding: 0 28px 28px; }
.site-detail-body .related-section .archive-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.site-detail-body .comments-area { margin: 0; padding: 0 28px 28px; border-top: 0; }
.site-detail-body .comments-area > h2 { min-height: 52px; margin: 0 0 20px; border-bottom: 1px solid var(--line); font-size: 16px; }
.comments-closed { margin: 0; padding: 18px; border-radius: 8px; background: var(--surface-soft); color: var(--ink-muted); font-size: 12px; text-align: center; }
.site-detail-aside { position: sticky; top: 84px; display: grid; min-width: 0; gap: 12px; align-self: start; }
.site-detail-aside > section { overflow: hidden; border-radius: 10px; background: var(--surface); }
.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: 72px; height: 72px; margin-top: -36px; place-items: center; overflow: hidden; border: 5px solid var(--surface); border-radius: 50%; background: var(--surface-soft); color: var(--purple-deep); font-size: 22px; font-weight: 800; }
.site-author-mark img { width: 100%; height: 100%; object-fit: cover; }
.site-author strong { margin-top: 6px; color: var(--ink-strong); font-size: 14px; }
.site-author > span { color: var(--ink-muted); font-size: 11px; }
.site-author-stats { display: grid; width: calc(100% - 24px); grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 12px 0; padding: 0; border-radius: 7px; background: var(--surface-soft); }
.site-author-stats > div { display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: center; gap: 5px; }
.site-author-stats dt, .site-author-stats dd { margin: 0; color: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.site-author-stats dt { display: grid; place-items: center; }
.site-author-stats svg { width: 13px; height: 13px; }
.site-aside-panel { padding: 14px; }
.site-aside-heading { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.site-aside-heading h2 { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: var(--ink-strong); font-size: 14px; }
.site-aside-heading h2 svg { width: 14px; height: 14px; color: var(--ink-soft); }
.site-ranking-tabs { display: flex; align-self: stretch; gap: 3px; }
.site-ranking-tabs button { min-width: 40px; padding: 0 5px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-muted); font-size: 11px; cursor: pointer; }
.site-ranking-tabs button:hover, .site-ranking-tabs button:focus-visible, .site-ranking-tabs button.is-active { border-color: var(--coral); color: var(--coral); }
.site-ranking-panel [data-module-panel][hidden] { display: none; }
.site-aside-panel ol { margin: 0; padding: 0; list-style: none; }
.site-aside-panel li { min-width: 0; border-top: 1px solid var(--line); }
.site-aside-panel li:first-child { border-top: 0; }
.site-aside-panel li > a { display: grid; min-width: 0; min-height: 61px; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.site-rank-thumb { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 8px; background: var(--surface-soft); color: var(--ink-muted); }
.site-rank-thumb img { width: 32px; height: 32px; object-fit: contain; }
.site-rank-thumb svg { width: 17px; height: 17px; }
.site-aside-panel li a > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.site-aside-panel li strong, .site-aside-panel li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-aside-panel li strong { color: var(--ink-strong); font-size: 12px; }
.site-aside-panel li small { color: var(--ink-muted); font-size: 10px; }
.site-aside-panel li b { color: var(--ink-muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.site-ranking-more { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; border-radius: 6px; background: var(--surface-soft); color: var(--ink-muted); font-size: 11px; text-decoration: none; }
.site-ranking-more:hover { color: var(--coral); }
.site-ranking-more svg { width: 13px; height: 13px; }
.site-tag-cloud > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 13px; }
.site-tag-cloud > div:last-child a { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 0 8px; border-radius: 6px; background: var(--surface-soft); color: var(--ink-soft); font-size: 11px; text-decoration: none; }
.site-tag-cloud > div:last-child a:hover { color: var(--coral); }
.site-tag-cloud small { color: var(--ink-muted); font-size: 9px; }
.site-qr-dialog { width: min(370px, calc(100% - 28px)); max-width: none; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
.site-qr-dialog::backdrop { background: rgba(18, 21, 28, .62); }
.site-qr-head { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.site-qr-head h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-strong); font-size: 16px; }
.site-qr-head h2 svg { width: 18px; height: 18px; color: var(--coral); }
.site-qr-head button { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.site-qr-head button:hover, .site-qr-head button:focus-visible { background: var(--surface-soft); color: var(--ink-strong); }
.site-qr-head button svg { width: 18px; height: 18px; }
.site-qr-body { display: grid; justify-items: center; gap: 10px; padding: 26px 24px 28px; text-align: center; }
.site-qr-code { display: grid; width: 156px; height: 156px; place-items: center; padding: 10px; border-radius: 8px; background: #fff; }
.site-qr-code img { width: 136px; height: 136px; }
.site-qr-code > svg { width: 56px; height: 56px; color: #20242b; }
.site-qr-body strong { color: var(--ink-strong); font-size: 14px; }
.site-qr-body small { max-width: 100%; overflow: hidden; color: var(--ink-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .topbar-actions .account-menu { display: none; }
  .news-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hot-strip .hot-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-detail-intro { grid-template-columns: minmax(0, 1fr) minmax(300px, 40%); }
  .site-detail-body { grid-template-columns: minmax(0, 1fr) 286px; }
  .software-detail-hero { grid-template-columns: 1fr; }
  .software-gallery { width: min(680px, 100%); }
}
@media (max-width: 720px) {
  .weather-header-action { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .weather-header-action span:not(.sr-only) { display: none; }
  .cwnav-ad-slot { grid-template-columns: minmax(0, 1fr); }
  .cwnav-ad-item { min-height: 78px; grid-template-columns: 78px minmax(0, 1fr) 18px; gap: 9px; padding: 8px; }
  .cwnav-ad-item > img { width: 78px; height: 60px; }
  .cwnav-ad-slot--carousel .cwnav-ad-item { min-height: 92px; }
  .cwnav-ad-slot--carousel .cwnav-ad-item > img { width: 88px; height: 74px; }
  .cwnav-ad-slot--carousel .cwnav-ad-item { padding-right: 8px; padding-bottom: 44px; }
  .cwnav-ad-carousel-controls { right: 10px; bottom: 8px; }
  .cwnav-ad-slot--home-links { grid-column: auto; }
  .cwnav-ad-popup-shell { grid-template-columns: 1fr; }
  .cwnav-ad-popup-image { height: 210px; min-height: 0; }
  .cwnav-ad-popup-copy { min-height: 230px; padding: 28px 20px 20px; }
  .cwnav-ad-popup-copy h2 { font-size: 21px; }
  .comments-area { margin-inline: 14px; }
  .comment-list .children { margin-left: 12px; }
  .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-page { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .quick-filter-sidebar { position: static; top: auto; }
  .quick-filter-switcher { gap: 10px; }
  .quick-filter-type { min-height: 108px; padding: 13px; }
  .quick-filter-back { min-height: 44px; }
  .quick-filter-main,
  .quick-filter-panel { gap: 12px; }
  .quick-filter-index-banner { min-height: 104px; }
  .quick-filter-index-banner strong { font-size: 15px; }
  .quick-filter-group { padding: 14px; }
  .quick-filter-group > header { margin-bottom: 9px; }
  .quick-filter-tags { gap: 8px; }
  .quick-filter-tags a { min-height: 36px; padding-inline: 11px; }
  .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-main { gap: 12px; }
  .site-keywords { padding: 17px 18px 0; }
  .site-content-panel .cwnav-ad-slot { margin-inline: 18px; }
  .site-detail-body .detail-content { padding: 20px 18px; }
  .site-evaluation, .site-detail-body .related-section, .site-detail-body .comments-area { padding-right: 18px; padding-left: 18px; }
  .site-evaluation-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-evaluation-facts > div:nth-child(odd) { border-left: 0; }
  .site-evaluation-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-detail-body .related-section .archive-resource-grid { grid-template-columns: 1fr; }
  .site-detail-aside { position: static; margin-top: 0; }
}
@media (max-width: 420px) {
  .site-detail-heading { align-items: center; }
  .site-detail-heading .favorite-button { min-width: 44px; min-height: 44px; padding-inline: 10px; }
  .site-detail-heading .favorite-button [data-favorite-label] { display: none; }
  .site-detail-meta { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
  .site-detail-buttons { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .site-detail-buttons .primary-link, .site-detail-buttons .secondary-action { min-width: 0; min-height: 44px; padding-inline: 10px; }
  .site-detail-buttons .site-copy-action { width: 44px; }
  .site-copy-action span { display: none; }
  .site-evaluation-facts dd { font-size: 12px; }
  .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; }
}

/* Site detail fidelity: OneNav-compatible structure with CWNav data. */
.detail-page--cwnav_site {
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}
.detail-page--cwnav_site .site-detail-heading h1 { margin-top: 8px; }
.detail-page--cwnav_site .site-detail-meta { gap: 14px; }
.site-meta-favorite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}
.site-meta-favorite b { min-width: 9px; font-size: inherit; font-weight: 400; font-variant-numeric: tabular-nums; text-align: left; }
.site-meta-favorite:hover,
.site-meta-favorite:focus-visible { color: var(--coral); }
.site-detail-description {
  max-width: 72ch;
  margin: 32px 0 8px;
  color: var(--ink-soft);
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 2;
}
.site-detail-added { margin-bottom: 8px; font-size: 14px; line-height: 24px; }
.site-seo-strip {
  display: flex;
  min-height: 36px;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.site-seo-badge {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 18px;
  overflow: hidden;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), filter .3s cubic-bezier(.16, 1, .3, 1);
}
.site-seo-badge:hover,
.site-seo-badge:focus-visible { filter: saturate(1.18) brightness(1.06); transform: translateY(-1px); }
.site-seo-badge span {
  position: absolute;
  right: 6px;
  width: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
}
.site-seo-badge--baidu-pc { background-color: #2888f7; background-image: url("../images/seo/baidupc.png"); }
.site-seo-badge--baidu-mobile { background-color: #f79a28; background-image: url("../images/seo/baidumobile.png"); }
.site-seo-badge--so360 { background-color: #22b36f; background-image: url("../images/seo/360.png"); }
.site-seo-badge--sm { background-color: #f18a14; background-image: url("../images/seo/sm.png"); }
.site-seo-badge--toutiao { background-color: #f13f54; background-image: url("../images/seo/toutiao.png"); }
.site-seo-badge.is-loading {
  background-color: rgba(98, 86, 103, .14);
  background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .34) 48%, transparent 76%);
  background-size: 220% 100%;
  pointer-events: none;
  animation: site-seo-loading 1.2s linear infinite;
}
.site-seo-badge.is-loading span { color: transparent; }
@keyframes site-seo-loading { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .site-seo-badge.is-loading { animation: none; } }
.site-detail-buttons { gap: 8px; margin-top: 0; }
.site-detail-buttons .primary-link,
.site-detail-buttons .secondary-action,
.site-detail-buttons .site-report-action {
  display: inline-flex;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: color .3s cubic-bezier(.16, 1, .3, 1), background-color .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1);
}
.site-detail-buttons .primary-link {
  width: 140px;
  min-width: 140px;
  padding: 6px 24px;
  border: 1px solid transparent;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 20px -8px rgba(220, 65, 75, .68);
}
.site-detail-buttons .primary-link:hover,
.site-detail-buttons .primary-link:focus-visible {
  background: var(--coral-hover);
  box-shadow: 0 8px 24px -4px rgba(241, 64, 75, .72);
  transform: translateY(-1px);
}
.site-detail-buttons .secondary-action {
  width: 116px;
  min-width: 116px;
  padding: 6px 12px;
  border: 1px solid var(--coral);
  background: rgba(241, 64, 75, .08);
  color: var(--coral);
}
.site-detail-buttons .secondary-action:hover,
.site-detail-buttons .secondary-action:focus-visible { background: var(--coral); color: #fff; box-shadow: 0 6px 18px -6px rgba(241, 64, 75, .66); }
.site-detail-buttons .site-report-action {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--coral);
  color: #ffe7eb;
}
.site-detail-buttons .site-report-action:hover,
.site-detail-buttons .site-report-action:focus-visible { background: var(--coral-hover); color: #fff; box-shadow: 0 6px 18px -6px rgba(241, 64, 75, .66); transform: translateY(-1px); }
.site-detail-buttons svg { width: 16px; height: 16px; }
.site-detail-tags { gap: 0; margin-top: 12px; }
.site-detail-tags .site-detail-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 4px;
  margin: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 14px;
}
.site-detail-tags .site-detail-tag svg { width: 13px; height: 13px; }
.site-detail-tag--0 { background: rgba(19, 188, 41, .1) !important; color: #19aa2c !important; }
.site-detail-tag--1 { background: rgba(149, 92, 255, .1) !important; color: #955cff !important; }
.site-detail-tag--2 { background: rgba(36, 139, 243, .1) !important; color: #248bf3 !important; }
.site-detail-tag--3 { background: rgba(241, 64, 75, .1) !important; color: #f1404b !important; }
.site-detail-tag--4 { background: rgba(255, 142, 25, .1) !important; color: #f5840a !important; }

.site-detail-body .detail-main { gap: 0; }
.site-content-panel { margin-bottom: 18px; border-radius: 12px; }
.site-keywords { padding: 20px 20px 0; font-size: 16px; line-height: 24px; }
.site-content-panel .cwnav-ad-slot { margin: 16px 20px 20px; }
.site-content-panel .detail-content { padding: 0 20px 20px; }
.site-content-panel .detail-content:empty { display: none; }
.detail-section-title { display: flex; min-height: 46px; align-items: center; }
.detail-section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 500;
}
.detail-section-title h2 svg { width: 17px; height: 17px; }
.site-statistics { margin-bottom: 0; }
.site-chart-card {
  position: relative;
  height: 286px;
  padding: 18px 22px 14px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.site-chart-legend { display: flex; min-height: 28px; align-items: center; justify-content: center; gap: 15px; color: var(--ink-muted); font-size: 12px; }
.site-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.site-chart-legend i { display: inline-block; width: 24px; height: 11px; border-radius: 3px; background: #4d95f7; }
.site-chart-legend .is-mobile { background: #64dfae; }
.site-chart-legend .is-total { width: 22px; height: 2px; border-radius: 2px; background: #f6d54a; }
.site-chart-legend .is-total::before { display: block; width: 9px; height: 9px; margin: -3px auto 0; border-radius: 50%; background: #f6d54a; content: ""; }
.site-chart-demo { position: absolute; top: 22px; right: 22px; color: var(--ink-muted); font-size: 10px; }
.site-chart-card canvas { display: block; width: 100%; height: 220px; }
.site-chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--ink-strong);
  color: var(--surface);
  font-size: 11px;
  line-height: 1.55;
  box-shadow: var(--shadow-float);
  pointer-events: none;
}
.site-evaluation { padding: 0; overflow: visible; background: transparent; }
.site-evaluation-card { padding: 20px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.site-evaluation-card > p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 2; }
.site-evaluation-card a { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-strong); text-decoration: none; }
.site-evaluation-card a:hover { color: var(--coral); }
.site-evaluation-card a svg { width: 12px; height: 12px; }
.site-evaluation-card h3 { margin: 24px 0 10px; color: var(--ink-soft); font-size: 17px; font-weight: 500; text-align: center; }
.site-evaluation-card .site-evaluation-disclaimer { color: var(--ink-muted); font-size: 14px; line-height: 2; }
.site-evaluation-card footer {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 11px;
}
.site-evaluation-card footer span:last-child { overflow-wrap: anywhere; text-align: right; }

.site-detail-body .related-section { margin-top: 18px; }
.site-detail-body .comments-area {
  margin-top: 18px;
  padding: 0;
  overflow: visible;
  background: transparent;
}
.site-detail-body .comments-area > h2 { min-height: 46px; margin: 0; border: 0; color: var(--ink-soft); font-size: 18px; font-weight: 500; }
.site-comment-card { min-height: 340px; padding: 20px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.site-comment-card .comment-list { margin: 0 0 22px; padding: 0; list-style: none; }
.site-comment-card .comment-list > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.site-comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.site-comment-form > * { margin: 0; }
.site-comment-form .comment-form-cookies-consent { display: none; }
.site-comment-form .site-comment-avatar,
.site-comment-form .comment-form-comment,
.site-comment-form .site-comment-actions { grid-column: 1 / -1; }
.site-comment-avatar { min-height: 44px; }
.site-comment-avatar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.site-comment-form textarea,
.site-comment-form input[type="text"],
.site-comment-form input[type="email"] {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: 0;
  background: var(--canvas);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-comment-form textarea { min-height: 86px; padding: 10px 12px; resize: vertical; }
.site-comment-form input[type="text"],
.site-comment-form input[type="email"] { height: 38px; padding: 6px 12px; }
.site-comment-form textarea:focus,
.site-comment-form input:focus { border-color: rgba(241, 64, 75, .65); background: var(--surface-soft); box-shadow: 0 0 0 3px rgba(241, 64, 75, .12); }
.site-comment-actions { display: flex; justify-content: flex-end; }
.site-comment-submit {
  min-width: 90px;
  height: 38px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 12px 20px -8px rgba(220, 65, 75, .68);
  transition: background-color .25s, box-shadow .25s, transform .25s;
}
.site-comment-submit:hover,
.site-comment-submit:focus-visible { background: var(--coral-hover); box-shadow: 0 7px 22px -4px rgba(241, 64, 75, .7); transform: translateY(-1px); }
.site-comments-empty { margin: 80px 0 0; color: var(--ink-muted); font-size: 12px; text-align: center; }

.site-detail-aside { gap: 20px; }
.site-detail-aside > section { border-radius: 12px; box-shadow: var(--shadow); }
.site-author { min-height: 313px; padding-bottom: 16px; overflow: hidden; }
.site-author-banner {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: linear-gradient(135deg, #29106e 0%, #470099 46%, #7f08bd 100%);
}
.site-author-banner::before,
.site-author-banner::after {
  position: absolute;
  width: 155px;
  height: 14px;
  border-radius: 10px;
  background: #d90ce7;
  content: "";
  transform: rotate(-45deg);
}
.site-author-banner::before { right: -14px; bottom: 43px; box-shadow: 0 28px 0 rgba(217, 12, 231, .72), 0 56px 0 rgba(217, 12, 231, .42); }
.site-author-banner::after { right: 73px; bottom: -21px; width: 76px; opacity: .72; }
.site-author-mark { position: relative; z-index: 1; width: 88px; height: 88px; margin-top: -44px; border: 6px solid var(--surface); background: #393631; }
.site-author-mark--fallback img { width: 64px; height: 64px; padding: 7px; border-radius: 50%; background: #fff; object-fit: contain; }
.site-author strong { margin-top: 7px; font-size: 18px; font-weight: 400; }
.site-author .site-author-role { margin-top: 8px; padding: 2px 5px; border: 1px solid #955cff; border-radius: 4px; color: #955cff; font-size: 11px; line-height: 16px; }
.site-author-stats { width: calc(100% - 32px); gap: 6px; margin: 14px 16px 0; background: transparent; }
.site-author-stats > div { min-height: 20px; border-radius: 4px; background: rgba(36, 139, 243, .1); color: #248bf3; }
.site-author-stats > div:nth-child(2) { background: rgba(149, 92, 255, .1); color: #955cff; }
.site-author-stats > div:nth-child(3) { background: rgba(255, 142, 25, .1); color: #dc7607; }
.site-author-stats > div:nth-child(4) { background: rgba(241, 64, 75, .1); color: #f1404b; }
.site-author-stats dt,
.site-author-stats dd { color: currentColor; }
.site-detail-ranking { min-height: 522px; margin: 0; }
.site-detail-ranking [data-module-panel] { padding: 15px; }
.site-detail-ranking .ranking-tabs { align-self: stretch; }
.site-detail-ranking .ranking-tabs button { color: var(--ranking-muted); }
.site-detail-ranking .ranking-tabs button.is-active { color: var(--coral); }
.site-detail-ranking .widget-more { display: flex; align-items: center; justify-content: center; }
.site-tag-cloud { position: relative; overflow: hidden !important; padding: 0 14px 16px; }
.site-tag-cloud .site-aside-heading { margin-inline: 0; }
.site-tag-cloud .site-aside-heading h2 { font-size: 16px; font-weight: 500; }
.site-tag-cloud .site-aside-heading h2 svg { width: 15px; height: 15px; color: var(--coral); }
.site-tag-cloud .site-aside-heading > a { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink-muted); }
.site-tag-cloud .site-aside-heading > a:hover { color: var(--coral); }
.site-tag-cloud .site-aside-heading > a svg { width: 14px; height: 14px; }
.site-tag-cloud > div:last-child { display: flex; flex-wrap: wrap; column-gap: 6px; row-gap: 7px; padding-top: 15px; }
.site-tag-cloud > div:last-child a { display: inline-flex; min-width: 0; max-width: 100%; min-height: 31px; flex: 1 1 auto; align-items: center; gap: 5px; padding: 0 8px; overflow: hidden; border-radius: 8px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out; }
.site-tag-cloud > div:last-child a:is(:hover, :focus-visible) { color: #fff !important; box-shadow: 0 7px 15px -12px rgba(0, 0, 0, .8); transform: translateY(-1px); }
.site-tag-cloud > div:last-child a.site-tag-tone--0:is(:hover, :focus-visible) { background: #19aa2c !important; }
.site-tag-cloud > div:last-child a.site-tag-tone--1:is(:hover, :focus-visible) { background: #f1404b !important; }
.site-tag-cloud > div:last-child a.site-tag-tone--2:is(:hover, :focus-visible) { background: #f5840a !important; }
.site-tag-cloud > div:last-child a.site-tag-tone--3:is(:hover, :focus-visible) { background: #7476f6 !important; }
.site-tag-cloud > div:last-child a.site-tag-tone--4:is(:hover, :focus-visible) { background: #248bf3 !important; }
.site-tag-cloud > div:last-child a.site-tag-tone--5:is(:hover, :focus-visible) { background: #955cff !important; }
.site-tag-cloud small { font-size: 11px; }
.site-tag-tone--0 { background: rgba(19, 188, 41, .1) !important; color: #19aa2c !important; }
.site-tag-tone--1 { background: rgba(241, 64, 75, .1) !important; color: #f1404b !important; }
.site-tag-tone--2 { background: rgba(255, 142, 25, .1) !important; color: #f5840a !important; }
.site-tag-tone--3 { background: rgba(94, 96, 238, .12) !important; color: #7476f6 !important; }
.site-tag-tone--4 { background: rgba(36, 139, 243, .1) !important; color: #248bf3 !important; }
.site-tag-tone--5 { background: rgba(149, 92, 255, .1) !important; color: #955cff !important; }
.has-flow-light::after {
  position: absolute;
  z-index: 3;
  top: -34%;
  right: 0;
  width: 3px;
  height: 34%;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, #fa35c8 24%, #a55cff 58%, #4edcff 82%, transparent);
  box-shadow: 0 0 10px rgba(214, 53, 255, .74);
  content: "";
  animation: site-detail-flow-light 4.2s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes site-detail-flow-light { to { transform: translateY(395%); } }
.site-detail-extra-widgets { display: grid; gap: 12px; }

@media (max-width: 720px) {
  .site-detail-description { margin-top: 20px; font-size: 16px; line-height: 1.9; }
  .site-detail-body .detail-main { gap: 0; }
  .site-content-panel,
  .site-detail-body .related-section,
  .site-detail-body .comments-area { margin-top: 12px; }
  .site-chart-card { height: 270px; padding-inline: 12px; }
  .site-chart-card canvas { height: 210px; }
  .site-chart-demo { right: 12px; }
  .site-evaluation-card { padding: 18px; }
  .site-evaluation-card > p { font-size: 15px; }
  .site-evaluation-card footer { align-items: flex-start; flex-direction: column; }
  .site-evaluation-card footer span:last-child { text-align: left; }
  .site-comment-card { padding: 16px; }
}

/* Taxonomy and site archives mirror the public category-detail composition. */
.cwnav-directory .directory-page {
  width: 100%;
  margin: 82px 0 36px;
}
.cwnav-directory .directory-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 186px;
  place-items: center;
  padding: 28px 16px 24px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 46% 52%, rgba(211, 0, 29, .96) 0, rgba(198, 17, 42, .82) 20%, rgba(189, 33, 51, .16) 46%, transparent 66%),
    linear-gradient(112deg, #6c0034 0%, #a9adb2 50%, #d36647 100%);
  box-shadow: none;
  color: #fff;
  text-align: center;
}
.cwnav-directory .directory-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(32, 16, 24, .08);
  content: "";
}
.directory-hero-copy { display: grid; place-items: center; }
.cwnav-directory .directory-hero h1 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 26px;
  font-weight: 750;
  line-height: 1.25;
}
.directory-count {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  gap: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(232, 48, 71, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 19px;
}
.directory-count svg { width: 12px; height: 12px; }
.cwnav-directory .directory-hero p {
  display: flex;
  max-width: min(72ch, calc(100vw - 32px));
  align-items: center;
  gap: 4px;
  margin: 7px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cwnav-directory .directory-hero p svg { width: 13px; height: 13px; flex: 0 0 13px; }

.cwnav-directory .directory-layout {
  display: grid;
  width: min(var(--cwnav-content-width), calc(100% - 20px));
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 16px;
  margin: 16px auto 0;
}
.cwnav-directory .directory-results {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.taxonomy-selects {
  min-width: 0;
  min-height: 98px;
  margin-bottom: 20px;
  padding: 16px 20px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.taxonomy-term-links,
.taxonomy-sort-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.taxonomy-term-links::-webkit-scrollbar,
.taxonomy-sort-links::-webkit-scrollbar { display: none; }
.taxonomy-term-links a,
.taxonomy-sort-links a {
  position: relative;
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink-muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.taxonomy-term-links a:hover,
.taxonomy-sort-links a:hover { color: var(--ink-strong); }
.taxonomy-term-links a.is-active,
.taxonomy-sort-links a.is-active { color: var(--coral); }
.taxonomy-sort-links {
  gap: 0 11px;
  margin-top: 10px;
  font-size: 12px;
}
.taxonomy-sort-links > span { flex: 0 0 auto; color: var(--ink-muted); }
.taxonomy-sort-links a { min-height: 22px; font-size: 12px; }
.taxonomy-sort-links a::before {
  margin-right: 10px;
  color: var(--line);
  content: "/";
}

.cwnav-directory .archive-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cwnav-directory .archive-resource-grid .resource-card {
  position: relative;
  min-height: 106px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.cwnav-directory .archive-resource-grid .resource-card:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--coral));
  box-shadow: none;
  transform: translateY(-2px);
}
.cwnav-directory .archive-resource-grid .resource-main {
  min-height: 106px;
  align-items: center;
  gap: 11px;
  padding: 10px 34px 28px 10px;
}
.cwnav-directory .archive-resource-grid .resource-icon,
.cwnav-directory .archive-resource-grid .resource-main > .icon-glow-shell {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}
.cwnav-directory .archive-resource-grid .resource-icon img { width: 50px; height: 50px; }
.cwnav-directory .archive-resource-grid .resource-heading strong { font-size: 14px; }
.cwnav-directory .archive-resource-grid .resource-description {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.55;
  white-space: nowrap;
  -webkit-line-clamp: 1;
}
.cwnav-directory .archive-resource-grid .resource-tags {
  position: absolute;
  right: 34px;
  bottom: 7px;
  left: 10px;
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
}
.cwnav-directory .archive-resource-grid .resource-tags > span {
  display: inline-flex;
  min-width: 0;
  min-height: 19px;
  flex: 0 1 auto;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cwnav-directory .archive-resource-grid .resource-tags > .resource-category-tag {
  flex-shrink: 0;
  background: rgba(243, 75, 91, .12);
  color: var(--coral);
}
.cwnav-directory .archive-resource-grid .resource-tags svg { width: 10px; height: 10px; flex: 0 0 10px; }
.cwnav-directory .archive-resource-grid .resource-meta {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 2px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
}
.cwnav-directory .archive-resource-grid .resource-meta > span,
.cwnav-directory .archive-resource-grid .resource-meta > .favorite-button { display: none; }
.cwnav-directory .archive-resource-grid .resource-external {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  color: var(--ink-muted);
}
.cwnav-directory .archive-resource-grid .resource-external:hover { background: var(--surface-soft); color: var(--coral); }
.cwnav-directory .archive-resource-grid .resource-external svg { width: 15px; height: 15px; }
.cwnav-directory .archive-resource-grid > .empty-state { grid-column: 1 / -1; }

.cwnav-directory .directory-layout > .widget-rail {
  position: static;
  display: grid;
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  align-content: start;
  gap: 20px;
  margin: 0;
}
.cwnav-directory .article-ranking-widget { min-height: 0; }
.archive-tag-cloud { position: relative; overflow: hidden !important; padding: 10px 14px 16px !important; }
.archive-tag-cloud .widget-heading h2 { font-size: 16px; font-weight: 500; }
.archive-tag-cloud .widget-heading h2 svg { width: 15px; height: 15px; color: var(--coral); }
.archive-tag-cloud .widget-heading { border-bottom: 1px solid var(--line); }
.archive-tag-cloud .widget-heading > a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink-muted);
}
.archive-tag-cloud .widget-heading > a:hover { color: var(--coral); }
.archive-tag-cloud .widget-heading > a svg { width: 14px; height: 14px; }
.archive-tag-cloud .widget-heading > a.is-loading svg,
.site-tag-cloud .site-aside-heading > a.is-loading svg { animation: cwnav-loader-spin 700ms linear infinite; }
.archive-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-top: 12px;
}
.archive-tag-grid a {
  display: flex;
  min-width: 0;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}
.archive-tag-grid a:is(:hover, :focus-visible) { color: #fff !important; box-shadow: 0 7px 15px -12px rgba(0, 0, 0, .8); transform: translateY(-1px); }
.archive-tag-grid a.site-tag-tone--0:is(:hover, :focus-visible) { background: #19aa2c !important; }
.archive-tag-grid a.site-tag-tone--1:is(:hover, :focus-visible) { background: #f1404b !important; }
.archive-tag-grid a.site-tag-tone--2:is(:hover, :focus-visible) { background: #f5840a !important; }
.archive-tag-grid a.site-tag-tone--3:is(:hover, :focus-visible) { background: #7476f6 !important; }
.archive-tag-grid a.site-tag-tone--4:is(:hover, :focus-visible) { background: #248bf3 !important; }
.archive-tag-grid a.site-tag-tone--5:is(:hover, :focus-visible) { background: #955cff !important; }
.archive-tag-grid small { font-size: 10px; }

@media (max-width: 900px) {
  .cwnav-directory .directory-layout { grid-template-columns: minmax(0, 1fr); }
  .cwnav-directory .directory-layout > .widget-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cwnav-directory .directory-layout > .widget-rail .archive-tag-cloud { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .cwnav-directory .directory-page { margin-top: 70px; }
  .cwnav-directory .directory-hero { min-height: 170px; padding-inline: 12px; }
  .cwnav-directory .directory-hero h1 { font-size: 24px; }
  .cwnav-directory .directory-layout { width: calc(100% - 20px); margin-top: 10px; }
  .taxonomy-selects { min-height: 0; margin-bottom: 10px; padding: 12px 14px; }
  .taxonomy-term-links { gap: 0 16px; }
  .cwnav-directory .archive-resource-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cwnav-directory .archive-resource-grid .resource-card,
  .cwnav-directory .archive-resource-grid .resource-main { min-height: 104px; }
  .cwnav-directory .directory-layout > .widget-rail { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cwnav-directory .directory-layout > .widget-rail .archive-tag-cloud { grid-column: auto; }
}
@media (max-width: 420px) {
  .site-detail-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px; }
  .site-detail-buttons .primary-link,
  .site-detail-buttons .secondary-action { width: auto; min-width: 0; padding-inline: 8px; font-size: 14px; }
  .site-detail-buttons .site-report-action { width: 42px; min-width: 42px; }
  .site-comment-form { grid-template-columns: 1fr; }
  .site-comment-form .comment-form-author,
  .site-comment-form .comment-form-email { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .has-flow-light::after { animation: none; top: 10%; }
}

/* Final content-page overrides sit after archive styles to keep the page templates isolated. */
.blog-feature > *, .blog-feature-side > * { min-height: 0; }
.blog-feature-lead, .blog-feature-side { height: 304px; }
.blog-feature-lead img, .blog-feature-side img { min-height: 0; }

.cwnav-rankings .ranking-page { width: 100%; margin: 70px 0 36px; }
.cwnav-rankings .ranking-hero { min-height: 209px; padding: 42px 20px 32px; border-radius: 0; background: rgba(134, 35, 47, .43); }
.cwnav-rankings .ranking-hero h1 { margin: 13px 0 11px; font-size: 32px; }
.cwnav-rankings .ranking-hero p { font-size: 12px; }
.cwnav-rankings .ranking-list { display: grid; gap: 16px; padding: 20px; border-radius: 0 0 10px 10px; background: var(--surface); }
.cwnav-rankings .ranking-row { min-height: 60px; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: var(--surface-soft); }
.cwnav-rankings .ranking-icon { width: 40px; height: 40px; border: 0; border-radius: 50%; }
.cwnav-rankings .ranking-icon img { width: 40px; height: 40px; border-radius: 50%; }

.cwnav-hotnews .hotnews-page { width: min(var(--cwnav-content-width), calc(100% - 20px)); margin: 88px auto 36px; }
.cwnav-hotnews .hotnews-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cwnav-hotnews .hotnews-source { display: flex; height: 380px; flex-direction: column; padding: 12px 14px 11px; overflow: hidden; border-radius: 10px; }
.cwnav-hotnews .hotnews-source header { min-height: 35px; border: 0; }
.cwnav-hotnews .hotnews-source ol { min-height: 0; flex: 1; margin: 0 -5px 0 0; padding-right: 5px; overflow-y: auto; }
.cwnav-hotnews .hotnews-source li a { min-height: 29px; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; padding: 4px 0; border: 0; }
.cwnav-hotnews .hotnews-source li span { overflow: visible; font-size: 13px; line-height: 1.52; text-overflow: clip; white-space: normal; }

@media (max-width: 900px) {
  .cwnav-rankings .ranking-shell { grid-template-columns: 150px minmax(0, 1fr); }
  .cwnav-rankings .ranking-shell > .content-widget-rail { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cwnav-hotnews .hotnews-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .blog-feature-lead { height: 218px; }
  .blog-feature-side { height: 112px; }
  .cwnav-rankings .ranking-page { margin-top: 70px; }
  .cwnav-rankings .ranking-hero { min-height: 188px; }
  .cwnav-rankings .ranking-shell { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .cwnav-rankings .ranking-shell > .content-widget-rail { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .cwnav-hotnews .hotnews-page { width: calc(100% - 20px); margin-top: 78px; }
  .cwnav-hotnews .hotnews-board { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cwnav-hotnews .hotnews-source { height: 370px; }
}

@media (max-width: 720px) and (hover: hover) and (pointer: fine) {
  .floating-tools { right: 0; bottom: 22px; width: 40px; padding: 8px 0; border: 0; border-radius: 0; transform: translateX(24px); }
  .floating-tools::before { position: absolute; top: -12px; right: 0; bottom: -12px; left: -32px; display: block; content: ""; }
  .floating-tools:hover,
  .floating-tools:focus-within,
  .floating-tools.is-open { transform: translateX(0); }
  .floating-tools > button,
  .floating-tools > a { width: 40px; height: 40px; }
  .floating-tools > .tool-rail-toggle { display: none; }
  .floating-tools > :not(.tool-rail-toggle) { display: inline-grid; }
  .floating-tools > [hidden] { display: none !important; }
  .tool-popover { right: 48px; bottom: 22px; width: min(310px, calc(100% - 66px)); }
  .ai-orb { right: 0; bottom: 84px; width: 52px; height: 60px; }
  .ai-orb[aria-expanded="true"]:not(.is-positioned) { bottom: 84px; }
}

@media (max-width: 980px) and (hover: none), (max-width: 980px) and (pointer: coarse) {
  .drawer-account-actions a,
  .drawer-auth-links a { min-height: 44px; }
}
