:root{color-scheme:dark;--bg:#070b12;--panel:rgba(15,23,34,.86);--line:rgba(149,166,190,.18);--text:#eef4f8;--muted:#9aa9b8;--green:#58d68d;--cyan:#47c7e8;--amber:#f5c15c;--shadow:0 20px 60px rgba(0,0,0,.32)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 16% 0%,rgba(71,199,232,.16),transparent 28%),var(--bg);color:var(--text);font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;letter-spacing:0}#matrix{position:fixed;inset:0;z-index:-1;opacity:.55}a{color:inherit;text-decoration:none}button,input{font:inherit}.app-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px clamp(18px,4vw,56px);background:rgba(7,11,18,.8);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.brand,.top-links{display:flex;align-items:center;gap:12px}.brand{font-weight:800;min-width:0}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,var(--green),var(--cyan));color:#071018;flex:0 0 auto}.top-links a{color:var(--muted);font-size:14px;padding:8px 10px}.top-links a:hover{color:var(--text)}main{width:min(1180px,calc(100% - 32px));margin:0 auto}.hero{min-height:420px;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,440px);align-items:end;gap:28px;padding:clamp(58px,8vw,96px) 0 36px}.eyebrow{color:var(--green);margin:0 0 16px;text-transform:uppercase;font-size:13px;font-weight:800}h1{max-width:760px;margin:0;font-size:clamp(34px,6vw,66px);line-height:1.25;letter-spacing:0}.hero-subtitle{max-width:660px;margin:22px 0 0;color:var(--muted);font-size:18px;line-height:1.8}.search-panel,.metric,.news-card,.tool-section,.favorites-section{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(14px)}.search-panel{padding:22px;border-radius:8px}.search-label{display:block;margin-bottom:10px;color:var(--muted);font-size:13px}.search-box{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px;border-radius:8px;border:1px solid rgba(71,199,232,.3);background:rgba(3,8,14,.72)}.search-box input{width:100%;min-width:0;border:0;outline:0;color:var(--text);background:transparent}.search-box span{color:var(--cyan)}.quick-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.filter-chip{min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:rgba(255,255,255,.04);cursor:pointer}.filter-chip.active,.filter-chip:hover{color:#061017;border-color:transparent;background:var(--green)}.insight-row{display:grid;grid-template-columns:repeat(3,1fr) minmax(280px,1.6fr);gap:12px;margin-bottom:20px}.metric,.news-card{min-height:88px;padding:18px;border-radius:8px}.metric strong{display:block;font-size:30px;color:var(--green)}.metric span,.news-card span{color:var(--muted);font-size:13px}.news-card strong{display:block;margin-top:8px;line-height:1.45}.category-bar{position:sticky;top:69px;z-index:9;display:flex;gap:10px;overflow-x:auto;padding:12px 0;background:rgba(7,11,18,.82);backdrop-filter:blur(12px)}.category-pill{display:flex;align-items:center;gap:8px;white-space:nowrap;padding:10px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.04);color:var(--muted)}.category-pill:hover{color:var(--text);border-color:rgba(71,199,232,.45)}.category-pill em{color:var(--green);font-style:normal}.results-head,.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:28px 0 14px}.results-head h2,.section-heading h2{margin:0;font-size:24px}.results-head p,.section-heading p{margin:0;color:var(--muted)}.tool-section,.favorites-section{border-radius:8px;padding:22px;margin-bottom:18px}.favorites-section{border-color:rgba(245,193,92,.38)}.section-heading h2{display:flex;align-items:center;gap:10px}.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.tool-card{position:relative;min-height:178px;padding:16px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.045);transition:transform .16s ease,border-color .16s ease,background .16s ease}.tool-card:hover{transform:translateY(-2px);border-color:rgba(88,214,141,.48);background:rgba(255,255,255,.07)}.tool-card a{display:flex;gap:13px;min-height:104px}.tool-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;background:rgba(255,255,255,.08);flex:0 0 auto}.tool-icon img{width:28px;height:28px}.tool-info{min-width:0;padding-right:28px}.tool-info h3{margin:0 0 8px;font-size:17px;line-height:1.35}.tool-info p{margin:0 0 12px;color:var(--muted);line-height:1.5}.tool-info small{color:var(--cyan);overflow-wrap:anywhere}.favorite-btn{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;color:var(--muted);background:rgba(0,0,0,.18);cursor:pointer}.favorite-btn.active,.favorite-btn:hover{color:var(--amber);border-color:rgba(245,193,92,.5)}.tool-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.tool-tags span{padding:5px 8px;border-radius:999px;background:rgba(71,199,232,.1);color:#bfefff;font-size:12px}.empty-state{padding:40px 0 80px;text-align:center;color:var(--muted)}.site-footer{display:flex;justify-content:space-between;gap:14px;width:min(1180px,calc(100% - 32px));margin:28px auto 0;padding:26px 0 38px;color:var(--muted);border-top:1px solid var(--line)}@media (max-width:860px){.hero{grid-template-columns:1fr;min-height:0;padding-top:44px}.insight-row{grid-template-columns:repeat(2,1fr)}.news-card{grid-column:1/-1}.category-bar{top:64px}}@media (max-width:560px){main,.site-footer{width:min(100% - 24px,1180px)}.app-header{padding:12px}.brand span:last-child{font-size:14px}.top-links{gap:4px}.top-links a{padding:8px 6px}h1{font-size:34px}.hero-subtitle{font-size:16px}.insight-row{grid-template-columns:1fr}.results-head,.section-heading,.site-footer{align-items:flex-start;flex-direction:column}.tool-section,.favorites-section,.search-panel{padding:16px}.tool-grid{grid-template-columns:1fr}}

.hero-copy {
  align-self: center;
  padding-bottom: 10px;
}

.brand-mark {
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.app-header {
  position: relative;
  top: auto;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
}

/* Soft, one-way rightward aurora inside the top navigation bar. */
.app-header::before,
.app-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -120% -18%;
  will-change: background-position, opacity;
  mix-blend-mode: screen;
}

.app-header::before {
  background:
    linear-gradient(103deg, transparent 0 17%, rgba(60, 200, 150, 0) 28%, rgba(77, 219, 163, .055) 38%, rgba(65, 190, 177, .085) 48%, rgba(49, 151, 163, .025) 58%, transparent 69%) 0 0 / 360px 100% repeat-x,
    linear-gradient(98deg, transparent 0 30%, rgba(59, 188, 154, 0) 40%, rgba(88, 215, 174, .045) 50%, rgba(76, 191, 181, .065) 59%, transparent 72%) 0 0 / 560px 100% repeat-x;
  filter: blur(14px) saturate(1.03);
  opacity: .46;
  transform: skewX(-2deg);
  animation: app-header-aurora-flow 15s linear infinite;
}

.app-header::after {
  inset: -60% -16%;
  background: linear-gradient(101deg, transparent 0 31%, rgba(139, 255, 211, 0) 42%, rgba(139, 255, 211, .075) 50%, rgba(63, 190, 179, .025) 56%, transparent 66%) 0 0 / 470px 100% repeat-x;
  filter: blur(2.2px);
  opacity: .28;
  animation: app-header-aurora-thread 11.5s linear infinite;
}

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

.hero-copy h1 {
  display: grid;
  gap: 8px;
  max-width: 780px;
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: 1.25;
}

.title-line {
  display: block;
}

.title-accent {
  color: transparent;
  background: linear-gradient(90deg, var(--green), var(--cyan) 62%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 24px;
  color: #c3ced8;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}

.search-panel {
  align-self: center;
}

@media (max-width: 860px) {
  .hero-copy h1 {
    font-size: clamp(38px, 9vw, 58px);
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 22px;
  }

  .hero-copy h1 {
    gap: 6px;
    font-size: 38px;
    line-height: 1.2;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
  }
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(160px, 190px);
  gap: 18px;
  align-items: start;
}

.tools-workspace {
  min-width: 0;
}

.tools-workspace .insight-row {
  grid-template-columns: repeat(3, 1fr);
}

.stats-sidebar {
  position: sticky;
  top: 86px;
}

.stats-sidebar .insight-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.stats-sidebar .metric {
  min-height: 106px;
  padding: 16px;
}

.stats-sidebar .metric strong {
  font-size: 34px;
}

.tools-workspace .category-bar {
  position: relative;
  top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 18px;
  overflow: visible;
  padding: 8px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tools-workspace .category-pill {
  position: relative;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  gap: 7px;
  border-radius: 7px;
  border-color: transparent;
  background: transparent;
  color: rgba(238, 244, 248, 0.72);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.tools-workspace .category-pill:hover {
  color: var(--text);
  border-color: rgba(71, 199, 232, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.tools-workspace .category-bar > .category-group-toggle.active {
  color: var(--text);
  background: rgba(88, 214, 141, 0.11);
  border-color: rgba(88, 214, 141, 0.28);
}

.tools-workspace .category-bar > .category-group-toggle.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.tools-workspace .category-pill strong {
  font-size: 14px;
  font-weight: 700;
}

.tools-workspace .category-pill em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.1);
  color: var(--green);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tools-workspace .tool-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.tools-workspace #hot .tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-sidebar {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 108px);
  overflow: hidden;
  border: 1px solid rgba(71, 199, 232, 0.24);
  border-radius: 8px;
  background: rgba(10, 18, 28, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.news-sidebar {
  isolation: isolate;
}

.news-aurora {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .36;
  pointer-events: none;
  filter: saturate(1.18) brightness(1.08) contrast(1.02);
  mix-blend-mode: screen;
  transform: translateZ(0);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), filter .55s ease;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.news-sidebar:hover .news-aurora,
.news-sidebar:focus-within .news-aurora {
  opacity: .42;
  filter: saturate(1.22) brightness(1.11) contrast(1.025);
}

.news-sidebar-head,
.news-list {
  position: relative;
  z-index: 1;
}

.news-list[hidden],
.ai-ranking-panel[hidden],
.news-sidebar-head .live-kicker[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .news-aurora {
    opacity: .32;
  }

  .news-sidebar:hover .news-aurora,
  .news-sidebar:focus-within .news-aurora {
    opacity: .36;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-header::before,
  .app-header::after {
    animation: none;
  }

  .news-aurora {
    transition: none;
  }

  .news-sidebar-head::before,
  .news-sidebar-head::after {
    animation: none;
  }
}
.news-sidebar-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(88, 214, 141, 0.12), rgba(71, 199, 232, 0.04));
}

.news-sidebar-head::before,
.news-sidebar-head::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: background-position, opacity;
}

.news-sidebar-head::before {
  inset: -90% -36%;
  background:
    linear-gradient(104deg, transparent 0 19%, rgba(72, 224, 157, 0) 28%, rgba(83, 228, 176, .12) 37%, rgba(65, 194, 181, .2) 46%, rgba(54, 161, 178, .06) 56%, transparent 69%) 0 0 / 280px 100% repeat-x,
    linear-gradient(98deg, transparent 0 32%, rgba(78, 208, 174, 0) 41%, rgba(117, 239, 203, .1) 51%, rgba(55, 167, 181, .14) 61%, transparent 74%) 0 0 / 420px 100% repeat-x;
  filter: blur(12px) saturate(1.08);
  opacity: .52;
  transform: skewX(-3deg);
  animation: news-heading-aurora-flow 14s linear infinite;
}

.news-sidebar-head::after {
  inset: -30% -44%;
  background: linear-gradient(101deg, transparent 31%, rgba(143, 255, 214, 0) 43%, rgba(143, 255, 214, .18) 50%, rgba(67, 206, 181, .06) 54%, transparent 63%) 0 0 / 330px 100% repeat-x;
  filter: blur(1.2px);
  opacity: .38;
  animation: news-heading-aurora-thread 10.5s linear infinite;
}

.news-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.news-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.news-view-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(71, 199, 232, .25);
  border-radius: 6px;
  background: rgba(5, 15, 23, .54);
  color: rgba(224, 241, 246, .82);
  cursor: pointer;
  white-space: nowrap;
  transition: color .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease, transform .24s ease;
}

.news-view-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(105, 233, 197, .12) 48%, transparent 76%);
  transform: translateX(-120%);
  transition: transform .58s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.news-view-toggle:hover,
.news-view-toggle:focus-visible {
  border-color: rgba(88, 214, 141, .44);
  background: rgba(19, 50, 49, .56);
  color: #f2fff9;
  box-shadow: 0 0 0 1px rgba(88, 214, 141, .07), 0 8px 22px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.news-view-toggle:hover::before,
.news-view-toggle:focus-visible::before {
  transform: translateX(120%);
}

.news-view-toggle:active {
  transform: translateY(0) scale(.98);
}

.news-view-toggle-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 13px;
  height: 13px;
}

.news-view-toggle-icon i {
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
  opacity: .88;
  transition: height .28s ease, opacity .28s ease;
}

.news-view-toggle-icon i:nth-child(1) { height: 6px; }
.news-view-toggle-icon i:nth-child(2) { height: 11px; }
.news-view-toggle-icon i:nth-child(3) { height: 8px; }

.news-view-toggle:hover .news-view-toggle-icon i:nth-child(1) { height: 9px; }
.news-view-toggle:hover .news-view-toggle-icon i:nth-child(2) { height: 7px; }
.news-view-toggle:hover .news-view-toggle-icon i:nth-child(3) { height: 12px; }

.news-view-toggle-label {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.news-sidebar-head .live-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(88, 214, 141, 0.22);
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.07);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.live-kicker i {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(88, 214, 141, 0.95);
  flex: 0 0 auto;
}

.live-kicker i::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(88, 214, 141, 0.42);
  animation: livePulse 1.9s ease-out infinite;
}

@keyframes app-header-aurora-flow {
  from { background-position: -360px 0, -560px 0; }
  to { background-position: 0 0, 0 0; }
}

@keyframes app-header-aurora-thread {
  from { background-position: -470px 0; }
  to { background-position: 0 0; }
}

@keyframes news-heading-aurora-flow {
  from { background-position: -280px 0, -420px 0; }
  to { background-position: 0 0, 0 0; }
}

@keyframes news-heading-aurora-thread {
  from { background-position: -330px 0; }
  to { background-position: 0 0; }
}

@keyframes livePulse {
  0% {
    opacity: 0.78;
    transform: scale(0.58);
  }

  70% {
    opacity: 0;
    transform: scale(1.45);
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.news-sidebar-head h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 24px;
  white-space: nowrap;
}

.news-list {
  display: grid;
  gap: 0;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  position: relative;
  padding: 8px 0 8px;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

.ai-ranking-panel {
  position: relative;
  z-index: 1;
  min-height: min(430px, calc(100vh - 190px));
  padding: 64px 28px 34px;
  text-align: center;
  animation: rankingPanelIn .38s cubic-bezier(.22, 1, .36, 1) both;
}

.ai-ranking-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  padding: 18px 16px;
  border: 1px solid rgba(88, 214, 141, .22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(88, 214, 141, .11), rgba(71, 199, 232, .04));
  box-shadow: inset 0 0 22px rgba(88, 214, 141, .04), 0 16px 38px rgba(0, 0, 0, .2);
}

.ai-ranking-placeholder span {
  width: 9px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--green), rgba(71, 199, 232, .66));
  box-shadow: 0 0 12px rgba(88, 214, 141, .18);
}

.ai-ranking-placeholder span:nth-child(1) { height: 20px; }
.ai-ranking-placeholder span:nth-child(2) { height: 38px; }
.ai-ranking-placeholder span:nth-child(3) { height: 28px; }

.ai-ranking-panel strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.ai-ranking-panel p {
  max-width: 290px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.news-sidebar.is-ranking-mode .news-sidebar-head {
  background: linear-gradient(180deg, rgba(71, 199, 232, .1), rgba(88, 214, 141, .035));
}

.news-sidebar.is-ranking-mode .news-view-toggle {
  border-color: rgba(88, 214, 141, .28);
  color: var(--green);
}

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

.news-sidebar:hover .news-list,
.news-sidebar:focus-within .news-list {
  scrollbar-color: rgba(88, 214, 141, 0.6) rgba(255, 255, 255, 0.06);
}

.news-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 24px;
  width: 1px;
  background: linear-gradient(180deg, rgba(88, 214, 141, 0.45), rgba(71, 199, 232, 0.18), rgba(149, 166, 190, 0.06));
}

.news-list::-webkit-scrollbar {
  width: 8px;
}

.news-list::-webkit-scrollbar-track {
  background: transparent;
}

.news-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.news-sidebar:hover .news-list::-webkit-scrollbar-track,
.news-sidebar:focus-within .news-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.news-sidebar:hover .news-list::-webkit-scrollbar-thumb,
.news-sidebar:focus-within .news-list::-webkit-scrollbar-thumb {
  background: rgba(88, 214, 141, 0.62);
}

.news-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px 18px 14px 44px;
  border-bottom: 1px solid rgba(149, 166, 190, 0.14);
  animation: newsFadeIn .42s ease both;
}

.news-dot {
  position: absolute;
  top: 20px;
  left: 19px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(10, 18, 28, 0.96);
  border-radius: 999px;
  background: rgba(149, 166, 190, 0.62);
  box-shadow: 0 0 0 1px rgba(149, 166, 190, 0.2);
}

.news-item.is-today {
  isolation: isolate;
  background: linear-gradient(90deg, rgba(88, 214, 141, 0.085), transparent 64%);
}

.news-item.is-today::after {
  content: "";
  position: absolute;
  inset: 5px 6px;
  z-index: -1;
  border: 1px solid rgba(88, 214, 141, 0.14);
  border-radius: 6px;
  background: rgba(88, 214, 141, 0.025);
  pointer-events: none;
  animation: todayNewsBreath 2.8s ease-in-out .45s infinite;
}

.news-item.is-today .news-dot {
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(88, 214, 141, 0.35), 0 0 18px rgba(88, 214, 141, 0.42);
  animation: latestDotPulse 2.4s ease-in-out infinite;
}

.news-item:hover {
  background: rgba(71, 199, 232, 0.08);
}

.news-item time {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.news-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.news-item strong em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(88, 214, 141, 0.26);
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.08);
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.news-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
}

@keyframes latestDotPulse {
  0%, 100% {
    opacity: .72;
    transform: scale(.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes todayNewsBreath {
  0%, 100% {
    opacity: .38;
    box-shadow: inset 0 0 10px rgba(88, 214, 141, 0.02), 0 0 0 rgba(88, 214, 141, 0);
  }

  50% {
    opacity: .95;
    box-shadow: inset 0 0 24px rgba(88, 214, 141, 0.08), 0 0 16px rgba(88, 214, 141, 0.08);
  }
}

@keyframes newsFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-item,
  .news-item.is-today::after,
  .news-item.is-today .news-dot,
  .duck-bubble {
    animation: none;
  }
}

@media (max-width: 980px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: relative;
    top: auto;
    max-height: none;
  }

  .news-list {
    max-height: 360px;
  }
}

@media (max-width: 560px) {
  .tools-workspace .insight-row {
    grid-template-columns: 1fr;
  }

  .tools-workspace .category-bar {
    gap: 8px;
  }

  .tools-workspace .category-pill {
    padding: 9px 10px;
    font-size: 14px;
  }

  .news-sidebar-head h2 {
    font-size: 22px;
  }

  .news-sidebar-head .live-kicker {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }

  .news-title-row {
    align-items: flex-start;
  }

  .news-head-actions {
    gap: 6px;
  }

  .news-view-toggle {
    min-height: 30px;
    padding: 0 9px;
  }

  .news-view-toggle-label {
    font-size: 11px;
  }
}

main,
.site-footer {
  width: min(1840px, calc(100% - clamp(28px, 2.4vw, 52px)));
}

.hero {
  grid-template-columns: minmax(760px, 1fr) minmax(420px, 520px);
  gap: clamp(36px, 5vw, 92px);
}

.hero-copy h1 {
  max-width: 980px;
}

.hero-subtitle {
  max-width: 760px;
}

.search-panel {
  width: min(100%, 520px);
  justify-self: end;
}

.home-layout {
  grid-template-columns: minmax(340px, 430px) minmax(720px, 1fr) minmax(200px, 220px);
  gap: clamp(18px, 1.6vw, 30px);
}

.tools-workspace .category-bar {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: visible;
  overflow-y: visible;
  scrollbar-width: thin;
}

@media (max-width: 980px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .stats-sidebar {
    position: relative;
    top: auto;
  }

  .stats-sidebar .insight-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .stats-sidebar .insight-row {
    grid-template-columns: 1fr;
  }
}

.category-more {
  cursor: pointer;
  opacity: .9;
  margin-left: auto;
  color: var(--green) !important;
  border-color: rgba(88, 214, 141, 0.28) !important;
  background: rgba(88, 214, 141, 0.08) !important;
}

.category-more:hover {
  opacity: 1;
  background: rgba(88, 214, 141, 0.14) !important;
}

.category-group-toggle {
  cursor: pointer;
}

.category-toggle-mark {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(71, 199, 232, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.category-group-toggle[aria-expanded="true"] .category-toggle-mark {
  border-color: rgba(88, 214, 141, 0.32);
  color: var(--green);
  background: rgba(88, 214, 141, 0.08);
}

.category-overflow-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin: -8px 0 16px;
  padding: 12px;
  border: 1px solid rgba(149, 166, 190, 0.16);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.category-overflow-panel[hidden] {
  display: none;
}

.category-overflow-panel .category-pill {
  width: 100%;
  justify-content: flex-start;
}
.category-fold-tag {
  cursor:pointer;
  border:1px solid var(--green) !important;
  background:linear-gradient(135deg,rgba(88,214,141,.12),rgba(71,199,232,.08)) !important;
  color:var(--green) !important;
  font-weight:700;
  letter-spacing:.5px;
  transition:all .25s ease;
  box-shadow:0 0 14px rgba(88,214,141,.15);
}
.category-fold-tag:hover {
  background:linear-gradient(135deg,rgba(88,214,141,.22),rgba(71,199,232,.15)) !important;
  box-shadow:0 0 22px rgba(88,214,141,.3);
  transform:scale(1.04);
}

#back-to-top {
  position:fixed; bottom:120px; right:76px; z-index:20;
  width:42px; height:42px;
  border:1px solid var(--green); border-radius:50%;
  background:rgba(7,11,18,.9); color:var(--green);
  font-size:20px; cursor:pointer;
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .3s ease,transform .3s ease;
  backdrop-filter:blur(8px);
}
#back-to-top.visible { opacity:1; transform:translateY(0); pointer-events:auto; }
#back-to-top:hover { background:var(--green); color:#071018; }

.tool-icon {
  position: relative;
  overflow: hidden;
}

.tool-logo {
  position: absolute;
  inset: 7px;
  display: block;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 6px;
  object-fit: contain;
  opacity: 0;
  transition: opacity .16s ease;
}

.tool-icon.logo-loaded .tool-logo {
  opacity: 1;
}

/* Compact tool sections */
.tools-workspace .tool-section,
.tools-workspace .favorites-section {
  padding: 14px 16px 16px;
  margin-bottom: 14px;
}

.tools-workspace .category-target-highlight,
.tools-workspace .utility-subsection.category-target-highlight {
  position: relative;
  border-radius: 8px;
  isolation: isolate;
}

.tools-workspace .category-target-highlight::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(110, 190, 145, 0.22);
  border-radius: inherit;
  background: rgba(88, 180, 130, 0.014);
  box-shadow:
    0 0 0 1px rgba(110, 190, 145, 0.025),
    0 0 16px rgba(88, 180, 130, 0.04),
    inset 0 0 24px rgba(88, 180, 130, 0.012);
  opacity: 0;
  animation: category-target-soft-pulse 2.7s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes category-target-soft-pulse {
  0%, 100% { opacity: 0; }
  20% { opacity: 0.38; }
  44% { opacity: 0.72; }
  66% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .tools-workspace .category-target-highlight::after {
    animation: none;
    opacity: 0.38;
  }
}

.tools-workspace .section-heading {
  margin: 2px 0 12px;
  align-items: center;
}

.tools-workspace .section-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.section-expand-btn {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(88, 214, 141, 0.26);
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.08);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.section-expand-btn:hover {
  border-color: rgba(88, 214, 141, 0.48);
  background: rgba(88, 214, 141, 0.14);
}

.tools-workspace .section-heading h2 {
  font-size: 22px;
  line-height: 1.2;
}

.tools-workspace .section-heading p {
  font-size: 13px;
}

.tools-workspace .tool-grid {
  gap: 12px;
}

.utility-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.utility-subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(149, 166, 190, 0.12);
}

.utility-subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.utility-subsection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.utility-subsection-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.utility-subsection-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.utility-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.utility-category-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.utility-category-card:hover {
  translate: 0 -2px;
  border-color: rgba(71, 199, 232, 0.36);
  background: rgba(255, 255, 255, 0.065);
}

.utility-category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.16), rgba(71, 199, 232, 0.12));
  font-size: 24px;
}

.utility-category-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.utility-category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.utility-item-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(149, 166, 190, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.utility-item-card:hover {
  translate: 0 -2px;
  border-color: rgba(88, 214, 141, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.utility-item-card .utility-category-icon {
  width: 36px;
  height: 36px;
  font-size: 19px;
}

.utility-item-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.28;
}

.utility-item-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.utility-detail-shell {
  width: min(1440px, calc(100% - 48px));
  padding: 38px 0 18px;
}

.utility-detail-page {
  display: grid;
  gap: 24px;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-bottom: 24px;
  padding: 0 20px;
  border: 1px solid rgba(88, 214, 141, 0.34);
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.09);
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: color 180ms ease,
              background-color 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease,
              transform 180ms ease;
}

.detail-back-link:hover {
  border-color: rgba(88, 214, 141, 0.62);
  background: rgba(88, 214, 141, 0.16);
  color: #7bf0ad;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.16);
  transform: translateY(-2px);
}

.detail-back-link:focus-visible {
  outline: 2px solid rgba(88, 214, 141, 0.72);
  outline-offset: 3px;
}

.detail-back-link:active {
  box-shadow: 0 5px 14px rgba(34, 197, 94, 0.12);
  transform: translateY(0) scale(0.98);
}

.detail-hero-panel,
.detail-section,
.detail-link-card {
  border: 1px solid rgba(149, 166, 190, 0.16);
  border-radius: 8px;
  background: rgba(10, 18, 28, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.detail-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(28px, 3.6vw, 48px);
  padding: clamp(34px, 4.4vw, 54px);
  overflow: hidden;
}

.detail-hero-panel.is-simple {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 560px);
}

.detail-eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-hero-copy h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 1.16;
}

.detail-hero-copy p:not(.detail-eyebrow) {
  max-width: 860px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(71, 199, 232, 0.1);
  color: #bfefff;
  font-size: 12px;
  font-weight: 800;
}

.detail-visual-card {
  position: relative;
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(71, 199, 232, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(88, 214, 141, 0.09), rgba(71, 199, 232, 0.08)),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.detail-visual-card::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(149, 166, 190, 0.12);
  border-radius: 8px;
}

.detail-file-stack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.detail-file-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
  transition: translate .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.detail-file-card::after {
  content: none;
}
.detail-file-card:hover,
.detail-file-card:focus-visible {
  border-color: rgba(88, 214, 141, 0.38);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(88, 214, 141, 0.055);
  outline: none;
  translate: 0 -2px;
}

.detail-file-card:hover .detail-file-icon,
.detail-file-card:focus-visible .detail-file-icon {
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.28), rgba(71, 199, 232, 0.18));
}

.detail-file-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.16), rgba(71, 199, 232, 0.12));
  font-size: 22px;
  line-height: 1;
}

.detail-file-card b {
  display: block;
  grid-column: 2;
  align-self: end;
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font-size: 16px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.detail-file-card small {
  display: block;
  grid-column: 2;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.simple-section {
  margin-top: 0;
}

.simple-pick-grid,
.simple-tool-grid,
.simple-bottom-grid {
  display: grid;
  gap: 20px;
}

.simple-pick-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.simple-pick-card {
  display: grid;
  align-content: start;
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.simple-pick-card strong,
.simple-pick-card span {
  display: block;
}

.simple-pick-card span {
  margin-top: 10px;
  color: var(--green);
  font-size: 21px;
  font-weight: 900;
}

.simple-pick-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.simple-tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 292px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: translate .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.simple-tool-card:hover,
.simple-tool-card:focus-visible {
  translate: 0 -4px;
  border-color: rgba(88, 214, 141, 0.46);
  background: rgba(88, 214, 141, 0.075);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(88, 214, 141, 0.08), 0 0 32px rgba(88, 214, 141, 0.08);
}

.simple-tool-card:focus-visible {
  outline: 2px solid rgba(125, 255, 178, 0.82);
  outline-offset: 3px;
}

.simple-tool-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.16), rgba(71, 199, 232, 0.12));
  font-size: 28px;
  transition: scale .22s ease, background .22s ease, box-shadow .22s ease;
}

.simple-tool-card:hover .simple-tool-icon,
.simple-tool-card:focus-visible .simple-tool-icon {
  scale: 1.06;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.25), rgba(71, 199, 232, 0.19));
  box-shadow: 0 8px 22px rgba(88, 214, 141, 0.12);
}

.simple-tool-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.simple-tool-head span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(71, 199, 232, 0.1);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.simple-tool-head h3 {
  min-width: 0;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.simple-tool-card:hover .simple-tool-head h3,
.simple-tool-card:focus-visible .simple-tool-head h3 {
  color: #9affc2;
}

.simple-tool-copy p {
  margin: 10px 0 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.simple-tool-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.simple-tool-notes {
  position: relative;
  margin-top: 8px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(88, 214, 141, 0.12);
  border-radius: 8px;
  background: rgba(88, 214, 141, 0.055);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.simple-tool-notes::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(151, 255, 196, 0.18) 46%, rgba(255, 255, 255, 0.26) 50%, rgba(151, 255, 196, 0.12) 55%, transparent 72%);
  translate: -135% 0;
}

.simple-tool-notes.is-watch::after {
  background: linear-gradient(105deg, transparent 28%, rgba(245, 193, 92, 0.16) 46%, rgba(255, 244, 208, 0.24) 50%, rgba(245, 193, 92, 0.1) 55%, transparent 72%);
}

.simple-tool-card:hover .simple-tool-notes::after,
.simple-tool-card:focus-visible .simple-tool-notes::after {
  animation: tool-note-scan 1.15s ease-out both;
}

.simple-tool-card:hover .simple-tool-notes.is-watch::after,
.simple-tool-card:focus-visible .simple-tool-notes.is-watch::after {
  animation-delay: .16s;
}

.simple-tool-notes.is-watch {
  border-color: rgba(245, 193, 92, 0.13);
  background: rgba(245, 193, 92, 0.045);
  margin-bottom: 18px;
}

.simple-tool-notes b {
  color: var(--green);
}

.simple-tool-notes.is-watch b {
  color: var(--amber);
}

.simple-tool-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 20px;
  border: 1px solid rgba(88, 214, 141, 0.44);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.18), rgba(71, 199, 232, 0.12));
  box-shadow: 0 0 0 0 rgba(88, 214, 141, 0.2), 0 12px 28px rgba(0, 0, 0, 0.18);
  color: #7dffb2;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: translate .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  animation: cta-breathe 2.8s ease-in-out infinite;
}

.simple-tool-cta::after {
  content: "↗";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.18);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  transition: translate .18s ease, background .18s ease;
}

.simple-tool-card:hover .simple-tool-cta,
.simple-tool-card:focus-visible .simple-tool-cta {
  border-color: rgba(125, 255, 178, 0.78);
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.28), rgba(71, 199, 232, 0.18));
  box-shadow: 0 0 0 5px rgba(88, 214, 141, 0.09), 0 16px 34px rgba(0, 0, 0, 0.24), 0 0 24px rgba(88, 214, 141, 0.16);
  color: #b8ffd4;
  translate: 0 -2px;
}

.simple-tool-card:hover .simple-tool-cta::after,
.simple-tool-card:focus-visible .simple-tool-cta::after {
  background: rgba(88, 214, 141, 0.32);
  translate: 2px -2px;
}

@keyframes tool-note-scan {
  from {
    translate: -135% 0;
  }

  to {
    translate: 135% 0;
  }
}
@keyframes cta-breathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(88, 214, 141, 0.16), 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(88, 214, 141, 0.06), 0 14px 32px rgba(0, 0, 0, 0.22), 0 0 18px rgba(88, 214, 141, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .simple-tool-card,
  .simple-tool-icon,
  .simple-tool-cta,
  .simple-tool-cta::after {
    transition: none;
  }

  .simple-tool-card:hover .simple-tool-notes::after,
  .simple-tool-card:focus-visible .simple-tool-notes::after,
  .simple-tool-cta {
    animation: none;
  }
}
.simple-bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.detail-visual-card.compact-visual {
  min-height: 0;
}


.tool-inline-steps {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(149, 166, 190, 0.13);
}

.tool-inline-steps h4 {
  margin: 0;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.tool-inline-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.detail-step-image-section {
  padding: 22px;
}

.detail-step-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.detail-step-image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(149, 166, 190, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.detail-step-image-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: contain;
  background: rgba(236, 244, 248, 0.96);
}

.detail-step-image-card figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.easy-pick-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.easy-tool-grid {
  grid-template-columns: 1fr;
}

.detail-last-note {
  margin-bottom: 0;
}

.detail-quick-panel {
  padding: 16px;
  border: 1px solid rgba(88, 214, 141, 0.18);
  border-radius: 8px;
  background: rgba(88, 214, 141, 0.055);
}

.detail-quick-panel h2,
.detail-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.detail-quick-panel ul,
.detail-tip-list,
.detail-pro-con ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-quick-panel li {
  padding: 12px 0;
  border-top: 1px solid rgba(149, 166, 190, 0.13);
}

.detail-quick-panel li:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-quick-panel strong,
.detail-quick-panel span {
  display: block;
}

.detail-quick-panel span {
  margin-top: 5px;
  color: var(--green);
  font-weight: 900;
}

.detail-quick-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  margin-top: 18px;
}

.detail-main-column,
.detail-side-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-section {
  padding: 18px;
}

.detail-section > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.detail-link-card {
  padding: 14px;
  box-shadow: none;
}

.detail-link-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-link-card-head span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.detail-link-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.detail-link-card-head a,
.detail-media-link {
  border: 1px solid rgba(88, 214, 141, 0.24);
  background: rgba(88, 214, 141, 0.08);
}

.detail-link-card-head a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.detail-link-card > p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-pro-con {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-pro-con strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
}

.detail-pro-con li,
.detail-tip-list li {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.detail-pro-con li::before,
.detail-tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.detail-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(71, 199, 232, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.detail-media-list {
  display: grid;
  gap: 10px;
}

.detail-media-link {
  display: block;
  padding: 12px;
  border-radius: 8px;
}

.detail-media-link span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.detail-media-link strong {
  display: block;
  margin-top: 4px;
}

.detail-media-link p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.detail-tip-list {
  display: grid;
  gap: 8px;
}

.detail-empty {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.detail-empty a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .detail-hero-panel,
  .detail-content-grid,
  .simple-bottom-grid {
    grid-template-columns: 1fr;
  }

  .simple-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .easy-tool-grid {
    grid-template-columns: 1fr;
  }

  .detail-pro-con {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .utility-detail-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .utility-detail-page {
    gap: 14px;
  }

  .detail-hero-panel {
    padding: 18px;
  }

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

  .detail-hero-copy p:not(.detail-eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }

  .detail-visual-card {
    padding: 16px;
  }

  .detail-file-stack {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-file-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 68px;
    padding: 12px;
  }

  .detail-file-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 23px;
  }

  .detail-file-card b {
    font-size: 17px;
  }

  .simple-tool-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    padding: 15px;
  }

  .simple-tool-grid,
  .easy-tool-grid {
    grid-template-columns: 1fr;
  }
.detail-step-image-section {
    padding: 14px;
  }

  .detail-step-image-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-step-image-card img {
    min-height: 220px;
    max-height: none;
  }

  .simple-tool-icon {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }

  .tools-workspace .tool-section,
  .tools-workspace .favorites-section {
    padding: 12px;
  }

  .tools-workspace .section-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .utility-category-grid {
    grid-template-columns: 1fr;
  }

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

  .utility-subsection-head p {
    max-width: none;
    text-align: left;
  }

  .utility-item-grid {
    grid-template-columns: 1fr;
  }

}

/* Centered search landing, inspired by compact AI tool directories */
.command-hero {
  position: relative;
  width: min(980px, 100%);
  margin: clamp(34px, 5vw, 72px) auto clamp(28px, 4vw, 48px);
  text-align: center;
}

.hero-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(88, 214, 141, 0.22);
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.055);
  box-shadow: 0 0 0 0 rgba(88, 214, 141, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(238, 244, 248, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  animation: badge-breathe 2.8s ease-in-out infinite;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(88, 214, 141, 0.9);
  animation: dot-breathe 2.8s ease-in-out infinite;
}

@keyframes badge-breathe {
  0%, 100% {
    border-color: rgba(88, 214, 141, 0.18);
    box-shadow: 0 0 0 0 rgba(88, 214, 141, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  50% {
    border-color: rgba(88, 214, 141, 0.46);
    box-shadow: 0 0 22px rgba(88, 214, 141, 0.18), 0 0 0 5px rgba(88, 214, 141, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

@keyframes dot-breathe {
  0%, 100% {
    opacity: .62;
    transform: scale(.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duck-bubble {
  position: absolute;
  left: 68%;
  top: 36%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(143, 239, 231, 0.72);
  border-radius: 999px;
  background: rgba(143, 239, 231, 0.14);
  box-shadow: 0 0 10px rgba(71, 199, 232, 0.24);
  opacity: 0;
  pointer-events: none;
  animation: duckBubble 3.8s ease-in-out infinite;
}

.duck-bubble.b2 {
  width: 5px;
  height: 5px;
  animation-delay: 1.15s;
}

.duck-bubble.b3 {
  width: 9px;
  height: 9px;
  animation-delay: 2.25s;
}

@keyframes duckBubble {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.55);
  }

  12% {
    opacity: .72;
  }

  62% {
    opacity: .5;
    transform: translate(14px, -24px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(22px, -42px) scale(1.28);
  }
}

.command-hero h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(42px, 5.7vw, 72px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  margin: 28px auto 16px;
}

.hero-tabs .filter-chip {
  position: relative;
  min-height: 34px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(195, 206, 216, 0.72);
  font-size: 16px;
  font-weight: 700;
}

.hero-tabs .filter-chip.active,
.hero-tabs .filter-chip:hover {
  color: var(--text);
  background: transparent;
}

.hero-tabs .filter-chip.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.command-hero .search-panel {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.command-hero .search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.command-hero .search-box {
  min-height: 64px;
  padding: 0 20px 0 24px;
  border: 1px solid rgba(149, 166, 190, 0.2);
  border-radius: 999px;
  background: rgba(238, 244, 248, 0.12);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.command-hero .search-box:focus-within {
  border-color: rgba(88, 214, 141, 0.56);
  background: rgba(8, 16, 24, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26), 0 0 0 4px rgba(88, 214, 141, 0.08);
}

.command-hero .search-box span {
  order: 2;
  margin-left: auto;
  color: rgba(238, 244, 248, 0.86);
  font-size: 26px;
}

.command-hero .search-box input {
  color: var(--text);
  font-size: 17px;
}

.command-hero .search-box input::placeholder {
  color: rgba(195, 206, 216, 0.56);
}

.hero-hint {
  width: 100%;
  margin: 0 auto 14px;
  color: rgba(195, 206, 216, 0.68);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.home-layout {
  margin-top: 0;
}

@media (max-width: 760px) {
  .hero-badge {
    position: static;
    margin-bottom: 18px;
  }

  .hero-brand-lockup {
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
  }

  .hero-tabs {
    gap: 16px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .command-hero {
    position: relative;
    text-align: left;
  }

  .hero-hint {
    max-width: none;
    margin-bottom: 14px;
    text-align: center;
  }

  .command-hero .search-box {
    border-radius: 14px;
  }
}

.command-hero {
  text-align: center;
}

.hero-brand-lockup {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Clean workspace command area */
.home-layout {
  margin-top: 28px;
}

.workspace-search {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(10, 17, 26, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.workspace-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.workspace-title-row .eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.workspace-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.workspace-title-row p {
  max-width: 340px;
  margin: 0;
  color: rgba(195, 206, 216, 0.78);
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
}

.workspace-search .search-panel {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workspace-search .search-label {
  display: none;
}

.workspace-search .search-box {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  border-color: rgba(71, 199, 232, 0.32);
  background: rgba(4, 10, 16, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workspace-search .search-box:focus-within {
  border-color: rgba(88, 214, 141, 0.58);
  box-shadow: 0 0 0 3px rgba(88, 214, 141, 0.08);
}

.workspace-search .quick-filters {
  gap: 6px;
  margin-top: 10px;
}

.workspace-search .filter-chip {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  color: rgba(195, 206, 216, 0.78);
  background: transparent;
}

.workspace-search .filter-chip.active,
.workspace-search .filter-chip:hover {
  color: var(--text);
  border-color: rgba(88, 214, 141, 0.28);
  background: rgba(88, 214, 141, 0.12);
}

@media (max-width: 760px) {
  .workspace-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .workspace-title-row p {
    max-width: none;
    text-align: left;
  }
}

/* Refined workspace hero */
#matrix {
  opacity: 0.24;
}

.hero {
  display: block;
  min-height: 0;
  padding: clamp(48px, 6vw, 76px) 0 38px;
}

.hero-copy {
  width: min(920px, 100%);
  padding-bottom: 0;
}

.hero-copy h1 {
  gap: 0;
  max-width: 760px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.08;
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 18px;
  color: #c3ced8;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.65;
}

.hero .search-panel {
  width: min(860px, 100%);
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  justify-self: start;
}

.hero .search-label {
  margin-bottom: 9px;
  color: rgba(195, 206, 216, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.hero .search-box {
  min-height: 60px;
  padding: 0 18px;
  border-color: rgba(71, 199, 232, 0.42);
  background: rgba(5, 12, 18, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero .search-box:focus-within {
  border-color: rgba(88, 214, 141, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(88, 214, 141, 0.08);
}

.hero .search-box input {
  font-size: 16px;
}

.hero .quick-filters {
  gap: 6px;
  margin-top: 12px;
}

.hero .filter-chip {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  background: transparent;
}

.hero .filter-chip.active,
.hero .filter-chip:hover {
  color: var(--text);
  border-color: rgba(88, 214, 141, 0.28);
  background: rgba(88, 214, 141, 0.12);
}

@media (max-width: 560px) {
  .hero {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.12;
  }
}

/* Balanced desktop hero */
@media (min-width: 981px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(430px, 0.78fr) minmax(520px, 1fr);
    align-items: end;
    gap: clamp(42px, 5vw, 92px);
    padding: clamp(50px, 5.4vw, 76px) 0 42px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: clamp(48px, 4.2vw, 70px);
  }

  .hero-subtitle {
    max-width: 520px;
    margin-top: 16px;
  }

  .hero .search-panel {
    width: min(720px, 100%);
    margin: 0 0 6px auto;
  }

  .hero .search-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 10px;
    color: var(--green);
    letter-spacing: .02em;
  }

  .hero .search-box {
    min-height: 64px;
    border-radius: 8px;
  }

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

/* Compact product workspace header */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  min-height: 0;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(10, 17, 26, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-copy {
  width: 100%;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .08em;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.12;
}

.hero-subtitle {
  max-width: 420px;
  margin-top: 10px;
  color: rgba(195, 206, 216, 0.82);
  font-size: 15px;
  line-height: 1.55;
}

.hero .search-panel {
  width: 100%;
  margin: 0;
}

.hero .search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero .search-box {
  min-height: 52px;
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero .quick-filters {
  margin-top: 10px;
}

.hero .filter-chip {
  min-height: 30px;
  padding: 0 10px;
  color: rgba(195, 206, 216, 0.75);
}

.hero-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}


@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 16px;
  }

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

/* Final alignment pass for the home command area */
.command-hero {
  display: grid;
  justify-items: center;
  width: min(960px, calc(100% - 24px));
  margin-inline: auto;
  text-align: center;
}

.command-hero .hero-badge,
.command-hero .hero-brand-lockup,
.command-hero .hero-tabs,
.command-hero .search-panel {
  justify-self: center;
}

.command-hero .hero-brand-lockup {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.command-hero .hero-tabs {
  width: min(980px, 100%);
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 16px 18px;
  margin-left: auto;
  margin-right: auto;
  scrollbar-width: thin;
}

.command-hero .hero-tabs .filter-chip {
  flex: 0 0 auto;
}

.command-hero .search-panel {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Favorite interaction feedback */
.favorite-btn {
  overflow: visible;
  transition:
    transform .18s ease,
    color .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.favorite-btn.active {
  color: var(--amber);
  background: rgba(245, 193, 92, 0.12);
  box-shadow: 0 0 0 3px rgba(245, 193, 92, 0.08), 0 10px 24px rgba(245, 193, 92, 0.14);
}

.favorite-btn.favorite-pop {
  animation: favorite-pop .42s cubic-bezier(.2, 1.2, .3, 1) both;
}

.favorite-btn.favorite-unpop {
  animation: favorite-unpop .28s ease both;
}

.favorite-burst {
  position: fixed;
  z-index: 999;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  color: var(--amber);
  font-size: 22px;
  line-height: 24px;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(245, 193, 92, 0.72);
  animation: favorite-burst .62s ease-out forwards;
}

#favorite-count.count-pop {
  animation: count-pop .36s ease both;
}

@keyframes favorite-pop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 193, 92, 0);
  }

  45% {
    transform: scale(1.28) rotate(-10deg);
    box-shadow: 0 0 0 8px rgba(245, 193, 92, 0.16);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes favorite-unpop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(.84) rotate(8deg);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes favorite-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(.5) rotate(0);
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -34px, 0) scale(1.35) rotate(24deg);
  }
}

@keyframes count-pop {
  0% {
    transform: translateY(0) scale(1);
  }

  45% {
    color: var(--amber);
    transform: translateY(-2px) scale(1.12);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-btn,
  .favorite-btn.favorite-pop,
  .favorite-btn.favorite-unpop,
  .favorite-burst,
  #favorite-count.count-pop {
    animation: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .command-hero {
    justify-items: stretch;
    text-align: center;
  }

  .command-hero .hero-brand-lockup,
  .command-hero .hero-tabs,
  .command-hero .search-panel {
    width: 100%;
  }

  .command-hero .hero-tabs {
    justify-content: flex-start;
  }
}



/* Home overview marquees */
.tools-workspace .category-group-overview {
  padding-inline: 15px;
}

.overview-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
}

/* A restrained, rightward aurora shared by the four overview content rows. */
.overview-section::before,
.overview-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -22% -18%;
  will-change: background-position, opacity;
  mix-blend-mode: screen;
}

.overview-section::before {
  background:
    linear-gradient(104deg, transparent 0 10%, rgba(75, 193, 161, 0) 24%, rgba(86, 203, 171, .035) 36%, rgba(74, 190, 175, .06) 48%, rgba(63, 169, 170, .02) 61%, transparent 78%) 0 0 / 520px 100% repeat-x,
    linear-gradient(98deg, transparent 0 20%, rgba(72, 187, 160, 0) 34%, rgba(91, 205, 174, .025) 47%, rgba(78, 187, 176, .045) 59%, rgba(65, 164, 165, .015) 72%, transparent 87%) 0 0 / 760px 100% repeat-x;
  filter: blur(26px) saturate(.82);
  opacity: .28;
  transform: skewX(-2deg);
  animation: overview-content-aurora-flow 16s linear infinite;
}

.overview-section::after {
  inset: -8% -14%;
  background: linear-gradient(101deg, transparent 0 18%, rgba(119, 224, 192, 0) 31%, rgba(125, 225, 194, .04) 46%, rgba(79, 191, 181, .025) 58%, rgba(69, 170, 168, 0) 73%, transparent 86%) 0 0 / 680px 100% repeat-x;
  filter: blur(11px) saturate(.8);
  opacity: .18;
  animation: overview-content-aurora-thread 12s linear infinite;
}

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

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

.overview-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.overview-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.overview-row {
  padding: 14px 0 16px;
  border-top: 1px solid rgba(149, 166, 190, 0.12);
}

.overview-row:first-of-type {
  border-top: 0;
}

.overview-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.overview-row-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 36px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(88, 214, 141, 0.22);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(88, 214, 141, 0.11), rgba(71, 199, 232, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 17px;
  line-height: 1.3;
}


.overview-row-heading b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(88, 214, 141, 0.28);
  border-radius: 6px;
  background: rgba(88, 214, 141, 0.08);
  color: #78deb0;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.overview-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 3px 0 5px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.overview-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.overview-marquee-group {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-right: 10px;
}

.overview-marquee-left .overview-marquee-track {
  animation: overview-scroll-left 48s linear infinite;
}

.overview-marquee-right .overview-marquee-track {
  animation: overview-scroll-right 52s linear infinite;
}

.overview-marquee:hover .overview-marquee-track,
.overview-marquee:focus-within .overview-marquee-track {
  animation-play-state: paused;
}

.overview-tool-card {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  min-height: 68px;
  padding: 11px 14px;
  border: 1px solid rgba(149, 166, 190, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: translate .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.overview-tool-card:hover,
.overview-tool-card:focus-visible {
  translate: 0 -2px;
  border-color: rgba(88, 214, 141, 0.4);
  background: rgba(88, 214, 141, 0.075);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  outline: none;
}

.overview-tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.15), rgba(71, 199, 232, 0.11));
  font-size: 22px;
}

.overview-tool-icon.tool-icon {
  width: 42px;
  height: 42px;
}

.overview-tool-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.overview-tool-copy strong,
.overview-tool-copy small {
  white-space: nowrap;
}

.overview-tool-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.overview-tool-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

@keyframes overview-content-aurora-flow {
  from { background-position: -520px 0, -760px 0; }
  to { background-position: 0 0, 0 0; }
}

@keyframes overview-content-aurora-thread {
  from { background-position: -680px 0; }
  to { background-position: 0 0; }
}

@keyframes overview-scroll-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes overview-scroll-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (max-width: 560px) {
  .overview-heading {
    margin-bottom: 4px;
  }

  .overview-row {
    padding-block: 12px 14px;
  }

  .overview-tool-card {
    min-width: 174px;
    min-height: 62px;
    padding: 9px 12px;
  }

  .overview-tool-icon,
  .overview-tool-icon.tool-icon {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overview-section::before,
  .overview-section::after,
  .overview-marquee-track {
    animation: none !important;
  }
}
@media (max-width: 980px) {
  .tools-workspace .category-bar {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .tools-workspace .category-bar::-webkit-scrollbar {
    display: none;
  }
}
/* Daily resources */
.resource-item-card {
  position: relative;
  border-color: rgba(71, 199, 232, 0.16);
}

.resource-item-card::after {
  content: "查看";
  position: absolute;
  right: 11px;
  bottom: 9px;
  color: rgba(71, 199, 232, 0);
  font-size: 11px;
  font-weight: 900;
  transition: color .2s ease, translate .2s ease;
}

.resource-item-card:hover,
.resource-item-card:focus-visible {
  border-color: rgba(71, 199, 232, 0.38);
  background: rgba(71, 199, 232, 0.065);
  outline: none;
}

.resource-item-card:hover::after,
.resource-item-card:focus-visible::after {
  color: var(--cyan);
  translate: -2px 0;
}

.resource-item-card .utility-category-icon {
  background: rgba(71, 199, 232, 0.1);
  box-shadow: inset 0 0 0 1px rgba(71, 199, 232, 0.12);
}

.resource-detail-shell {
  width: min(1540px, calc(100% - 48px));
}

.resource-detail-page {
  gap: 0;
}

.resource-hero-panel {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  margin-bottom: 28px;
  border-color: rgba(71, 199, 232, 0.2);
  background:
    linear-gradient(115deg, rgba(88, 214, 141, 0.07), transparent 48%),
    rgba(10, 18, 28, 0.9);
}

.resource-hero-panel .detail-hero-copy h1 {
  font-size: clamp(44px, 5vw, 68px);
}

.resource-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.resource-stat {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.resource-stat:nth-child(2) {
  border-color: rgba(71, 199, 232, 0.2);
}

.resource-stat:nth-child(3) {
  border-color: rgba(245, 189, 74, 0.2);
}

.resource-stat strong {
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.resource-stat:nth-child(2) strong {
  color: var(--cyan);
}

.resource-stat:nth-child(3) strong {
  color: #f5bd4a;
}

.resource-stat span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.resource-entry-list {
  display: grid;
}

.resource-entry {
  padding: 30px 6px 34px;
  border-top: 1px solid rgba(149, 166, 190, 0.14);
}

.resource-entry:first-child {
  border-top: 0;
}

.resource-entry-head,
.resource-advice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.resource-entry-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.resource-entry-title > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(71, 199, 232, 0.16);
  border-radius: 8px;
  background: rgba(71, 199, 232, 0.085);
  font-size: 23px;
}

.resource-entry-title small {
  display: block;
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.resource-entry-title h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
}

.resource-entry-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.resource-entry-note {
  max-width: 920px;
  margin: 14px 0 0 60px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.resource-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.resource-link-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  transition: translate .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.resource-link-card:hover,
.resource-link-card:focus-visible {
  translate: 0 -2px;
  border-color: rgba(88, 214, 141, 0.34);
  background: rgba(88, 214, 141, 0.065);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  outline: none;
}

.resource-link-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(71, 199, 232, 0.1);
}

.resource-link-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.resource-link-icon i {
  display: none;
  font-size: 20px;
  font-style: normal;
}

.resource-link-icon i.is-visible {
  display: block;
}

.resource-link-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.resource-link-copy strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.35;
}

.resource-link-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-link-arrow {
  color: var(--cyan);
  font-size: 18px;
  transition: translate .2s ease;
}

.resource-link-card:hover .resource-link-arrow {
  translate: 2px -2px;
}

.resource-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.resource-shot-card {
  position: relative;
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(149, 166, 190, 0.15);
  border-radius: 8px;
  background: #e9eef1;
}

.resource-shot-card img {
  display: block;
  width: 100%;
  min-height: 210px;
  max-height: 520px;
  object-fit: contain;
  background: #e9eef1;
}

.resource-shot-card figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(7, 11, 18, 0.82);
  color: #eef6f7;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.resource-shot-card.is-image-missing {
  min-height: 180px;
  place-items: center;
}

.resource-shot-card.is-image-missing::before {
  content: "页面截图暂时无法加载";
  color: #56616b;
  font-size: 13px;
  font-weight: 800;
}

.resource-shot-card.is-image-missing img {
  display: none;
}

.resource-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.resource-video-wrap {
  overflow: hidden;
  border: 1px solid rgba(71, 199, 232, 0.18);
  border-radius: 8px;
  background: #060a0f;
}

.resource-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.resource-advice-section {
  margin-top: 12px;
  padding: 28px;
  border: 1px solid rgba(245, 189, 74, 0.18);
  border-radius: 8px;
  background: rgba(245, 189, 74, 0.045);
}

.resource-advice-head h2 {
  margin: 0;
  font-size: 22px;
}


.resource-advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.resource-advice-grid p {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.resource-advice-grid b {
  color: #f5bd4a;
  font-size: 11px;
}

@media (max-width: 920px) {
  .resource-hero-panel {
    grid-template-columns: 1fr;
  }

  .resource-advice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .resource-detail-shell {
    width: min(100% - 24px, 1540px);
  }

  .resource-hero-panel {
    margin-bottom: 16px;
  }

  .resource-hero-stats {
    gap: 6px;
  }

  .resource-stat {
    min-height: 92px;
    padding: 10px 6px;
  }

  .resource-stat strong {
    font-size: 25px;
  }

  .resource-entry {
    padding: 24px 0 28px;
  }

  .resource-entry-head,
  .resource-advice-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .resource-entry-note {
    margin-left: 0;
  }

  .resource-link-grid,
  .resource-shot-grid,
  .resource-video-grid {
    grid-template-columns: 1fr;
  }

  .resource-shot-card img {
    min-height: 150px;
  }

  .resource-advice-section {
    padding: 20px;
  }
}

/* Resource pages follow the practical-tool layout */
.resource-detail-shell {
  width: min(1440px, calc(100% - 48px));
}

.resource-detail-page {
  gap: 24px;
}

.resource-aligned-hero {
  margin: 0;
}

.resource-aligned-card {
  min-height: 0;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  cursor: default;
}

.resource-aligned-card.is-single-resource {
  cursor: pointer;
}

.resource-aligned-card .simple-tool-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas:
    "head head"
    "description action";
  align-items: center;
  column-gap: 20px;
  row-gap: 8px;
  min-width: 0;
  min-height: 0;
}

.resource-aligned-card .simple-tool-icon {
  width: 72px;
  height: 72px;
  font-size: 34px;
}

.resource-aligned-card .simple-tool-head {
  grid-area: head;
}

.resource-aligned-card .simple-tool-head h3 {
  font-size: 22px;
}

.resource-aligned-card .simple-tool-copy p {
  grid-area: description;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.resource-aligned-card .simple-tool-copy > .simple-tool-cta {
  grid-area: action;
  margin: 0;
}


.resource-inline-images,
.resource-inline-videos {
  grid-column: 1 / -1;
}

.resource-direct-image img {
  max-height: 620px;
  object-fit: contain;
}


@media (max-width: 560px) {
  .resource-detail-shell {
    width: min(100% - 24px, 1440px);
  }

  .resource-aligned-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .resource-aligned-card .simple-tool-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .resource-aligned-card .simple-tool-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "description"
      "action";
  }

  .resource-aligned-card .simple-tool-copy > .simple-tool-cta {
    justify-self: end;
    margin-top: 8px;
  }


}
/* Tutorial knowledge */
.tutorial-item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tutorial-item-card {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  min-height: 272px;
  padding: 16px;
  gap: 20px;
  border-color: rgba(245, 193, 92, 0.16);
}
.tutorial-item-card:hover,
.tutorial-item-card:focus-visible {
  border-color: rgba(245, 193, 92, 0.36);
  background: rgba(245, 193, 92, 0.055);
  outline: none;
}
.tutorial-item-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}
.tutorial-item-card p {
  display: block;
  overflow: visible;
  font-size: 15px;
  line-height: 1.65;
}
.tutorial-item-thumb {
  position: relative;
  width: 180px;
  height: 240px;
  overflow: hidden;
  border: 1px solid rgba(88, 214, 141, 0.24);
  border-radius: 6px;
  background: #0b171b;
  font-size: 30px;
  display: grid;
  place-items: center;
}
.tutorial-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.03) contrast(1.02) saturate(1.04);
  transition: filter .22s ease, scale .22s ease;
}
.tutorial-thumb-copy {
  position: absolute;
  top: 12px;
  right: 8px;
  left: 8px;
  padding: 9px 7px;
  border: 1px solid rgba(88, 214, 141, 0.24);
  border-left: 3px solid #69e3ac;
  border-radius: 4px;
  background: rgba(4, 13, 17, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  text-align: center;
  pointer-events: none;
}
.tutorial-item-card:hover .tutorial-item-thumb img,
.tutorial-item-card:focus-visible .tutorial-item-thumb img {
  filter: brightness(1.08) contrast(1.03) saturate(1.08);
  scale: 1.025;
}
.tutorial-thumb-copy strong {
  display: block;
  color: #f4fbf8;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.28;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.tutorial-thumb-copy strong.is-medium { font-size: 13px; }
.tutorial-thumb-copy strong.is-long { font-size: 12px; }
body[data-active-group="tutorial-knowledge"] .home-layout {
  grid-template-columns: minmax(0, 1fr);
}

body[data-active-group="tutorial-knowledge"] .news-sidebar,
body[data-active-group="tutorial-knowledge"] .stats-sidebar {
  display: none;
}

body[data-active-group="tutorial-knowledge"] .tools-workspace .tool-section {
  padding: 22px 24px 26px;
}

body[data-active-group="tutorial-knowledge"] .tools-workspace .section-heading h2 {
  font-size: 26px;
}

body[data-active-group="tutorial-knowledge"] .tools-workspace .section-heading p {
  font-size: 15px;
}
.tutorial-detail-shell { width: min(100% - 48px, 1560px); }
.tutorial-hero-panel { grid-template-columns: minmax(0, 1fr) minmax(360px, 520px) !important; }
.tutorial-hero-image {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 3 / 4;
  justify-self: end;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 193, 92, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.tutorial-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.05) contrast(1.02) saturate(1.05); }
.tutorial-cover-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(180deg, rgba(4, 11, 16, 0.72), rgba(4, 11, 16, 0.08) 56%, transparent 74%);
  pointer-events: none;
}
.tutorial-cover-copy span {
  color: #74e5ae;
  font-size: 13px;
  font-weight: 800;
}
.tutorial-cover-copy strong {
  width: 100%;
  margin-top: 12px;
  color: #f1f7f5;
  font-size: 40px;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}
.tutorial-cover-copy strong.is-medium { font-size: 35px; }
.tutorial-cover-copy strong.is-long { font-size: 28px; }
.tutorial-cover-copy strong,
.tutorial-detail-title {
  white-space: nowrap !important;
  word-break: normal;
  overflow-wrap: normal;
}
.tutorial-detail-title.is-medium { font-size: 54px; }
.tutorial-detail-title.is-long { font-size: 46px; }
.tutorial-cover-copy small {
  max-width: 88%;
  margin-top: 13px;
  color: #a9bdbb;
  font-size: 14px;
  line-height: 1.55;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.78);
}
.tutorial-hero-image.is-missing { display: none; }
.tutorial-hero-fallback {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 193, 92, 0.18);
  border-radius: 8px;
  font-size: 88px;
  background: rgba(245, 193, 92, 0.05);
}

.tutorial-content-section { padding: clamp(24px, 3.6vw, 46px); }
.tutorial-content-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
}
.tutorial-content-heading h2,
.tutorial-content-heading p { margin: 0; }
.tutorial-content-heading p { color: var(--muted); order: 2; }
.tutorial-chapter {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(149, 166, 190, 0.14);
}
.tutorial-chapter-number {
  padding-top: 4px;
  color: rgba(245, 193, 92, 0.66);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.tutorial-chapter-heading { display: flex; align-items: center; gap: 12px; }
.tutorial-chapter-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(88, 214, 141, 0.15);
  border-radius: 6px;
  background: rgba(88, 214, 141, 0.075);
  font-size: 21px;
}
.tutorial-chapter-heading h2 { margin: 0; font-size: clamp(21px, 2vw, 28px); line-height: 1.3; }
.tutorial-chapter-note { margin: 15px 0 0; color: #aebdcd; font-size: 17px; line-height: 1.85; }
.tutorial-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.tutorial-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 13px 15px;
  border: 1px solid rgba(71, 199, 232, 0.17);
  border-radius: 6px;
  background: rgba(71, 199, 232, 0.035);
  transition: border-color .2s ease, background .2s ease, translate .2s ease;
}
.tutorial-link-card:hover,
.tutorial-link-card:focus-visible {
  border-color: rgba(71, 199, 232, 0.4);
  background: rgba(71, 199, 232, 0.08);
  translate: 0 -2px;
  outline: none;
}
.tutorial-link-card span,
.tutorial-link-card strong,
.tutorial-link-card small { min-width: 0; display: block; }
.tutorial-link-card strong { color: var(--text); line-height: 1.35; }
.tutorial-link-card small { margin-top: 4px; color: var(--muted); }
.tutorial-link-card > b { color: var(--cyan); }
.tutorial-image-grid,
.tutorial-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.tutorial-image-card,
.tutorial-video-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(149, 166, 190, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.tutorial-image-card img { display: block; width: 100%; max-height: 680px; object-fit: contain; }
.tutorial-image-card figcaption {
  padding: 9px 12px;
  border-top: 1px solid rgba(149, 166, 190, 0.1);
  color: var(--muted);
  font-size: 12px;
}
.tutorial-video-card video,
.tutorial-video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #05090e;
}
@media (max-width: 1280px) {
  .tutorial-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tutorial-hero-panel { grid-template-columns: 1fr !important; }
  .tutorial-hero-image { justify-self: center; }
}
@media (max-width: 680px) {
  .tutorial-detail-shell { width: min(100% - 24px, 1560px); }
  .tutorial-item-grid,
  .tutorial-link-grid,
  .tutorial-image-grid,
  .tutorial-video-grid { grid-template-columns: 1fr; }
  body[data-active-group="tutorial-knowledge"] .tools-workspace .tool-section { padding: 16px; }
  .tutorial-item-card { grid-template-columns: 128px minmax(0, 1fr); min-height: 196px; padding: 12px; gap: 12px; }
  .tutorial-item-thumb { width: 128px; height: 171px; }
  .tutorial-thumb-copy { top: 8px; right: 5px; left: 5px; padding: 7px 5px; }
  .tutorial-item-card:hover .tutorial-item-thumb img,
.tutorial-item-card:focus-visible .tutorial-item-thumb img {
  filter: brightness(1.08) contrast(1.03) saturate(1.08);
  scale: 1.025;
}
  .tutorial-thumb-copy strong { font-size: 11.5px; }
  .tutorial-thumb-copy strong.is-medium { font-size: 10px; }
  .tutorial-thumb-copy strong.is-long { font-size: 9px; }
  .tutorial-hero-image,
  .tutorial-hero-fallback { min-height: 220px; }
  .tutorial-cover-copy strong { font-size: 28px; }
  .tutorial-cover-copy strong.is-medium { font-size: 25px; }
  .tutorial-cover-copy strong.is-long { font-size: 20px; }
  .tutorial-detail-title { font-size: 32px; }
  .tutorial-detail-title.is-medium { font-size: 28px; }
  .tutorial-detail-title.is-long { font-size: 24px; }
  .tutorial-content-heading { display: block; }
  .tutorial-content-heading p { margin-top: 8px; }
  .tutorial-chapter { grid-template-columns: 1fr; gap: 8px; padding: 25px 0; }
  .tutorial-chapter-number { padding: 0; }
}
/* Roomier category cards for practical tools and daily resources */
body[data-active-group="practical-tools"] .utility-item-grid,
body[data-active-group="daily-resources"] .resource-item-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-active-group="practical-tools"] .utility-subsection,
body[data-active-group="daily-resources"] .utility-subsection {
  margin-top: 22px;
  padding-top: 22px;
}

body[data-active-group="practical-tools"] .utility-subsection:first-of-type,
body[data-active-group="daily-resources"] .utility-subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body[data-active-group="practical-tools"] .utility-subsection-head,
body[data-active-group="daily-resources"] .utility-subsection-head {
  margin-bottom: 14px;
}

body[data-active-group="practical-tools"] .utility-subsection-head h3,
body[data-active-group="daily-resources"] .utility-subsection-head h3 {
  font-size: 20px;
}

body[data-active-group="practical-tools"] .utility-subsection-head p,
body[data-active-group="daily-resources"] .utility-subsection-head p {
  max-width: 560px;
  font-size: 13px;
  line-height: 1.6;
}

body[data-active-group="practical-tools"] .utility-item-card,
body[data-active-group="daily-resources"] .resource-item-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  min-height: 110px;
  padding: 16px;
}

body[data-active-group="practical-tools"] .utility-item-card .utility-category-icon,
body[data-active-group="daily-resources"] .resource-item-card .utility-category-icon {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

body[data-active-group="practical-tools"] .utility-item-card h3,
body[data-active-group="daily-resources"] .resource-item-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.35;
}

body[data-active-group="practical-tools"] .utility-item-card p,
body[data-active-group="daily-resources"] .resource-item-card p {
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

@media (max-width: 1180px) {
  body[data-active-group="practical-tools"] .utility-item-grid,
  body[data-active-group="daily-resources"] .resource-item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-active-group="practical-tools"] .utility-item-grid,
  body[data-active-group="daily-resources"] .resource-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-active-group="practical-tools"] .utility-item-grid,
  body[data-active-group="daily-resources"] .resource-item-grid {
    grid-template-columns: 1fr;
  }
}
/* Portrait tutorial cards in the home overview */
.overview-tutorial-row .overview-marquee-group {
  gap: 12px;
  padding-right: 12px;
}

.overview-tool-card.overview-tutorial-card {
  width: 240px;
  min-width: 240px;
  min-height: 316px;
  align-items: stretch;
  padding: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.overview-tutorial-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(88, 214, 141, 0.26);
  border-radius: 6px;
  background: #081317;
}

.overview-tutorial-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.04) contrast(1.02) saturate(1.05);
  transition: scale .22s ease, filter .22s ease;
}

.overview-tutorial-title {
  position: absolute;
  top: 12px;
  right: 8px;
  left: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(88, 214, 141, 0.24);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  background: rgba(4, 13, 17, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.overview-tutorial-title strong {
  display: block;
  color: #f3faf7;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
}

.overview-tutorial-title strong.is-medium { font-size: 13.5px; }
.overview-tutorial-title strong.is-long { font-size: 12.5px; }

.overview-tutorial-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 48px;
}

.overview-tutorial-card:hover .overview-tutorial-cover img,
.overview-tutorial-card:focus-visible .overview-tutorial-cover img {
  scale: 1.025;
  filter: brightness(1.09) contrast(1.03) saturate(1.09);
}

@media (max-width: 560px) {
  .overview-tool-card.overview-tutorial-card {
    width: 190px;
    min-width: 190px;
    min-height: 252px;
    padding: 7px;
  }

  .overview-tutorial-title strong { font-size: 12px; }
  .overview-tutorial-title strong.is-medium { font-size: 10.5px; }
  .overview-tutorial-title strong.is-long { font-size: 9.5px; }
}
/* Search spacing after removing the hero filter tabs */
.command-hero .search-panel {
  margin-top: 28px;
}

@media (max-width: 560px) {
  .command-hero .search-panel {
    margin-top: 20px;
  }
}
/* Animated aurora for the open space beside the home hero */
.command-hero {
  isolation: isolate;
  overflow: visible;
}

.command-hero > :not(.hero-aurora) {
  position: relative;
  z-index: 1;
}

.hero-aurora {
  position: absolute;
  z-index: 0;
  top: 48%;
  left: 75%;
  width: clamp(540px, 38vw, 700px);
  height: clamp(225px, 19vw, 305px);
  transform: translate3d(0, -55%, 0);
  border-radius: 48%;
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: normal;
  filter: saturate(1.16) contrast(1.2) brightness(1.08);
  -webkit-mask-image: radial-gradient(ellipse 98% 92% at 50% 52%, #000 0%, #000 58%, rgba(0, 0, 0, .86) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 98% 92% at 50% 52%, #000 0%, #000 58%, rgba(0, 0, 0, .86) 76%, transparent 100%);
}

@media (max-width: 1280px) {
  .hero-aurora {
    left: 63%;
    width: 44vw;
    height: clamp(210px, 24vw, 285px);
    opacity: .9;
  }
}

@media (max-width: 760px) {
  .hero-aurora {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora {
    opacity: .82;
  }
}

/* Empty states for new content groups */
.category-empty-state {
  display: grid;
  grid-column: 1 / -1;
  min-height: 180px;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(88, 214, 141, 0.22);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  background: rgba(88, 214, 141, 0.025);
}

.category-empty-state strong {
  color: var(--text);
  font-size: 22px;
}

.category-empty-state p {
  margin: 0;
  line-height: 1.7;
}
/* Editorial tutorial cover typography */
.tutorial-thumb-copy,
.overview-tutorial-title {
  position: absolute;
  right: 10px;
  left: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  pointer-events: none;
}

.tutorial-thumb-copy {
  top: 19%;
  padding: 8px 3px 14px;
}

.overview-tutorial-title {
  top: 20%;
  right: 12px;
  left: 12px;
  padding: 10px 4px 17px;
}

.tutorial-thumb-copy::after,
.overview-tutorial-title::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 48px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(105, 227, 172, 0.72);
  box-shadow: 0 0 9px rgba(88, 214, 141, 0.38);
}

.tutorial-thumb-copy::before,
.overview-tutorial-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: #79dfb0;
  box-shadow: 0 0 8px rgba(88, 214, 141, 0.55);
}

.tutorial-thumb-copy strong,
.overview-tutorial-title strong {
  display: block;
  color: #edf8f3;
  font-family: "STZhongsong", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: .2px rgba(236, 255, 247, 0.38);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 13px rgba(0, 0, 0, 0.96), 0 0 18px rgba(88, 214, 141, 0.16);
}

.tutorial-thumb-copy strong { font-size: 15.5px; }
.tutorial-thumb-copy strong.is-medium { font-size: 14px; }
.tutorial-thumb-copy strong.is-long { font-size: 12.5px; }

.overview-tutorial-title strong {
  font-size: 18px;
  -webkit-text-stroke-width: .25px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 5px 16px rgba(0, 0, 0, 0.96), 0 0 20px rgba(88, 214, 141, 0.18);
}

.overview-tutorial-title strong.is-medium { font-size: 16px; }
.overview-tutorial-title strong.is-long { font-size: 14px; }

@media (max-width: 680px) {
  .tutorial-thumb-copy {
    top: 18%;
    right: 6px;
    left: 6px;
    padding: 5px 2px 12px;
  }

  .tutorial-thumb-copy strong { font-size: 12px; }
  .tutorial-thumb-copy strong.is-medium { font-size: 10.5px; }
  .tutorial-thumb-copy strong.is-long { font-size: 9.2px; }
}

@media (max-width: 560px) {
  .overview-tutorial-title {
    top: 18%;
    right: 8px;
    left: 8px;
    padding: 7px 3px 14px;
  }

  .overview-tutorial-title strong { font-size: 14px; }
  .overview-tutorial-title strong.is-medium { font-size: 12px; }
  .overview-tutorial-title strong.is-long { font-size: 10.5px; }
}
/* Modern display treatment for tutorial covers */
.tutorial-thumb-copy,
.overview-tutorial-title {
  top: 24%;
  right: 8px;
  left: 8px;
  padding: 10px 5px 14px;
  border-left: 3px solid #63e4a7;
  background: linear-gradient(90deg, rgba(4, 15, 19, 0.94), rgba(6, 22, 26, 0.72) 72%, rgba(6, 22, 26, 0.16));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 -1px 0 rgba(105, 227, 172, 0.14);
  backdrop-filter: blur(4px);
  text-align: left;
}

.tutorial-thumb-copy::before,
.overview-tutorial-title::before {
  display: none;
}

.tutorial-thumb-copy::after,
.overview-tutorial-title::after {
  bottom: 6px;
  left: 7px;
  width: 42px;
  height: 2px;
  transform: none;
  background: linear-gradient(90deg, #62e1a4, rgba(71, 199, 232, 0.25));
  box-shadow: 0 0 10px rgba(88, 214, 141, 0.35);
}

.tutorial-thumb-copy strong,
.overview-tutorial-title strong {
  color: #f7fffb;
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
  background: linear-gradient(180deg, #ffffff 18%, #c7e5da 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.72), 0 0 18px rgba(88, 214, 141, 0.12);
  text-rendering: geometricPrecision;
}

.tutorial-thumb-copy strong { font-size: 17px; }
.tutorial-thumb-copy strong.is-medium { font-size: 15px; }
.tutorial-thumb-copy strong.is-long { font-size: 13px; }

.overview-tutorial-title {
  top: 25%;
  right: 10px;
  left: 10px;
  padding: 13px 10px 17px;
}

.overview-tutorial-title strong { font-size: 20px; }
.overview-tutorial-title strong.is-medium { font-size: 17.5px; }
.overview-tutorial-title strong.is-long { font-size: 15px; }

@media (max-width: 680px) {
  .tutorial-thumb-copy {
    top: 22%;
    right: 5px;
    left: 5px;
    padding: 7px 5px 11px;
  }

  .tutorial-thumb-copy::after { bottom: 4px; left: 5px; width: 30px; }
  .tutorial-thumb-copy strong { font-size: 12.5px; }
  .tutorial-thumb-copy strong.is-medium { font-size: 10.8px; }
  .tutorial-thumb-copy strong.is-long { font-size: 9px; }
}

@media (max-width: 560px) {
  .overview-tutorial-title {
    top: 23%;
    right: 7px;
    left: 7px;
    padding: 9px 7px 13px;
  }

  .overview-tutorial-title::after { bottom: 4px; left: 7px; width: 34px; }
  .overview-tutorial-title strong { font-size: 15px; }
  .overview-tutorial-title strong.is-medium { font-size: 12.5px; }
  .overview-tutorial-title strong.is-long { font-size: 10.8px; }
}
/* Centered title lockup refinement */
.tutorial-thumb-copy,
.overview-tutorial-title {
  right: 7px;
  left: 7px;
  padding: 11px 4px 15px;
  border-left: 0;
  background: linear-gradient(90deg, transparent, rgba(4, 15, 19, 0.72) 14%, rgba(4, 15, 19, 0.86) 50%, rgba(4, 15, 19, 0.72) 86%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  text-align: center;
}

.tutorial-thumb-copy::after,
.overview-tutorial-title::after {
  bottom: 5px;
  left: 50%;
  width: 34px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(99, 228, 167, 0.82);
}

.overview-tutorial-title {
  right: 9px;
  left: 9px;
  padding: 13px 5px 17px;
}

@media (max-width: 680px) {
  .tutorial-thumb-copy {
    right: 4px;
    left: 4px;
    padding: 8px 2px 12px;
  }

  .tutorial-thumb-copy::after {
    bottom: 4px;
    left: 50%;
    width: 26px;
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .overview-tutorial-title {
    right: 6px;
    left: 6px;
    padding: 10px 3px 14px;
  }

  .overview-tutorial-title::after {
    bottom: 4px;
    left: 50%;
    width: 30px;
    transform: translateX(-50%);
  }
}


/* 即点即用：带直观插图的本地日常工具 */
body[data-active-group="instant-use"] .instant-use-section {
  padding: 14px clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px);
  border-color: rgba(88, 214, 141, 0.2);
  background:
    radial-gradient(circle at 88% 4%, rgba(71, 199, 232, 0.08), transparent 26%),
    rgba(15, 23, 34, 0.84);
}


.instant-tool-subsection {
  margin-top: 22px;
  padding-top: 22px;
  border-top-color: rgba(88, 214, 141, 0.12);
}

.instant-tool-subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.instant-tool-subsection .utility-subsection-head {
  margin-bottom: 16px;
}

body[data-active-group="tutorial-knowledge"] .tutorial-subsection .utility-subsection-head {
  margin-bottom: 16px;
}

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

.instant-tool-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(149, 166, 190, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(19, 31, 43, 0.94), rgba(12, 20, 29, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.instant-tool-card:hover,
.instant-tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(88, 214, 141, 0.46);
  background: linear-gradient(180deg, rgba(21, 36, 49, 0.98), rgba(13, 23, 33, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(71, 199, 232, 0.06);
  outline: none;
}

.instant-tool-visual {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid rgba(149, 166, 190, 0.12);
  background:
    radial-gradient(circle at 24% 18%, rgba(88, 214, 141, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(8, 17, 25, 0.9), rgba(15, 29, 40, 0.82));
}

.instant-tool-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 68%, rgba(5, 12, 18, 0.2));
}

.instant-tool-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), filter .35s ease;
}

.instant-tool-card:hover .instant-tool-visual img,
.instant-tool-card:focus-visible .instant-tool-visual img {
  transform: scale(1.025);
  filter: saturate(1.08) brightness(1.04);
}

.instant-tool-visual-fallback {
  font-size: 52px;
}

.instant-tool-body {
  padding: 14px 15px 16px;
}

.instant-tool-title-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.instant-tool-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(88, 214, 141, 0.16);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.16), rgba(71, 199, 232, 0.1));
  font-size: 19px;
}

.instant-tool-title-row h3 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.instant-tool-body p {
  display: -webkit-box;
  min-height: 40px;
  margin: 11px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

@media (max-width: 680px) {
  body[data-active-group="instant-use"] .instant-use-section {
    padding: 12px 16px 16px;
  }

  .instant-tool-subsection .utility-subsection-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .instant-tool-subsection .utility-subsection-head p {
    max-width: none;
    text-align: left;
  }

  .instant-tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instant-tool-card,
  .instant-tool-visual img {
    transition: none;
  }
}

@media (min-width: 981px) and (max-width: 1360px) {
  .home-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }

  .stats-sidebar {
    position: relative;
    top: auto;
    grid-column: 1 / -1;
  }

  .stats-sidebar .insight-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tools-workspace .category-bar {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .tools-workspace .category-bar::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .hero-aurora {
    right: -7%;
    left: auto;
  }
}


/* Stronger visual hierarchy for small category navigation and headings */
.tools-workspace .category-overflow-panel .category-pill {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(71, 199, 232, 0.18);
  background: linear-gradient(135deg, rgba(20, 34, 46, 0.94), rgba(12, 23, 33, 0.96));
  color: rgba(239, 250, 246, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tools-workspace .category-overflow-panel .category-pill:hover,
.tools-workspace .category-overflow-panel .category-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(88, 214, 141, 0.46);
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.14), rgba(71, 199, 232, 0.09));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.tools-workspace .category-overflow-panel .category-pill > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(88, 214, 141, 0.2);
  border-radius: 8px;
  background: rgba(88, 214, 141, 0.09);
  font-size: 16px;
}

.tools-workspace .category-overflow-panel .category-pill strong {
  min-width: 0;
  color: #f3fff9;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tools-workspace .category-overflow-panel .category-pill em {
  justify-self: end;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading,
.tools-workspace .utility-subsection-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  min-height: 64px;
  margin-bottom: 15px;
  padding: 11px 14px;
  border: 1px solid rgba(71, 199, 232, 0.22);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(88, 214, 141, 0.14), rgba(71, 199, 232, 0.075) 56%, rgba(255, 255, 255, 0.025));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading::after,
.tools-workspace .utility-subsection-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -32px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 199, 232, 0.13), transparent 68%);
  transform: translateY(-50%);
  pointer-events: none;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading h2,
.tools-workspace .utility-subsection-head h3 {
  color: #f7fffb;
  font-weight: 850;
  letter-spacing: .01em;
  text-shadow: 0 1px 12px rgba(88, 214, 141, 0.12);
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading h2 {
  font-size: 23px;
}

.tools-workspace .utility-subsection-head h3 {
  font-size: 20px;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading h2 > span:first-child,
.tools-workspace .utility-subsection-head h3 > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(88, 214, 141, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(88, 214, 141, 0.17), rgba(71, 199, 232, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 14px rgba(0, 0, 0, 0.16);
  font-size: 20px;
  line-height: 1;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading p,
.tools-workspace .utility-subsection-head p {
  color: rgba(217, 234, 228, 0.76);
}

@media (max-width: 680px) {
  body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading,
  .tools-workspace .utility-subsection-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px;
    border-left-width: 3px;
  }

  body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading h2,
  .tools-workspace .utility-subsection-head h3 {
    font-size: 19px;
  }

  body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading h2 > span:first-child,
  .tools-workspace .utility-subsection-head h3 > span:first-child {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
    font-size: 18px;
  }

  body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading .section-meta,
  .tools-workspace .utility-subsection-head p {
    width: 100%;
    padding-left: 42px;
  }
}

.tools-workspace .category-bar {
  flex-wrap: wrap;
  overflow: visible;
  max-width: 100%;
}

/* Full-site search */
.command-hero .search-panel {
  position: relative;
  z-index: 12;
}

.command-hero .search-box {
  cursor: text;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.command-hero .search-box:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 220, 164, .46);
  background: rgba(12, 22, 31, .86);
  box-shadow: 0 22px 62px rgba(0, 0, 0, .3), 0 0 0 3px rgba(88, 214, 141, .055), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.command-hero .search-box:focus-within {
  transform: translateY(-2px);
  border-color: rgba(112, 220, 164, .62);
  box-shadow: 0 24px 68px rgba(0, 0, 0, .34), 0 0 0 4px rgba(88, 214, 141, .09), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.command-hero .search-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  place-items: center;
  border-radius: 50%;
  color: rgba(225, 241, 234, .9);
  background: rgba(88, 214, 141, .08);
  pointer-events: none;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}

.command-hero .search-box:hover .search-icon,
.command-hero .search-box:focus-within .search-icon {
  color: #d9ffea;
  background: rgba(88, 214, 141, .16);
  transform: scale(1.04);
}

.site-search-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(133, 190, 163, .26);
  border-radius: 8px;
  background: rgba(8, 15, 22, .97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .54), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  backdrop-filter: blur(24px);
  animation: site-search-enter .2s ease both;
}

.site-search-popover[hidden] {
  display: none;
}

@keyframes site-search-enter {
  from { opacity: 0; transform: translateY(-7px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.site-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 13px 15px 12px 18px;
  border-bottom: 1px solid rgba(149, 166, 190, .14);
  background: linear-gradient(90deg, rgba(88, 214, 141, .075), transparent 46%);
}

.site-search-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.site-search-head strong {
  color: #eff8f3;
  font-size: 16px;
  line-height: 1.3;
}

.site-search-head span {
  color: rgba(180, 198, 188, .7);
  font-size: 12px;
  line-height: 1.4;
}

.site-search-close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(149, 166, 190, .16);
  border-radius: 50%;
  color: rgba(218, 230, 224, .72);
  background: rgba(255, 255, 255, .035);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.site-search-close:hover,
.site-search-close:focus-visible {
  color: #effff6;
  border-color: rgba(88, 214, 141, .42);
  background: rgba(88, 214, 141, .12);
  transform: rotate(5deg) scale(1.05);
  outline: none;
}

.site-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(61vh, 620px);
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.site-search-results::-webkit-scrollbar {
  width: 8px;
}

.site-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.site-search-results::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(125, 158, 143, .38);
  background-clip: padding-box;
}

.site-search-result {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  min-height: 94px;
  padding: 11px 10px;
  border: 1px solid rgba(149, 166, 190, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .026);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.site-search-result:hover,
.site-search-result:focus-visible,
.site-search-result.is-keyboard-active {
  transform: translateY(-2px);
  border-color: rgba(88, 214, 141, .34);
  background: rgba(88, 214, 141, .07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  outline: none;
}

.site-search-visual.tool-icon {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  min-width: 50px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(149, 166, 190, .14);
  border-radius: 8px;
  color: #eaf7ef;
  background: rgba(255, 255, 255, .045);
  font-size: 23px;
}

.site-search-visual-ai { background: rgba(71, 199, 232, .075) !important; }
.site-search-visual-utility { background: rgba(88, 214, 141, .075) !important; }
.site-search-visual-resource { background: rgba(245, 193, 92, .075) !important; }
.site-search-visual-tutorial { background: rgba(183, 143, 235, .075) !important; }
.site-search-visual-instant { background: rgba(255, 145, 106, .075) !important; }

.site-search-visual .tool-logo {
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
}

.site-search-result-image {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 6px;
  object-fit: contain;
}

.site-search-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.site-search-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-search-title-row strong {
  min-width: 0;
  color: #f2f8f5;
  font-size: 14px;
  line-height: 1.35;
}

.site-search-title-row em {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(88, 214, 141, .2);
  border-radius: 4px;
  color: rgba(150, 232, 187, .88);
  background: rgba(88, 214, 141, .065);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.site-search-summary {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(193, 207, 199, .74);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.site-search-path {
  color: rgba(107, 202, 154, .82);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.site-search-path small {
  margin-left: 6px;
  color: rgba(178, 194, 185, .6);
  font-size: 10px;
}

.site-search-arrow {
  color: rgba(157, 184, 170, .48);
  font-size: 16px;
  transition: color .18s ease, transform .18s ease;
}

.site-search-result:hover .site-search-arrow,
.site-search-result:focus-visible .site-search-arrow,
.site-search-result.is-keyboard-active .site-search-arrow {
  color: #8ce0b2;
  transform: translate(2px, -2px);
}

.site-search-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 176px;
  place-content: center;
  gap: 8px;
  padding: 32px;
  color: rgba(189, 205, 197, .68);
  text-align: center;
}

.site-search-empty strong {
  color: #eef6f1;
  font-size: 16px;
}

.site-search-empty span {
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-search-results {
    grid-template-columns: 1fr;
    max-height: min(65vh, 560px);
  }

  .site-search-head > div {
    display: grid;
    gap: 3px;
  }
}

@media (max-width: 560px) {
  .command-hero .search-box {
    min-height: 58px;
    padding-left: 18px;
  }

  .command-hero .search-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .site-search-popover {
    top: calc(100% + 9px);
  }

  .site-search-results {
    padding: 8px;
  }

  .site-search-result {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    min-height: 88px;
    padding: 9px 8px;
  }

  .site-search-visual.tool-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search-popover { animation: none; }
  .command-hero .search-box,
  .site-search-result { transition-duration: .01ms; }
}
body.site-search-open .command-hero {
  position: relative;
  z-index: 25;
}

/* Flowing aurora behind search recommendations */
.site-search-popover {
  isolation: isolate;
  transition: border-color .45s ease, box-shadow .45s ease;
}

.site-search-aurora {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.2) brightness(1.08) contrast(1.02);
  mix-blend-mode: screen;
  will-change: opacity;
  transition: opacity .18s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.site-search-popover.is-recommendation-mode {
  border-color: rgba(92, 222, 160, .27);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .54), 0 0 34px rgba(55, 208, 145, .045), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}

.site-search-popover.is-recommendation-mode .site-search-aurora {
  opacity: .43;
}
.site-search-popover.is-query-mode .site-search-aurora {
  opacity: .38;
}

.site-search-head,
.site-search-results {
  position: relative;
  z-index: 1;
}

.site-search-popover.is-recommendation-mode .site-search-result {
  border-color: rgba(126, 204, 165, .15);
  background: rgba(7, 16, 22, .56);
  backdrop-filter: blur(4px) saturate(1.035);
}
.site-search-popover.is-query-mode .site-search-result {
  border-color: rgba(126, 204, 165, .12);
  background: rgba(7, 16, 22, .60);
  backdrop-filter: blur(4px) saturate(1.025);
}

.site-search-popover.is-recommendation-mode .site-search-result:hover,
.site-search-popover.is-recommendation-mode .site-search-result:focus-visible,
.site-search-popover.is-recommendation-mode .site-search-result.is-keyboard-active {
  border-color: rgba(105, 232, 166, .38);
  background: rgba(18, 43, 37, .66);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24), 0 0 24px rgba(55, 208, 145, .075);
}
.site-search-popover.is-query-mode .site-search-result:hover,
.site-search-popover.is-query-mode .site-search-result:focus-visible,
.site-search-popover.is-query-mode .site-search-result.is-keyboard-active {
  border-color: rgba(105, 232, 166, .3);
  background: rgba(15, 37, 33, .69);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22), 0 0 18px rgba(55, 208, 145, .05);
}

@media (max-width: 560px) {
  .site-search-popover.is-recommendation-mode .site-search-aurora {
    opacity: .35;
  }

  .site-search-popover.is-query-mode .site-search-aurora {
    opacity: .31;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search-aurora {
    transition: none;
  }
}
/* Clipped horizontal aurora for stats and category headers */
.stats-sidebar .metric {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
}

.stats-sidebar .metric::before,
.stats-sidebar .metric::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: background-position, opacity;
}

.stats-sidebar .metric::before {
  inset: -58%;
  background:
    linear-gradient(104deg, transparent 0 18%, rgba(62, 205, 144, 0) 23%, rgba(72, 226, 157, .13) 30%, rgba(82, 226, 184, .23) 38%, rgba(58, 178, 159, .07) 49%, transparent 66%) 0 0 / 235px 100% repeat-x,
    linear-gradient(98deg, transparent 0 25%, rgba(50, 163, 148, 0) 31%, rgba(67, 199, 180, .09) 38%, rgba(80, 218, 168, .16) 45%, rgba(43, 151, 155, .04) 55%, transparent 72%) 0 0 / 340px 100% repeat-x;
  filter: blur(9px) saturate(1.14);
  opacity: .6;
  transform: skewX(-2deg) scaleY(.98);
  animation: metric-aurora-flow 11.8s linear infinite;
}

.stats-sidebar .metric::after {
  inset: -26% -76%;
  background: linear-gradient(101deg, transparent 0 38%, rgba(129, 255, 205, 0) 45%, rgba(139, 255, 211, .25) 50%, rgba(78, 211, 182, .09) 53%, transparent 61%) 0 0 / 290px 100% repeat-x;
  filter: blur(1.3px);
  opacity: .46;
  transform: none;
  animation: metric-aurora-thread 9.4s linear infinite;
}

.stats-sidebar .metric:nth-child(2)::before { animation-delay: -3.1s; }
.stats-sidebar .metric:nth-child(2)::after { animation-delay: -1.7s; }
.stats-sidebar .metric:nth-child(3)::before { animation-delay: -6.2s; }
.stats-sidebar .metric:nth-child(3)::after { animation-delay: -3.4s; }

.stats-sidebar .metric > * {
  position: relative;
  z-index: 1;
}

@keyframes metric-aurora-flow {
  from { background-position: -235px 0, -340px 0; }
  to { background-position: 0 0, 0 0; }
}

@keyframes metric-aurora-thread {
  from { background-position: -290px 0; }
  to { background-position: 0 0; }
}
body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading::before,
.tools-workspace .utility-subsection-head::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -92% -48%;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 5%, rgba(54, 182, 140, 0) 18%, rgba(78, 223, 160, .12) 28%, rgba(67, 198, 180, .19) 34%, rgba(42, 147, 148, .045) 43%, transparent 51%),
    linear-gradient(96deg, transparent 31%, rgba(58, 179, 151, 0) 42%, rgba(76, 205, 176, .105) 50%, rgba(82, 216, 169, .17) 56%, rgba(52, 158, 156, .045) 64%, transparent 72%),
    linear-gradient(108deg, transparent 55%, rgba(59, 184, 147, 0) 64%, rgba(79, 212, 164, .105) 72%, rgba(68, 185, 184, .14) 78%, transparent 88%);
  filter: blur(12px) saturate(1.12);
  opacity: var(--workspace-aurora-main-opacity, .28);
  transform: translate3d(-15%, 0, 0) skewX(-2deg);
  will-change: transform;
  animation: category-aurora-flow 15s cubic-bezier(.45, .04, .55, .96) infinite alternate;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading::after,
.tools-workspace .utility-subsection-head::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -34% -56%;
  width: auto;
  height: auto;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(135, 255, 208, 0) 43%, rgba(137, 255, 210, .19) 49.5%, rgba(61, 196, 176, .065) 52%, transparent 60%);
  filter: blur(1.1px);
  opacity: var(--workspace-aurora-thread-opacity, .18);
  transform: translate3d(-18%, 0, 0);
  will-change: transform;
  animation: category-aurora-thread 11.5s cubic-bezier(.42, 0, .58, 1) infinite alternate;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section:nth-child(2n) > .section-heading::before,
.tools-workspace .utility-subsection:nth-child(2n) .utility-subsection-head::before {
  animation-delay: -4.6s;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section:nth-child(3n) > .section-heading::after,
.tools-workspace .utility-subsection:nth-child(3n) .utility-subsection-head::after {
  animation-delay: -3.8s;
}

body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading > *,
.tools-workspace .utility-subsection-head > * {
  position: relative;
  z-index: 1;
}

@keyframes category-aurora-flow {
  0% { transform: translate3d(-15%, -2%, 0) skewX(-2deg) scaleY(.93); }
  50% { transform: translate3d(2%, 2%, 0) skewX(1deg) scaleY(1.08); }
  100% { transform: translate3d(20%, -1%, 0) skewX(-1deg) scaleY(.98); }
}

@keyframes category-aurora-thread {
  0% { transform: translate3d(-18%, 2%, 0); }
  50% { transform: translate3d(3%, -2%, 0); }
  100% { transform: translate3d(24%, 1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .stats-sidebar .metric::before,
  .stats-sidebar .metric::after,
  body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading::before,
  body:not([data-active-group="home-overview"]) .tools-workspace .sections-root > .tool-section > .section-heading::after,
  .tools-workspace .utility-subsection-head::before,
  .tools-workspace .utility-subsection-head::after {
    animation: none;
  }
}
/* Keep top-level workspaces at the practical-tools luminance baseline. */
body:is(
  [data-active-group="home-overview"],
  [data-active-group="ai-tools"],
  [data-active-group="practical-tools"],
  [data-active-group="daily-resources"],
  [data-active-group="tutorial-knowledge"],
  [data-active-group="instant-use"]
) {
  --workspace-panel-bg: rgba(15, 23, 34, .86);
  --workspace-inner-bg: rgba(8, 14, 22, .72);
  --workspace-card-bg: rgba(255, 255, 255, .04);
  --workspace-card-hover-bg: rgba(255, 255, 255, .06);
  --workspace-panel-border: rgba(149, 166, 190, .18);
  --workspace-card-border: rgba(149, 166, 190, .13);
  --workspace-card-hover-border: rgba(88, 214, 141, .28);
  --workspace-aurora-main-opacity: .28;
  --workspace-aurora-thread-opacity: .18;
}

body:is(
  [data-active-group="home-overview"],
  [data-active-group="ai-tools"],
  [data-active-group="practical-tools"],
  [data-active-group="daily-resources"],
  [data-active-group="tutorial-knowledge"],
  [data-active-group="instant-use"]
) .tools-workspace .sections-root > .tool-section {
  border-color: var(--workspace-panel-border);
  background: var(--workspace-panel-bg);
  box-shadow: var(--shadow);
}

body:is(
  [data-active-group="home-overview"],
  [data-active-group="ai-tools"],
  [data-active-group="practical-tools"],
  [data-active-group="daily-resources"],
  [data-active-group="tutorial-knowledge"],
  [data-active-group="instant-use"]
) :is(.tool-card, .utility-item-card, .resource-item-card, .tutorial-item-card, .instant-tool-card, .overview-tool-card) {
  border-color: var(--workspace-card-border);
  background: var(--workspace-card-bg);
  box-shadow: none;
}

body:is(
  [data-active-group="home-overview"],
  [data-active-group="ai-tools"],
  [data-active-group="practical-tools"],
  [data-active-group="daily-resources"],
  [data-active-group="tutorial-knowledge"],
  [data-active-group="instant-use"]
) :is(.tool-card, .utility-item-card, .resource-item-card, .tutorial-item-card, .instant-tool-card, .overview-tool-card):is(:hover, :focus-visible) {
  border-color: var(--workspace-card-hover-border);
  background: var(--workspace-card-hover-bg);
  box-shadow: none;
}

body:is(
  [data-active-group="home-overview"],
  [data-active-group="ai-tools"],
  [data-active-group="practical-tools"],
  [data-active-group="daily-resources"],
  [data-active-group="tutorial-knowledge"],
  [data-active-group="instant-use"]
) .tools-workspace .category-overflow-panel {
  border-color: var(--workspace-panel-border);
  background: var(--workspace-inner-bg);
}

body:is(
  [data-active-group="home-overview"],
  [data-active-group="ai-tools"],
  [data-active-group="practical-tools"],
  [data-active-group="daily-resources"],
  [data-active-group="tutorial-knowledge"],
  [data-active-group="instant-use"]
) .tools-workspace .category-overflow-panel .category-pill {
  border-color: var(--workspace-card-border);
  background: linear-gradient(135deg, rgba(20, 34, 46, .94), rgba(12, 23, 33, .96));
}

body[data-active-group="instant-use"] .instant-use-section {
  border-color: var(--workspace-panel-border);
  background: var(--workspace-panel-bg);
}
/* Always-on rightward aurora inside the primary search field. */
.command-hero .search-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.command-hero .search-box::before,
.command-hero .search-box::after,
.command-hero .search-sweep {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.command-hero .search-box::before,
.command-hero .search-box::after {
  content: "";
  will-change: background-position, opacity;
  transition: opacity .38s ease, filter .38s ease;
}

.command-hero .search-box::before {
  inset: -82% -54%;
  background:
    linear-gradient(104deg, transparent 0 17%, rgba(58, 196, 143, 0) 27%, rgba(75, 224, 160, .18) 37%, rgba(69, 202, 184, .29) 47%, rgba(52, 157, 151, .075) 58%, transparent 70%) 0 0 / 310px 100% repeat-x,
    linear-gradient(98deg, transparent 0 25%, rgba(55, 177, 149, 0) 35%, rgba(72, 205, 178, .13) 46%, rgba(85, 224, 170, .21) 56%, rgba(45, 151, 153, .055) 66%, transparent 78%) 0 0 / 460px 100% repeat-x;
  filter: blur(10px) saturate(1.16);
  opacity: .62;
  transform: skewX(-2deg);
  animation: search-field-aurora-flow 12.5s linear infinite;
}

.command-hero .search-box::after {
  inset: -36% -48%;
  background: linear-gradient(101deg, transparent 0 24%, rgba(134, 255, 209, 0) 35%, rgba(143, 255, 214, .28) 47%, rgba(71, 202, 181, .09) 53%, transparent 65%) 0 0 / 370px 100% repeat-x;
  filter: blur(1.25px);
  opacity: .5;
  animation: search-field-aurora-thread 9.8s linear infinite;
}

.command-hero .search-sweep {
  inset: -78% -42%;
  background: linear-gradient(102deg,
    transparent 22%,
    rgba(62, 177, 157, 0) 29%,
    rgba(77, 207, 177, .035) 34%,
    rgba(88, 226, 185, .105) 40%,
    rgba(126, 241, 204, .21) 45%,
    rgba(191, 255, 230, .34) 49%,
    rgba(238, 255, 249, .46) 51%,
    rgba(174, 252, 222, .3) 54%,
    rgba(102, 224, 192, .16) 59%,
    rgba(69, 191, 170, .065) 66%,
    rgba(54, 154, 151, 0) 73%,
    transparent 80%);
  filter: blur(5px) saturate(1.04);
  opacity: 0;
  transform: translate3d(-112%, 0, 0) skewX(-3deg) scaleX(1.08);
  will-change: transform, opacity;
}

.command-hero .search-box.is-sweeping .search-sweep {
  animation: search-field-click-sweep 2.9s cubic-bezier(.22, .61, .36, 1) both;
}

.command-hero .search-box:hover::before,
.command-hero .search-box:focus-within::before,
body.site-search-open .command-hero .search-box::before {
  opacity: .76;
  filter: blur(9px) saturate(1.2);
}

.command-hero .search-box:hover::after,
.command-hero .search-box:focus-within::after,
body.site-search-open .command-hero .search-box::after {
  opacity: .66;
}

.command-hero .search-box > input,
.command-hero .search-box > .search-icon {
  position: relative;
  z-index: 1;
}

@keyframes search-field-aurora-flow {
  from { background-position: -310px 0, -460px 0; }
  to { background-position: 0 0, 0 0; }
}

@keyframes search-field-aurora-thread {
  from { background-position: -370px 0; }
  to { background-position: 0 0; }
}

@keyframes search-field-click-sweep {
  0% { opacity: 0; transform: translate3d(-112%, 0, 0) skewX(-3deg) scaleX(1.08); }
  10% { opacity: .2; }
  24% { opacity: .58; }
  52% { opacity: .72; }
  72% { opacity: .62; }
  89% { opacity: .24; }
  100% { opacity: 0; transform: translate3d(112%, 0, 0) skewX(-3deg) scaleX(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .command-hero .search-box::before,
  .command-hero .search-box::after,
  .command-hero .search-sweep {
    animation: none;
  }
}
/* Restrained rightward aurora for the top-level category bar */
.tools-workspace .category-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
}

.tools-workspace .category-bar::before,
.tools-workspace .category-bar::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: background-position, opacity;
}

.tools-workspace .category-bar::before {
  inset: -135% -22%;
  background:
    linear-gradient(103deg, transparent 0 16%, rgba(65, 212, 151, 0) 25%, rgba(81, 226, 171, .1) 35%, rgba(69, 198, 180, .2) 45%, rgba(52, 161, 177, .055) 56%, transparent 69%) 0 0 / 300px 100% repeat-x,
    linear-gradient(98deg, transparent 0 29%, rgba(71, 205, 172, 0) 39%, rgba(125, 239, 202, .09) 49%, rgba(57, 174, 183, .14) 59%, transparent 72%) 0 0 / 470px 100% repeat-x;
  filter: blur(13px) saturate(1.08);
  opacity: .48;
  transform: skewX(-3deg);
  animation: category-bar-aurora-flow 15s linear infinite;
}

.tools-workspace .category-bar::after {
  inset: -38% -30%;
  background: linear-gradient(101deg, transparent 30%, rgba(143, 255, 214, 0) 42%, rgba(143, 255, 214, .17) 50%, rgba(66, 205, 181, .055) 55%, transparent 64%) 0 0 / 360px 100% repeat-x;
  filter: blur(1.2px);
  opacity: .36;
  animation: category-bar-aurora-thread 11.5s linear infinite;
}

.tools-workspace .category-bar > * {
  position: relative;
  z-index: 1;
}

@keyframes category-bar-aurora-flow {
  from { background-position: -300px 0, -470px 0; }
  to { background-position: 0 0, 0 0; }
}

@keyframes category-bar-aurora-thread {
  from { background-position: -360px 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tools-workspace .category-bar::before,
  .tools-workspace .category-bar::after {
    animation: none;
  }
}
/* Keep each statistic readable as one centered unit in the narrow sidebar. */
.stats-sidebar .metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 17px 14px;
  text-align: center;
}

.stats-sidebar .metric strong {
  flex: 0 0 auto;
  min-width: 4ch;
  color: rgba(250, 253, 255, .98);
  font-size: 40px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: .95;
  text-shadow: 0 0 20px rgba(226, 255, 244, .16), 0 0 30px rgba(88, 214, 141, .12);
}

.stats-sidebar .metric span {
  margin: 0;
  color: rgba(236, 244, 247, .88);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .stats-sidebar,
  .stats-sidebar .insight-row,
  .stats-sidebar .metric {
    width: 100%;
  }

  .stats-sidebar .insight-row {
    gap: 10px;
  }

  .stats-sidebar .metric {
    min-height: 94px;
    padding: 14px 16px;
  }
}

/* Search / AI conversation workspace */
.ai-search-layout {
  position: relative;
  width: 100%;
}

.search-control {
  min-width: 0;
}

.search-box-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.mode-switch {
  position: relative;
  display: inline-grid;
  place-items: center;
  align-self: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(147, 169, 190, 0.24);
  border-radius: 13px;
  color: rgba(231, 241, 247, 0.86);
  background: linear-gradient(145deg, rgba(16, 25, 34, 0.88), rgba(5, 11, 17, 0.9));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  cursor: pointer;
  isolation: isolate;
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.mode-switch::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 11px;
  background: linear-gradient(115deg, transparent 18%, rgba(93, 218, 183, 0.09) 48%, transparent 78%);
  transform: translateX(-115%);
  transition: transform .55s cubic-bezier(.2, .75, .2, 1);
}

.mode-switch:hover,
.mode-switch:focus-visible {
  color: #f4fbfd;
  border-color: rgba(94, 211, 177, 0.5);
  background: linear-gradient(145deg, rgba(18, 36, 39, 0.94), rgba(6, 14, 20, 0.94));
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(88, 214, 141, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.mode-switch:hover::before,
.mode-switch:focus-visible::before {
  transform: translateX(115%);
}

.mode-switch:active {
  transform: translateY(0) scale(.96);
  transition-duration: .08s;
}

.mode-switch.is-ai-mode {
  color: rgba(157, 244, 220, 0.96);
  border-color: rgba(88, 214, 177, 0.42);
  background: linear-gradient(145deg, rgba(13, 38, 38, 0.94), rgba(5, 17, 23, 0.94));
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24), 0 0 18px rgba(66, 197, 169, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mode-switch-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(112, 230, 200, 0.18);
}

.mode-switch.is-ai-mode .mode-switch-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.mode-switch.is-ai-mode .mode-switch-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(8px, 8px) rotate(45deg);
  transform-origin: left center;
}

.search-box-row .search-box {
  flex: 1 1 auto;
  min-width: 0;
}

/* Anchor the home AI chat window to the same content grid as AI news. */
main {
  position: relative;
}

body:not(.ai-chat-scrolled) .command-hero .search-panel {
  width: var(--ai-chat-search-width, 900px);
  max-width: none;
  transform: translateX(var(--ai-chat-search-shift, 0));
}

.ai-chat-window[hidden],
.ai-chat-backdrop[hidden] {
  display: none !important;
}

.ai-chat-window {
  position: absolute;
  z-index: 8;
  left: var(--ai-chat-home-left, 0);
  top: var(--ai-chat-home-top, 0);
  display: flex;
  flex-direction: column;
  width: var(--ai-chat-home-width, 360px);
  height: var(--ai-chat-home-height, 280px);
  aspect-ratio: auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(71, 199, 232, 0.24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(10, 18, 28, 0.9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}
.ai-chat-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(128deg, rgba(88, 214, 141, 0.1), transparent 40%, rgba(71, 199, 232, 0.07));
  opacity: .72;
}

.ai-chat-window-head,
.ai-chat-messages {
  position: relative;
  z-index: 1;
}

.ai-chat-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(149, 166, 190, 0.14);
}

.ai-chat-window-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ai-chat-kicker {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(88, 214, 141, 0.45);
  border-radius: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.ai-chat-window-head strong {
  font-size: 14px;
  white-space: nowrap;
}

.ai-chat-exit {
  min-width: 58px;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(195, 206, 216, 0.2);
  border-radius: 7px;
  color: rgba(226, 235, 241, 0.82);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ai-chat-exit:hover,
.ai-chat-exit:focus-visible {
  color: #fff;
  border-color: rgba(71, 199, 232, 0.46);
  background: rgba(71, 199, 232, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.ai-chat-exit:active {
  transform: translateY(0) scale(0.97);
}

.ai-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.ai-chat-placeholder {
  margin: auto;
  max-width: 240px;
  color: rgba(195, 206, 216, 0.5);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.ai-chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid rgba(149, 166, 190, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.ai-chat-message-user {
  align-self: flex-end;
  border-color: rgba(88, 214, 141, 0.25);
  background: rgba(88, 214, 141, 0.1);
}

.ai-chat-message-role {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.ai-chat-message p {
  margin: 0;
  color: rgba(238, 244, 248, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.ai-chat-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(2px);
}

body.ai-chat-mode .ai-search-layout {
  display: block;
}

body.ai-chat-mode .ai-chat-window {
  display: flex;
}

body.ai-chat-mode .search-panel {
  width: min(900px, 100%);
}

body.ai-chat-mode .search-box {
  border-color: rgba(88, 214, 141, 0.34);
}

body.ai-chat-mode .search-box input {
  caret-color: var(--green);
}

body.ai-chat-mode .search-box input::placeholder {
  color: rgba(195, 206, 216, 0.54);
}

body.ai-chat-mode.ai-chat-scrolled .ai-chat-backdrop {
  display: block;
}

body.ai-chat-mode.ai-chat-scrolled .ai-chat-window {
  position: fixed;
  z-index: 72;
  left: var(--ai-chat-scrolled-left, 16px);
  right: var(--ai-chat-scrolled-right, 16px);
  top: var(--ai-chat-scrolled-top, 82px);
  bottom: var(--ai-chat-scrolled-bottom, 112px);
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border-color: rgba(71, 199, 232, 0.28);
  border-radius: 10px;
  background: rgba(5, 12, 19, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: none;
}

body.ai-chat-mode.ai-chat-scrolled .ai-chat-window-head {
  min-height: 62px;
  padding: 0 22px;
}

body.ai-chat-mode.ai-chat-scrolled .ai-chat-window-head strong {
  font-size: 16px;
}

body.ai-chat-mode.ai-chat-scrolled .ai-chat-messages {
  padding: 22px;
}

body.ai-chat-mode.ai-chat-scrolled .ai-chat-placeholder {
  max-width: 360px;
  font-size: 14px;
}

body.ai-chat-mode.ai-chat-scrolled .search-panel {
  position: fixed;
  z-index: 74;
  left: 50%;
  bottom: 18px;
  width: min(960px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}

body.ai-chat-mode.ai-chat-scrolled .ai-search-layout {
  display: block;
}

body.ai-chat-mode.ai-chat-scrolled .search-control {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(4, 10, 16, 0.50);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

body.ai-chat-mode.ai-chat-scrolled .search-label {
  display: none;
}

body.ai-chat-mode.ai-chat-scrolled .search-box-row {
  gap: 10px;
}

@media (max-width: 720px) {
  body.ai-chat-mode .ai-chat-window {
    width: 100%;
  }

  .mode-switch {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
}

@media (max-width: 980px) {
  body:not(.ai-chat-scrolled) .command-hero .search-panel {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  body.ai-chat-mode:not(.ai-chat-scrolled) .ai-chat-window {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: clamp(260px, 64vw, 360px);
    margin: 0 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-switch {
    transition: none;
  }
}


/* Keep the centered chat window viewport-relative while the composer is docked. */
@media (min-width: 721px) {
  body.ai-chat-mode.ai-chat-scrolled .search-panel {
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }
}


body.ai-chat-mode.ai-chat-scrolled .command-hero {
  z-index: 61;
}


body.ai-chat-mode.ai-chat-scrolled .search-panel {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: none;
}


/* AI mode shortcut below the compact site statistics. */
.stats-ai-entry {
  width: 100%;
  margin-top: 18px;
}

.stats-ai-mode-button {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(88, 214, 141, .28);
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(11, 24, 31, .9), rgba(10, 19, 29, .84));
  color: rgba(232, 244, 240, .94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .035);
  text-align: left;
  cursor: pointer;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), border-color .26s ease, background .26s ease, box-shadow .26s ease;
}

.stats-ai-mode-button::before,
.stats-ai-mode-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: background-position, opacity;
}

.stats-ai-mode-button::before {
  inset: -78% -42%;
  background:
    linear-gradient(104deg, transparent 0 22%, rgba(88, 214, 141, 0) 31%, rgba(88, 214, 141, .15) 43%, rgba(71, 199, 232, .1) 51%, transparent 65%) 0 0 / 230px 100% repeat-x,
    linear-gradient(99deg, transparent 0 32%, rgba(71, 199, 232, 0) 42%, rgba(71, 199, 232, .09) 52%, rgba(88, 214, 141, .07) 59%, transparent 72%) 0 0 / 340px 100% repeat-x;
  filter: blur(9px) saturate(1.08);
  opacity: .36;
  animation: statsAiAuroraFlow 9.2s linear infinite;
  transition: opacity .32s ease;
}

.stats-ai-mode-button::after {
  inset: -28% -48%;
  background: linear-gradient(102deg, transparent 0 37%, rgba(145, 255, 211, 0) 44%, rgba(145, 255, 211, .16) 50%, rgba(70, 197, 185, .06) 55%, transparent 64%) 0 0 / 285px 100% repeat-x;
  filter: blur(1.4px);
  opacity: .24;
  animation: statsAiAuroraThread 7.2s linear infinite;
  transition: opacity .32s ease;
}

.stats-ai-mode-button > * {
  position: relative;
  z-index: 1;
}

.stats-ai-mode-button:hover,
.stats-ai-mode-button:focus-visible {
  border-color: rgba(88, 214, 141, .52);
  background: linear-gradient(115deg, rgba(14, 32, 36, .94), rgba(10, 23, 31, .9));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25), 0 0 0 3px rgba(88, 214, 141, .07);
  transform: translateY(-2px);
  outline: none;
}

.stats-ai-mode-button:hover::before,
.stats-ai-mode-button:focus-visible::before {
  opacity: .56;
}

.stats-ai-mode-button:hover::after,
.stats-ai-mode-button:focus-visible::after {
  opacity: .4;
}

@keyframes statsAiAuroraFlow {
  from { background-position: -230px 0, -340px 0; }
  to { background-position: 0 0, 0 0; }
}

@keyframes statsAiAuroraThread {
  from { background-position: -285px 0; }
  to { background-position: 0 0; }
}

.stats-ai-mode-button.is-ai-mode {
  border-color: rgba(88, 214, 141, .48);
  background: linear-gradient(115deg, rgba(31, 92, 75, .78), rgba(17, 57, 63, .78));
  box-shadow: 0 16px 40px rgba(25, 111, 91, .16), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.stats-ai-mode-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(88, 214, 141, .35);
  border-radius: 8px;
  background: rgba(88, 214, 141, .08);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.stats-ai-mode-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.stats-ai-mode-arrow {
  color: rgba(88, 214, 141, .78);
  font-size: 20px;
  line-height: 1;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), color .26s ease;
}

.stats-ai-mode-button:hover .stats-ai-mode-arrow,
.stats-ai-mode-button:focus-visible .stats-ai-mode-arrow {
  color: var(--green);
  transform: translateX(3px);
}

@media (min-width: 981px) and (max-width: 1360px) {
  .stats-ai-entry {
    width: min(100%, 320px);
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .stats-ai-entry {
    margin-top: 14px;
  }

  .stats-ai-mode-button {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-ai-mode-button,
  .stats-ai-mode-button::before,
  .stats-ai-mode-button::after,
  .stats-ai-mode-arrow {
    transition: none;
  }
}


/* A I tools paged workspace */
html,
body {
  overflow-x: clip;
}

:root {
  --workspace-page-height: 897px;
}

.ai-tools-paged-section,
.utility-paged-section,
.resource-paged-section,
.instant-tools-paged-section {
  display: flex;
  flex-direction: column;
  min-height: var(--workspace-page-height);
  overflow: hidden;
}

.tools-workspace .ai-tools-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 208px;
}

.tools-workspace .utility-page-grid,
.tools-workspace .resource-page-grid,
.tools-workspace .instant-tools-page-grid {
  align-content: start;
}

.tools-workspace .instant-tools-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.instant-tools-page-grid .instant-tool-card {
  display: flex;
  height: 230px;
  min-height: 230px;
  flex-direction: column;
}

.instant-tools-page-grid .instant-tool-visual {
  height: 112px;
  flex: 0 0 112px;
  aspect-ratio: auto;
}

.instant-tools-page-grid .instant-tool-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 13px 13px;
  overflow: hidden;
}

.instant-tools-page-grid .instant-tool-title-row {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}

.instant-tools-page-grid .instant-tool-icon {
  width: 34px;
  height: 34px;
  font-size: 17px;
}

.instant-tools-page-grid .instant-tool-body p {
  min-height: 0;
  margin-top: 8px;
}

.utility-page-heading .section-meta p,
.resource-page-heading .section-meta p,
.instant-tools-page-heading .section-meta p {
  white-space: nowrap;
}

.ai-tools-page-grid .tool-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 208px;
  min-height: 208px;
  overflow: hidden;
}

.ai-tools-page-grid .tool-card > a {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ai-tools-page-grid .tool-info {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.ai-tools-page-grid .tool-info h3 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ai-tools-page-grid .tool-info p {
  display: -webkit-box;
  min-height: 0;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.ai-tools-page-grid .tool-info small {
  display: block;
  margin-top: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ai-tools-page-grid .tool-tags {
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.ai-tools-page-heading .section-meta p {
  white-space: nowrap;
}

.ai-tools-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(149, 166, 190, 0.13);
}

.ai-tools-pagination p {
  margin: 0;
  color: rgba(196, 210, 222, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.ai-tools-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.ai-tools-page-arrow,
.ai-tools-page-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(149, 166, 190, 0.17);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(226, 237, 244, 0.78);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.ai-tools-page-arrow {
  font-size: 20px;
  line-height: 1;
}

.ai-tools-page-number {
  font-size: 13px;
  font-weight: 800;
}

.ai-tools-page-arrow:hover:not(:disabled),
.ai-tools-page-arrow:focus-visible:not(:disabled),
.ai-tools-page-number:hover,
.ai-tools-page-number:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(88, 214, 141, 0.42);
  background: rgba(88, 214, 141, 0.085);
  color: #f2fff9;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
  outline: none;
}

.ai-tools-page-number.active {
  border-color: rgba(88, 214, 141, 0.5);
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.18), rgba(71, 199, 232, 0.1));
  color: #eafff3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 16px rgba(88, 214, 141, 0.07);
}

.ai-tools-page-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.ai-tools-page-ellipsis {
  display: inline-grid;
  place-items: center;
  width: 18px;
  color: rgba(196, 210, 222, 0.48);
}

.ai-tools-page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.ai-tools-page-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(196, 210, 222, 0.66);
  font-size: 12px;
  white-space: nowrap;
}

.ai-tools-page-jump-input {
  width: 58px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid rgba(149, 166, 190, 0.17);
  border-radius: 7px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: #eefaf5;
  font: inherit;
  font-weight: 750;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ai-tools-page-jump-input::placeholder {
  color: rgba(196, 210, 222, 0.38);
  font-weight: 600;
}

.ai-tools-page-jump-input:focus {
  border-color: rgba(88, 214, 141, 0.5);
  background: rgba(88, 214, 141, 0.065);
  box-shadow: 0 0 0 3px rgba(88, 214, 141, 0.075), 0 7px 18px rgba(0, 0, 0, 0.16);
}

.ai-tools-page-jump-input::-webkit-inner-spin-button,
.ai-tools-page-jump-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.ai-tools-page-jump-button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(88, 214, 141, 0.3);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.13), rgba(71, 199, 232, 0.075));
  color: rgba(234, 255, 243, 0.88);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.ai-tools-page-jump-button:hover,
.ai-tools-page-jump-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(88, 214, 141, 0.52);
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.2), rgba(71, 199, 232, 0.11));
  color: #f2fff9;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
  outline: none;
}

.ai-tools-page-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 500px;
  text-align: center;
}

.ai-tools-page-empty strong {
  font-size: 18px;
}

.ai-tools-page-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.tools-workspace .category-overflow-panel .category-pill.active {
  border-color: rgba(88, 214, 141, 0.44);
  background: linear-gradient(135deg, rgba(88, 214, 141, 0.13), rgba(71, 199, 232, 0.075));
  box-shadow: inset 3px 0 0 rgba(88, 214, 141, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

@media (max-width: 1180px) {
  .tools-workspace .instant-tools-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 760px) {
  .tools-workspace .instant-tools-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tools-workspace .ai-tools-page-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px;
  }

  .ai-tools-page-grid .tool-card {
    height: 190px;
    min-height: 190px;
  }

  .ai-tools-page-heading {
    align-items: flex-start;
  }

  .ai-tools-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .ai-tools-pagination p {
    text-align: center;
  }

  .ai-tools-pagination-controls {
    justify-content: center;
  }

  .ai-tools-page-jump {
    flex-basis: 100%;
    justify-content: center;
    margin: 2px 0 0;
  }

  .ai-tools-page-arrow,
  .ai-tools-page-number {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 560px) {
  .tools-workspace .instant-tools-page-grid {
    grid-template-columns: 1fr;
  }

  .instant-tools-page-grid .instant-tool-card {
    height: 215px;
    min-height: 215px;
  }

  .instant-tools-page-grid .instant-tool-visual {
    height: 98px;
    flex-basis: 98px;
  }
}

@media (max-width: 390px) {
  .ai-tools-page-ellipsis,
  .ai-tools-page-number:not(.active) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-tools-page-arrow,
  .ai-tools-page-number,
  .ai-tools-page-jump-input,
  .ai-tools-page-jump-button {
    transition: none;
  }
}


/* AI model picker and send action */
.search-box-row {
  position: relative;
}

.mode-switch-model,
.mode-switch-chevron {
  display: none;
}

body.ai-chat-mode .mode-switch {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  flex-basis: 154px;
  width: 154px;
  padding: 0 12px 0 14px;
  overflow: hidden;
}

body.ai-chat-mode .mode-switch-icon {
  display: none;
}

body.ai-chat-mode .mode-switch-model,
body.ai-chat-mode .mode-switch-chevron {
  display: block;
}

.mode-switch-model {
  overflow: hidden;
  color: rgba(231, 247, 241, 0.94);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-switch-chevron {
  color: rgba(157, 244, 220, 0.68);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

body.ai-model-menu-open .mode-switch-chevron {
  color: rgba(194, 255, 237, 0.98);
  transform: rotate(180deg);
}

body.ai-model-menu-open .command-hero {
  z-index: 20;
}

.model-menu {
  position: absolute;
  z-index: 82;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 238px;
  gap: 5px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(94, 211, 177, 0.27);
  border-radius: 10px;
  background: rgba(6, 14, 20, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.model-menu[hidden],
body:not(.ai-chat-mode) .model-menu {
  display: none !important;
}

body.ai-chat-mode.ai-chat-scrolled .model-menu {
  top: auto;
  bottom: calc(100% + 10px);
}

.model-option {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(222, 233, 239, 0.76);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.model-option:hover,
.model-option:focus-visible {
  color: #f4fbfd;
  border-color: rgba(71, 199, 232, 0.22);
  background: rgba(71, 199, 232, 0.075);
  outline: none;
  transform: translateX(2px);
}

.model-option.is-active {
  color: #effff8;
  border-color: rgba(88, 214, 141, 0.28);
  background: rgba(88, 214, 141, 0.095);
}

.model-option-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(162, 184, 196, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.018);
}

.model-option.is-active .model-option-dot {
  border-color: rgba(135, 240, 190, 0.95);
  background: rgba(88, 214, 141, 0.86);
  box-shadow: 0 0 12px rgba(88, 214, 141, 0.38);
}

.model-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0 !important;
  order: initial !important;
}

.model-option-copy strong,
.model-option-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-option-copy strong {
  font-size: 13px;
}

.model-option-copy small {
  color: rgba(179, 195, 205, 0.58);
  font-size: 11px;
}

.ai-send-button {
  position: relative;
  z-index: 2;
  display: none;
  order: 2;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  padding: 0;
  border: 1px solid rgba(111, 226, 186, 0.2);
  border-radius: 50%;
  color: rgba(219, 255, 241, 0.92);
  background: rgba(88, 214, 141, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ai-send-button svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(.22, .61, .36, 1), filter 220ms ease;
}

body.ai-chat-mode .search-icon {
  display: none;
}

body.ai-chat-mode .ai-send-button {
  display: grid;
}

.ai-send-button:hover,
.ai-send-button:focus-visible {
  color: #fff;
  border-color: rgba(130, 241, 203, 0.5);
  background: rgba(88, 214, 141, 0.2);
  box-shadow: 0 0 0 4px rgba(88, 214, 141, 0.07), 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  outline: none;
  transform: translateY(-1px) scale(1.04);
}

.ai-send-button:hover svg,
.ai-send-button:focus-visible svg {
  filter: drop-shadow(0 0 5px rgba(190, 255, 226, .32));
  transform: translateX(2px);
}

.ai-send-button:active {
  transform: translateY(0) scale(0.96);
}

@media (max-width: 720px) {
  body.ai-chat-mode .mode-switch {
    flex-basis: 136px;
    width: 136px;
    padding: 0 10px 0 12px;
  }

  .model-menu {
    width: min(226px, calc(100vw - 24px));
  }

  .ai-send-button {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    margin-left: 6px;
  }
}

@media (max-width: 430px) {
  body.ai-chat-mode .mode-switch {
    flex-basis: 122px;
    width: 122px;
  }

  .mode-switch-model {
    font-size: 12px;
  }
}


/* Chat window model picker */
.ai-chat-window-head {
  z-index: 4;
  overflow: visible;
}

.ai-chat-head-model {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ai-chat-model-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 48px;
  min-width: 0;
  min-height: 38px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(237, 248, 244, 0.94);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ai-chat-model-switch:hover,
.ai-chat-model-switch:focus-visible,
body.ai-chat-model-menu-open .ai-chat-model-switch {
  color: #f5fffb;
  border-color: rgba(88, 214, 177, 0.25);
  background: rgba(88, 214, 177, 0.075);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  outline: none;
}

.ai-chat-model-switch:active {
  transform: scale(.98);
}

.ai-chat-model-icon,
.model-option-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(129, 231, 199, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(31, 92, 74, 0.7), rgba(9, 30, 31, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px rgba(68, 205, 164, 0.09);
}

.ai-chat-model-icon img,
.model-option-icon img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.ai-chat-model-chevron {
  color: rgba(161, 226, 207, 0.64);
  font-size: 17px;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

body.ai-chat-model-menu-open .ai-chat-model-chevron {
  color: rgba(218, 255, 243, 0.96);
  transform: rotate(180deg);
}

.ai-chat-model-menu {
  z-index: 90;
  top: calc(100% + 7px);
  bottom: auto;
  left: 0;
  width: 232px;
}

body.ai-chat-mode.ai-chat-scrolled .ai-chat-model-menu {
  top: calc(100% + 7px);
  bottom: auto;
}

.model-option {
  grid-template-columns: 34px minmax(0, 1fr);
}

.model-option-icon {
  width: 32px;
  height: 32px;
}

.model-option-icon img {
  width: 20px;
  height: 20px;
}

@media (max-width: 430px) {
  .ai-chat-model-switch {
    gap: 7px;
  }

  .ai-chat-model-menu {
    width: min(222px, calc(100vw - 88px));
  }
}

/* Tutorial cover clarity and unified duck artwork */
body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy,
.overview-tutorial-title {
  top: 14px;
  right: 5px;
  left: 5px;
  padding: 11px 6px 13px;
  border: 1px solid rgba(113, 231, 188, 0.24);
  border-left: 4px solid #69e3ac;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(3, 13, 17, 0.97), rgba(5, 20, 25, 0.9) 76%, rgba(5, 20, 25, 0.68));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(5px);
  text-align: left;
}

body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy::after,
.overview-tutorial-title::after {
  display: none;
}

body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy strong {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.86);
}

body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy strong.is-medium {
  font-size: 14px;
}

body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy strong.is-long {
  font-size: 12px;
}

.overview-tutorial-title {
  top: 14px;
  right: 10px;
  left: 10px;
  padding: 13px 14px 15px;
}

.overview-tutorial-title strong {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.88);
}

.overview-tutorial-title strong.is-medium {
  font-size: 18px;
}

.overview-tutorial-title strong.is-long {
  font-size: 15px;
}

@media (max-width: 680px) {
  body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy {
    top: 8px;
    right: 5px;
    left: 5px;
    padding: 8px 7px 9px;
    border-left-width: 3px;
  }

  body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy strong {
    font-size: 12px;
  }

  body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy strong.is-medium {
    font-size: 10.5px;
  }

  body[data-active-group="tutorial-knowledge"] .tutorial-thumb-copy strong.is-long {
    font-size: 9px;
  }
}

@media (max-width: 560px) {
  .overview-tutorial-title {
    top: 9px;
    right: 7px;
    left: 7px;
    padding: 10px 8px 11px;
  }

  .overview-tutorial-title strong {
    font-size: 15px;
  }

  .overview-tutorial-title strong.is-medium {
    font-size: 12.5px;
  }

  .overview-tutorial-title strong.is-long {
    font-size: 10.5px;
  }
}
