/* Confirmed homepage: cobalt brand, neutral text, individually colored icons. */
:root {
  --brand: #2463ff;
  --brand-dark: #174fe0;
  --brand-soft: #edf3ff;
  --ink: #111e43;
  --muted: #7784a0;
  --line: #e2eafa;
  --surface: #fff;
  --surface-2: #f7f9ff;
  --shadow: 0 12px 35px #2952a00d;
}
:root.dark {
  --brand: #87a9ff;
  --brand-dark: #a3bdff;
  --brand-soft: #253455;
  --ink: #edf1ff;
  --muted: #a2afcd;
  --line: #303e5a;
  --surface: #141c2e;
  --surface-2: #11192a;
  --shadow: 0 12px 35px #0003;
}
body { background: var(--surface); color: var(--ink); }
main#top { scroll-margin-top: 72px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; vertical-align: middle; }
.site-header { height: 72px; padding: 0 max(28px, calc((100% - 1280px) / 2)); border-color: var(--line); }
.brand { gap: 8px; }
.brand-mark { width: 56px; height: 48px; border-radius: 0; object-fit: contain; background: none; box-shadow: none; }
.brand-copy strong { font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.site-header .brand-copy small { display: none; }
.desktop-nav { margin-left: 108px; gap: 42px; font-size: 15px; }
.header-actions { gap: 6px; }
.login-button { background: var(--brand-soft); color: var(--brand-dark); }
.login-button .ui-icon { display: inline-block; }
.hero-section { min-height: 370px; padding: 74px 24px 36px; align-items: flex-start; background: #f7faff; isolation: isolate; overflow: hidden; }
.hero-section::before { display: none; }
.hero-art { position: absolute; width: min(1100px, 100vw); height: auto; max-width: none; top: 50%; transform: translateY(-50%); z-index: -1; pointer-events: none; }
.hero-art-left { left: -12px; clip-path: inset(0 65% 0 0); }
.hero-art-right { right: -12px; clip-path: inset(0 0 0 65%); }
.hero-content { width: min(750px, 100%); }
.hero-content h1 { font-size: clamp(34px, 3.5vw, 52px); font-weight: 800; letter-spacing: -.045em; margin: 0 0 12px; line-height: 1.3; white-space: nowrap; }
.hero-content h1 em { color: #2463ff; }
.hero-content > p { color: #6d7c9f; font-size: 24px; font-weight: 500; margin: 0 0 24px; letter-spacing: .01em; }
.search-box { height: 66px; border-radius: 100px; max-width: 690px; padding: 5px; padding-left: 22px; border-color: #7a9fff; box-shadow: 0 12px 28px #4477ed12; }
.search-box > .ui-icon { width: 24px; height: 24px; color: #34446e; }
.search-box input { font-size: 16px; }
.platform-announcement{width:min(1120px,calc(100% - 32px));margin:16px auto;padding:12px 18px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.search-box input::placeholder { color: #8996b2; }
.search-box button { height: 54px; min-width: 136px; background: #2463ff; border-radius: 100px; font-size: 17px; letter-spacing: .12em; }
.hero-benefits { display: flex; gap: 38px; justify-content: center; align-items: center; list-style: none; margin: 28px 0 0; padding: 0; font-size: 13px; color: #34446e; }
.hero-benefits li { display: flex; align-items: center; gap: 8px; }
.hero-benefits .ui-icon { width: 23px; height: 23px; color: #2463ff; }
.hero-benefits li:nth-child(2) .ui-icon { color: #934cf7; }
.hero-benefits li:nth-child(3) .ui-icon { color: #fa9927; }
.category-section { width: min(1328px, calc(100% - 64px)); padding: 0; position: relative; margin-top: -2px; z-index: 1; }
.category-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin: 0; padding: 14px 8px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-2); box-shadow: 0 10px 25px #4675d407; }
.category-card { padding: 0 5px; gap: 5px; border: 0; border-radius: 0; background: transparent; position: relative; min-height: 92px; }
.category-card:not(:last-child)::after { content: ''; height: 62%; width: 1px; background: var(--line); position: absolute; right: 0; top: 21%; }
.category-card:hover, .category-card.active { box-shadow: none; transform: none; color: var(--brand-dark); }
.category-card:hover .category-icon, .category-card.active .category-icon { transform: translateY(-3px); }
.category-card.active strong { text-decoration: underline; text-underline-offset: 6px; }
.category-card .category-icon { width: 58px; height: 58px; border-radius: 50%; background: color-mix(in srgb, var(--cat) 13%, var(--surface)); transition: transform .2s ease; }
.category-icon .ui-icon { width: 33px; height: 33px; color: var(--cat); filter: drop-shadow(0 3px 2px color-mix(in srgb, var(--cat) 22%, transparent)); }
.category-card strong { font-size: 16px; font-weight: 500; }
.tool-section { width: min(1328px, calc(100% - 64px)); padding: 32px 0 66px; }
.section-heading h2 { font-size: 28px; font-weight: 750; margin: 0 0 4px; }
.section-heading p { font-size: 13px; }
.tool-heading { align-items: center; margin-bottom: 24px; }
.text-button { font-size: 14px; font-weight: 600; gap: 7px; }
.text-button .ui-icon { width: 17px; height: 17px; }
.filter-row { margin: 0 0 20px; }
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-card { display: block; min-height: 154px; padding: 0; border-radius: 13px; box-shadow: 0 6px 18px #4675d406; overflow: hidden; }
.tool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tool-color) 35%, var(--line)); }
.tool-open { width: 100%; height: 100%; min-height: 154px; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; text-align: left; padding: 20px 18px 15px; border: 0; background: transparent; color: inherit; }
.tool-card-main { display: flex; align-items: flex-start; gap: 14px; }
.tool-icon { width: 58px; height: 64px; border-radius: 16px; background: color-mix(in srgb, var(--tool-color, #11bebc) 12%, var(--surface)); color: var(--tool-color, #11bebc); flex: none; }
.tool-icon .ui-icon { width: 42px; height: 42px; filter: drop-shadow(0 3px 2px color-mix(in srgb, var(--tool-color, #11bebc) 22%, transparent)); }
.tool-copy { display: block; flex: 1; min-width: 0; padding-top: 2px; }
.tool-name { display: block; font-size: 17px; line-height: 1.5; font-weight: 700; }
.tool-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.card-arrow { position: absolute; right: 14px; top: 25px; color: #7888ab; }
.card-arrow .ui-icon { width: 14px; height: 14px; }
.tool-card .tool-copy { padding-right: 7px; }
.favorite-button { position: absolute; right: 8px; bottom: 9px; width: 32px; height: 32px; opacity: 0; background: var(--surface); }
.tool-card:hover .favorite-button, .tool-card:focus-within .favorite-button, .favorite-button.active { opacity: 1; }
.favorite-button .ui-icon { width: 17px; height: 17px; }
.tool-tags { display: flex; padding-top: 12px; margin: 0; }
.tool-tags > span { font-size: 10px; line-height: 1.4; background: var(--surface-2); color: #7382a4; padding: 5px 9px; border-radius: 100px; display: inline-flex; align-items: center; gap: 5px; }
.tool-tags .ui-icon { width: 12px; height: 12px; }
.feature-section { background: #f4f7ff; color: var(--ink); padding: 60px max(32px, calc((100% - 1160px) / 2)); gap: 90px; }
.feature-copy .eyebrow { color: var(--brand); }
.feature-copy h2 { font-size: 30px; }
.feature-copy > p { color: var(--muted); }
.feature-copy ul { color: #5f7091; }
.feature-copy li .ui-icon { width: 17px; height: 17px; color: var(--brand); }
.primary-button { background: #2463ff; }
.primary-button .ui-icon { width: 17px; height: 17px; }
.feature-demo { transform: none; border: 1px solid #dfe7fb; box-shadow: 0 20px 55px #5275bb13; }
.status-dot { color: #2786c9; background: #eaf7ff; }
.fake-input b { color: #2463ff; }
.demo-result div { background: #f5f8ff; }
.feature-demo > button { background: #2463ff; }
.trust-section article:nth-child(1) > span { color: #3475ff; background: #edf3ff; }
.trust-section article:nth-child(2) > span { color: #9751e8; background: #f5eeff; }
.trust-section article:nth-child(3) > span { color: #ed952f; background: #fff5e8; }
.footer-contact > .ui-icon { width: 40px; height: 40px; color: #7f91ba; margin: 8px 0; }
.tool-modal > header { align-items: center; }
.tool-modal > header .tool-icon { width: 48px; height: 48px; }
.tool-modal > header .tool-icon .ui-icon { width: 28px; height: 28px; }
.tool-modal { box-shadow: 0 25px 80px #101b4433; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--brand); }
.dark .hero-section { background: #16213a; }
.dark .hero-content > p, .dark .hero-benefits { color: #b3c1e4; }
.dark .hero-content h1 em { color: #82a7ff; }
.dark .tool-tags > span, .dark .search-box input::placeholder { color: #a7b5d5; }
.dark .search-box > .ui-icon { color: #b3c1e4; }
.dark .search-box { background: #18243e; }
.dark .hero-art { opacity: .78; }
.dark .feature-section { background: #18243a; }
.dark .feature-copy ul { color: #b3c1e4; }
:focus-visible { outline: 3px solid #79a1ff; outline-offset: 4px; }
.scenario-section { background: var(--surface-2); padding: 52px 32px 58px; scroll-margin-top: 88px; }
.scenario-inner { width: min(1200px, 100%); margin: auto; }
.scenario-heading { margin-bottom: 28px; }
.scenario-heading h2 { margin: 7px 0 10px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scenario-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.scenario-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--scenario-color) 11%, var(--surface)); color: var(--scenario-color); }
.scenario-icon .ui-icon { width: 27px; height: 27px; }
.scenario-card h3 { font-size: 19px; margin: 17px 0 7px; }
.scenario-card > p { color: var(--muted); font-size: 13px; min-height: 44px; margin: 0 0 18px; }
.scenario-links { display: grid; }
.scenario-links button { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; font-size: 14px; }
.scenario-links button:hover { color: var(--scenario-color); }
.scenario-links .ui-icon { width: 16px; height: 16px; color: var(--muted); }
.impact-section { width: min(1200px, calc(100% - 64px)); margin: 42px auto 0; padding: 28px 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.impact-copy { display: flex; align-items: center; gap: 14px; }
.impact-symbol { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #ee6c97; background: color-mix(in srgb, #ee6c97 11%, var(--surface)); flex: none; }
.impact-symbol .ui-icon { width: 24px; height: 24px; }
.impact-copy h2 { font-size: 20px; margin: 0 0 5px; }
.impact-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.impact-metrics { display: flex; align-items: center; gap: 34px; }
.impact-metric { display: flex; flex-direction: column; gap: 5px; }
.impact-metric > span { font-size: 12px; color: var(--muted); }
.impact-metric > strong { font-size: 29px; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--brand-dark); white-space: nowrap; }
.impact-metric b { font-weight: 750; }
.impact-metric em { font-size: 12px; font-style: normal; color: var(--muted); font-weight: 400; margin-left: 5px; }
.impact-help > strong { font-size: 23px; }
.impact-metric small { color: var(--muted); font-size: 10px; }
@media (max-width: 1000px) { .impact-section { align-items: flex-start; flex-direction: column; gap: 24px; } .impact-metrics { width: 100%; justify-content: space-between; } }
@media (max-width: 720px) {
  .scenario-section { padding: 35px 18px; scroll-margin-top: 78px; }
  .scenario-heading h2 { font-size: 23px; }
  .scenario-heading p { max-width: none; font-size: 12px; }
  .scenario-grid { grid-template-columns: 1fr; gap: 14px; }
  .scenario-card { padding: 22px; }
  .scenario-card > p { min-height: auto; }
  .impact-section { width: calc(100% - 36px); margin-top: 25px; }
  .impact-copy { align-items: flex-start; gap: 10px; }
  .impact-copy h2 { font-size: 17px; }
  .impact-copy p { font-size: 11px; }
  .impact-symbol { width: 38px; height: 38px; }
  .impact-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .impact-help { grid-column: 1 / -1; }
  .impact-help > strong { font-size: 25px; }
}
@media (min-width: 1600px) {
  .hero-section { min-height: 430px; }
}
@media (max-width: 1100px) {
  .desktop-nav { margin-left: 55px; gap: 27px; }
  .hero-section { min-height: 360px; }
  .hero-art { width: 920px; opacity: .5; }
  .hero-content > p { font-size: 21px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-card-main { gap: 10px; }
  .tool-icon { width: 48px; height: 56px; }
  .tool-name { font-size: 15px; }
}
@media (max-width: 820px) {
  .desktop-nav { gap: 20px; margin-left: 28px; font-size: 13px; }
  .category-section, .tool-section { width: calc(100% - 36px); }
  .category-card .category-icon { width: 45px; height: 45px; }
  .category-icon .ui-icon { width: 27px; height: 27px; }
  .category-card strong { font-size: 13px; }
  .category-card { min-height: 78px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  main#top { scroll-margin-top: 64px; }
  .site-header { height: 64px; padding: 0 14px; }
  .brand-mark { width: 43px; height: 38px; }
  .brand-copy strong { font-size: 21px; }
  .hero-section { min-height: 325px; padding: 54px 18px 40px; }
  .hero-art { display: none; }
  .hero-content h1 { font-size: clamp(26px, 5.4vw, 36px); white-space: normal; letter-spacing: -.045em; }
  .hero-content > p { font-size: 15px; margin: 13px 0 22px; }
  .search-box { height: 54px; padding-left: 15px; gap: 8px; }
  .search-box input { font-size: 14px; }
  .search-box > .ui-icon { width: 20px; height: 20px; }
  .search-box button { display: block; height: 42px; min-width: 70px; padding: 0 13px; font-size: 14px; }
  .hero-benefits { gap: 17px; margin-top: 24px; font-size: 10px; }
  .hero-benefits li { gap: 4px; }
  .hero-benefits .ui-icon { width: 18px; height: 18px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 5px; row-gap: 15px; border-radius: 16px; }
  .category-card { min-height: 76px; }
  .category-card:nth-child(4)::after { display: none; }
  .category-card strong { font-size: 13px; }
  .tool-section { padding: 30px 0 40px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 11px; max-width: 270px; }
  .tool-heading { margin-bottom: 17px; gap: 8px; }
  .tool-heading .text-button { display: flex; white-space: nowrap; font-size: 11px; padding: 5px 0; }
  .tool-heading .text-button .ui-icon { width: 13px; height: 13px; }
  .tool-card { min-height: 163px; }
  .tool-open { padding: 14px 12px 13px; min-height: 163px; }
  .tool-card-main { display: block; }
  .tool-card .tool-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 9px; }
  .tool-card .tool-icon .ui-icon { width: 26px; height: 26px; }
  .tool-copy { padding: 0; }
  .tool-name { font-size: 13px; }
  .tool-description { font-size: 11px; margin-top: 4px; }
  .tool-tags > span { font-size: 10px; padding: 4px 6px; }
  .tool-tags .ui-icon { display: none; }
  .favorite-button { opacity: 1; top: 11px; bottom: auto; right: 7px; }
  .card-arrow { display: none; }
  .feature-section { gap: 30px; padding: 45px 22px; }
  .feature-copy h2 { font-size: 25px; }
}
@media (max-width: 400px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content h1 { font-size: 26px; }
  .hero-benefits { gap: 10px; font-size: 9px; }
  .tool-tags > span { font-size: 10px; }
}

/* Header statistics, shared page alignment, and quieter search-first hero. */
:root { --content-width: 1120px; --content-gutter: 48px; }
.header-actions { margin-left: 24px; flex: none; }
.header-impact { margin-left: auto; padding-left: 24px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.header-impact > .ui-icon { width: 21px; height: 21px; color: #eb719a; }
.header-impact strong { display: block; font-size: 14px; color: var(--brand-dark); font-weight: 650; letter-spacing: .03em; }
.hero-section, .dark .hero-section { min-height: 330px; padding: 54px 24px 38px; background: var(--surface); }
.hero-content h1 { font-size: clamp(32px, 3.2vw, 44px); font-weight: 750; letter-spacing: -.035em; }
.hero-content > p { color: var(--muted); font-size: 18px; font-weight: 400; margin-bottom: 28px; }
.search-box { height: 60px; max-width: 660px; border-radius: 15px; padding-left: 18px; border-color: var(--line); box-shadow: 0 8px 25px #2952a009; }
.search-box button { height: 48px; min-width: 104px; border-radius: 10px; font-size: 16px; letter-spacing: .08em; }
.hero-benefits { gap: 0; margin-top: 20px; font-size: 12px; color: var(--muted); }
.hero-benefits li { padding: 0 16px; }
.hero-benefits li + li { border-left: 1px solid var(--line); }
.category-section, .tool-section, .scenario-inner { width: min(var(--content-width), calc(100% - var(--content-gutter))); }
.category-section { margin-top: 0; }
.tool-section { padding-bottom: 48px; }
.scenario-section { background: var(--surface); padding: 14px 0 48px; }
.scenario-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.scenario-summary { white-space: nowrap; padding-bottom: 2px; }
.scenario-summary b { font-weight: 600; color: var(--brand-dark); }
@media (min-width: 1600px) { .hero-section { min-height: 350px; } }
@media (max-width: 1100px) {
  .desktop-nav { margin-left: 30px; gap: 22px; }
  .header-impact { padding-left: 16px; }
  .header-actions { margin-left: 16px; }
  .hero-section { min-height: 320px; }
}
@media (max-width: 820px) { :root { --content-gutter: 36px; } }
@media (max-width: 720px) {
  .site-header { height: 94px; padding: 0 14px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 60px 34px; }
  .site-header > .brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; margin: 0; }
  .header-impact { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 0 0 8px; justify-content: center; font-size: 10px; gap: 7px; }
  .header-impact > .ui-icon { width: 14px; height: 14px; }
  .header-impact strong { display: inline; margin-left: 9px; font-size: 11px; }
  .mobile-menu { top: 94px; }
  main#top { scroll-margin-top: 94px; }
  .tool-section { scroll-margin-top: 104px; }
  .hero-section, .dark .hero-section { min-height: 285px; padding: 36px 18px 28px; }
  .hero-content h1 { font-size: clamp(26px, 5.4vw, 36px); }
  .hero-content > p { font-size: 15px; }
  .search-box { height: 54px; padding-left: 15px; }
  .search-box button { height: 42px; min-width: 70px; font-size: 14px; }
  .hero-benefits { gap: 0; font-size: 10px; }
  .hero-benefits li { padding: 0 10px; }
  .scenario-section { padding: 8px 0 30px; scroll-margin-top: 104px; }
  .scenario-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* Compact homepage and two distinct discovery presentations. */
.site-header { padding-inline: max(24px, calc((100% - var(--content-width)) / 2)); }
.desktop-nav { margin-left: 40px; gap: 25px; font-size: 14px; }
.brand-copy strong { font-size: 23px; }
.hero-section, .dark .hero-section { min-height: 300px; padding-top: 42px; padding-bottom: 30px; }
.hero-content h1 { font-size: 40px; }
.hero-content > p { font-size: 16px; margin-bottom: 24px; }
.search-box { max-width: 600px; height: 56px; }
.search-box button { height: 44px; }
.search-box input { font-size: 14px; }
.category-grid { padding-block: 12px; }
.category-card { min-height: 80px; }
.category-card .category-icon { width: 48px; height: 48px; }
.category-icon .ui-icon { width: 28px; height: 28px; }
.category-card strong { font-size: 14px; }
.section-heading h2 { font-size: 24px; }
.tool-section { padding-top: 28px; padding-bottom: 38px; }
.tool-card, .tool-open { min-height: 146px; }
.tool-open { padding: 18px 15px 13px; }
.tool-card-main { gap: 10px; }
.tool-card .tool-icon { width: 46px; height: 52px; border-radius: 13px; }
.tool-card .tool-icon .ui-icon { width: 31px; height: 31px; }
.tool-name { font-size: 15px; }
.tool-description { font-size: 12px; line-height: 1.65; margin-top: 6px; }
.latest-section, .recommend-section { width: min(var(--content-width), calc(100% - var(--content-gutter))); margin: auto; padding: 8px 0 36px; scroll-margin-top: 90px; }
.discovery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-caption, .catalog-summary { color: var(--muted); font-size: 12px; white-space: nowrap; }
.catalog-summary b { color: var(--brand-dark); font-weight: 600; }
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.latest-card { text-align: left; position: relative; display: flex; align-items: flex-start; flex-direction: column; gap: 10px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); min-width: 0; }
.latest-card:hover { border-color: color-mix(in srgb, var(--tool-color) 35%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.latest-card .tool-icon { width: 43px; height: 43px; border-radius: 12px; }
.latest-card .tool-icon .ui-icon { width: 28px; height: 28px; }
.latest-card > strong { font-size: 15px; }
.new-badge { position: absolute; top: 0; right: 0; border-radius: 0 12px 0 8px; background: #ff8557; color: #fff; font-size: 10px; line-height: 1; font-weight: 750; padding: 6px 9px; letter-spacing: .04em; }
.latest-description { color: var(--muted); font-size: 12px; line-height: 1.7; min-height: 41px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-action { margin-top: 2px; color: var(--brand-dark); display: flex; align-items: center; gap: 6px; font-size: 12px; }
.latest-action .ui-icon { width: 14px; height: 14px; }
.recommend-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.recommend-item { display: flex; align-items: center; gap: 13px; padding: 19px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; min-width: 0; }
.recommend-item:hover { color: var(--brand-dark); background: var(--surface-2); }
.recommend-item .tool-icon { width: 43px; height: 43px; border-radius: 12px; }
.recommend-item .tool-icon .ui-icon { width: 27px; height: 27px; }
.recommend-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.recommend-copy strong { font-size: 15px; }
.recommend-copy > span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recommend-category { display: none; }
.recommend-item > .ui-icon { width: 15px; height: 15px; color: var(--muted); }
.trust-section { width: min(var(--content-width), calc(100% - var(--content-gutter))); margin-block: 35px 45px; }
footer { padding-inline: max(24px, calc((100% - var(--content-width)) / 2)); }
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommend-category { display: none; }
  .recommend-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared independent tool pages and fixed quick actions. */
.complete-preview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; max-width: 100%; overflow: auto; }
.complete-preview canvas { max-width: min(100%, 360px); height: auto; border: 1px solid var(--line); }
.complete-preview:has(h1,h2,h3,p,ul,ol,pre,blockquote) { display: block; }
.complete-preview a { font-size: 12px; padding: 9px 12px; }
.complete-preview table { border-collapse: collapse; }
.complete-preview td, .complete-preview th { border: 1px solid var(--line); padding: 5px; }
.clock-display, .score-display { display: block; text-align: center; font-size: clamp(28px, 6vw, 48px); padding: 25px 5px; font-variant-numeric: tabular-nums; }
.game-board { display: grid; gap: 4px; width: min(100%, 420px); margin: auto; }
.board-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.board-15 { grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 1px; }
.game-board button, .game-tile { aspect-ratio: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 5px; display: grid; place-items: center; font-weight: 700; padding: 0; }
.board-15 button { font-size: clamp(10px, 2vw, 19px); border-radius: 0; }
.game-tile { font-size: clamp(16px, 3vw, 29px); }
.sudoku-board { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: 420px; margin: auto; border: 2px solid var(--brand); }
.sudoku-board input { min-width: 0; width: 100%; aspect-ratio: 1; height: auto; text-align: center; border-radius: 0; padding: 2px; border: 1px solid var(--line); }
.sudoku-board input[readonly] { background: var(--surface-2); font-weight: 700; }
.sudoku-board input:nth-child(3n) { border-right-color: var(--brand); }
.device-test-pad { border: 2px dashed var(--line); padding: 35px 15px; border-radius: 12px; text-align: center; background: var(--surface-2); outline-color: var(--brand); }
.wheel-art { width: 160px; height: 160px; margin: 20px auto; border-radius: 50%; border: 6px solid var(--surface); background: conic-gradient(#5886ff 0 60deg,#ffa354 60deg 120deg,#b47cff 120deg 180deg,#56d4ca 180deg 240deg,#ff7aa8 240deg 300deg,#ffd36c 300deg); transition: transform 1s ease-out; }
.reaction-ready { background: #197f54 !important; color: #fff !important; }
.miniapp-button { height: 40px; border: 0; border-radius: 11px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 600; white-space: nowrap; }
.miniapp-short { display: none; }
.site-header .brand-copy strong { white-space: nowrap; }
.miniapp-button .ui-icon { width: 20px; height: 20px; }
.miniapp-panel { position: fixed; z-index: 60; top: 78px; right: max(24px, calc((100% - var(--content-width)) / 2)); width: 280px; padding: 28px 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.miniapp-panel[hidden] { display: none; }
.miniapp-panel > .ui-icon { width: 44px; height: 44px; color: var(--brand); }
.miniapp-panel h2 { font-size: 19px; margin: 12px 0; }
.miniapp-panel strong { color: var(--brand-dark); font-size: 14px; }
.miniapp-panel p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.miniapp-close { position: absolute; right: 6px; top: 6px; font-size: 22px; }
@media (max-width: 720px) { .miniapp-button { padding: 0 9px; font-size: 11px; gap: 5px; } .miniapp-label { display: none; } .miniapp-short { display: inline; } .miniapp-panel { right: 14px; top: 100px; width: min(280px, calc(100% - 28px)); } }
@media (max-width: 360px) { .miniapp-button { width: 38px; padding: 0; } .miniapp-short { display: none; } }
.tool-site-header .header-actions { margin-left: auto; }
.tool-related { margin-top: 44px; }
.tool-related .section-heading h2 { font-size: 22px; }
@media (max-width: 820px) { .tool-site-header .header-actions { margin: 0; } }
.local-options { display: flex; flex-wrap: wrap; gap: 12px 20px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-width: 0; margin: 0; }
.local-options legend { padding-inline: 5px; font-size: 13px; color: var(--muted); }
.local-options label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.local-options input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand); }
.local-color-preview { min-height: 70px; border-radius: 12px; border: 1px solid var(--line); }
.local-status { min-height: 22px; margin: 0; overflow-wrap: anywhere; }
.local-error { color: #d34646; }
.dark .local-error { color: #ff9292; }
.latest-section { padding-top: 28px; padding-bottom: 8px; }
.hero-content h1 { font-size: clamp(26px, 3vw, 36px); }
.hero-content h1 em { display: inline-block; }
.floating-actions { position: fixed; z-index: 40; right: 18px; bottom: 28px; display: grid; gap: 7px; }
.floating-actions a, .floating-actions button { width: 54px; min-height: 56px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 18px #182d6410; font-size: 11px; }
.floating-actions a:hover, .floating-actions button:hover { color: var(--brand); border-color: var(--brand); }
.floating-actions .ui-icon { width: 21px; height: 21px; }
.floating-actions a .ui-icon { transform: rotate(-90deg); }
.tool-page { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 70px; min-height: 70vh; scroll-margin-top: 100px; }
.tool-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.tool-workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tool-page-heading { display: flex; align-items: center; gap: 16px; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.tool-page-heading h1 { font-size: 25px; margin: 0 0 5px; }
.tool-page-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.tool-page-heading .tool-icon { width: 54px; height: 54px; }
.tool-page-status { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.tool-page-body { padding: 30px; }
.tool-page-slogan { color: var(--muted); text-align: center; font-size: 13px; margin: 30px 0; }
.coming-soon { padding: 44px 10px; text-align: center; }
.coming-soon > .ui-icon { width: 48px; height: 48px; color: var(--brand); }
.coming-soon h2 { font-size: 23px; }
.coming-soon p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.coming-soon .primary-button { display: inline-flex; margin-top: 18px; }
@media (max-width: 720px) {
  .floating-actions { position: static; display: flex; justify-content: center; width: max-content; max-width: calc(100% - 28px); margin: 16px auto; gap: 8px; }
  .floating-actions a, .floating-actions button { width: 42px; min-height: 45px; font-size: 10px; padding: 5px 2px; }
  .floating-actions .ui-icon { width: 18px; height: 18px; }
  .tool-page { width: calc(100% - 36px); padding-top: 20px; padding-right: 0; }
  .tool-page-heading { padding: 20px 16px; flex-wrap: wrap; gap: 10px; }
  .tool-page-heading h1 { font-size: 22px; }
  .tool-page-status { margin-left: 0; width: 100%; }
  .tool-page-body { padding: 20px 16px; }
  .coming-soon { padding: 24px 0; }
}
@media (max-width: 720px) {
  .site-header { padding-inline: 14px; }
  .hero-section, .dark .hero-section { min-height: 270px; padding: 32px 18px 25px; }
  .hero-content h1 { font-size: clamp(26px, 5.4vw, 34px); }
  .hero-content > p { font-size: 14px; }
  .brand-copy strong { font-size: 21px; }
  .category-card strong { font-size: 13px; }
  .section-heading h2 { font-size: 22px; }
  .tool-card, .tool-open { min-height: 165px; }
  .tool-card .tool-icon { width: 40px; height: 40px; }
  .tool-card .tool-icon .ui-icon { width: 26px; height: 26px; }
  .tool-name { font-size: 13px; }
  .tool-description { font-size: 11px; }
  .latest-section, .recommend-section { scroll-margin-top: 104px; padding-bottom: 28px; }
  .latest-card { padding: 17px 13px; gap: 9px; }
  .latest-card > strong { font-size: 13px; }
  .latest-description { font-size: 11px; }
  .recommend-list { grid-template-columns: 1fr; }
  .catalog-summary { font-size: 10px; }
  .discovery-heading { align-items: flex-start; }
}
/* Fade only the artwork into the theme surface; keep copy and search fully opaque. */
.hero-section.hero-section::before { --hero-fade: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0,0,0,.9) 58%, rgba(0,0,0,.5) 76%, rgba(0,0,0,.12) 91%, transparent 100%); content: ''; display: block; position: absolute; inset: 0; background: url('assets/hero-search-background-v2.jpg') center / cover no-repeat; mask-image: var(--hero-fade); -webkit-mask-image: var(--hero-fade); pointer-events: none; z-index: -1; }
.dark .hero-section.hero-section::before { opacity: .4; filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
@media (max-width: 720px) {
  .hero-section.hero-section::before { background-position: center; opacity: .8; }
  .dark .hero-section.hero-section::before { opacity: .25; }
}
