@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "DM Sans", sans-serif;
  color: #20202c;
  background: #f7f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #20202c;
  --muted: #828291;
  --purple: #7856e8;
  --purple-light: #eee9ff;
  --line: #eeeef3;
  --surface: #fff;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f7f7fb;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 7.2%;
}

.topbar {
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 24px "Manrope", sans-serif;
  letter-spacing: -1.5px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, #9b7aff, #7350df);
  font-size: 19px;
}

.brand-period { color: var(--purple); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.today-label { display: flex; align-items: center; gap: 8px; color: #777686; font-size: 12px; font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #63cba0; box-shadow: 0 0 0 4px #e4f6ee; }
.avatar { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #6b4ed0; background: #e9e3ff; font-size: 13px; font-weight: 700; }

.hero {
  min-height: 322px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 42px 6.5%;
  border-radius: 24px;
  color: white;
  background: #211c3d;
  isolation: isolate;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
}

.hero::before { width: 460px; height: 460px; top: -310px; right: -20px; background: #6250b7; opacity: .28; }
.hero::after { width: 400px; height: 400px; bottom: -300px; right: 20%; background: #8b4ed0; opacity: .17; }
.hero-copy { position: relative; z-index: 2; width: min(560px, 65%); }
.eyebrow { margin: 0; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: 1.5px; }
.hero .eyebrow { color: #c2b5ff; }
.sparkle { margin-right: 6px; font-size: 13px; }
.hero h1 { margin: 14px 0 9px; font: 800 clamp(34px, 4.3vw, 52px)/1.08 "Manrope", sans-serif; letter-spacing: -2.2px; }
.hero h1 span { color: #a88aff; }
.hero-description { margin: 0 0 24px; color: #cbc9d7; font-size: 13px; }

.search-box {
  width: min(475px, 100%);
  height: 49px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}

.search-box svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #b6b2c8; stroke-width: 1.8; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: white; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #aaa8bb; }
.search-box kbd { min-width: 21px; padding: 2px 5px; border: 1px solid #5c5873; border-radius: 5px; color: #b6b2c8; text-align: center; font: 11px "DM Sans", sans-serif; }

.hero-art { position: absolute; right: 8%; top: 50%; width: 230px; height: 230px; transform: translateY(-50%); }
.orbit { position: absolute; inset: 50%; border: 1px solid rgba(192,173,255,.2); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 150px; height: 150px; }
.orbit-two { width: 205px; height: 205px; }
.orbit-three { width: 265px; height: 265px; border-color: rgba(192,173,255,.13); }
.planet { position: absolute; top: 50%; left: 50%; display: grid; width: 94px; height: 94px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 30px; color: white; background: linear-gradient(145deg, #a27ef5, #6843c8); box-shadow: 0 12px 40px #8f60f54d, inset 0 1px 3px #ffffff80; font-size: 45px; transform: translate(-50%, -50%) rotate(-10deg); }
.satellite { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; color: #e3d8ff; background: #3c345d; box-shadow: 0 7px 16px #14102480; }
.satellite-one { top: 24px; right: 34px; width: 38px; height: 38px; font-size: 21px; }
.satellite-two { bottom: 32px; left: 14px; width: 32px; height: 32px; color: #fbd78b; font-size: 20px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.muted-eyebrow { color: #9796a4; font-size: 9px; letter-spacing: 1.25px; }
.section-heading h2 { margin: 6px 0 0; font: 750 22px "Manrope", sans-serif; letter-spacing: -.7px; }
.text-button { border: 0; padding: 6px 0; color: var(--purple); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.text-button span { padding-left: 3px; font-size: 14px; }
.tools-section { padding: 0 0 100px; }
.tools-heading { align-items: center; }
.heading-sparkle { margin-left: 4px; color: #906ff0; font-size: 17px; vertical-align: 2px; }
.sort-button { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 10px; border: 1px solid #e9e8ef; border-radius: 8px; background: white; color: #686776; cursor: pointer; font-size: 10px; font-weight: 600; }
.sort-button svg { width: 15px; height: 15px; fill: none; stroke: #858391; stroke-width: 1.7; stroke-linecap: round; }
.sort-chevron { color: #9998a4; font-size: 14px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; margin: 19px 0 16px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; padding: 8px 12px; border: 1px solid #e9e8ef; border-radius: 8px; color: #767583; background: white; cursor: pointer; font-size: 10px; font-weight: 600; transition: .15s; }
.filter-chip.active { border-color: #7860d3; color: white; background: #7860d3; }
.filter-chip span { margin-left: 4px; opacity: .75; }
.source-status { margin: 16px 0 -8px; color: #898795; font-size: 10px; }
.product-hunt-connect { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 17px 0 0; padding: 11px 12px; border: 1px solid #eeeef3; border-radius: 10px; background: #fff; }
.product-hunt-connect strong { color: #4e4d5c; font-size: 10px; }
.product-hunt-connect > a { color: #7756df; font-size: 10px; font-weight: 700; }
.product-hunt-connect .source-note { flex-basis: 100%; color: #898795; font-size: 9px; }
.product-hunt-connect .product-hunt-attribution { margin-left: auto; }
.product-hunt-status { min-height: 12px; margin: 7px 0 0; color: #898795; font-size: 10px; }
.refresh-button { display: flex; align-items: center; gap: 5px; margin-left: auto; padding: 7px 10px; border: 1px solid #e9e8ef; border-radius: 8px; color: #686776; background: white; cursor: pointer; font-size: 10px; font-weight: 600; }
.refresh-button span:first-child { color: #7756df; font-size: 15px; line-height: 10px; }
.refresh-button:disabled { cursor: wait; opacity: .55; }
.loading-state { min-height: 190px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #858492; font-size: 12px; }
.loading-state[hidden] { display: none; }
.loading-spinner { width: 18px; height: 18px; border: 2px solid #e8e3f8; border-top-color: #7958e4; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; min-width: 0; padding: 17px; border: 1px solid #eeeef3; border-radius: 14px; background: white; transition: transform .18s, box-shadow .18s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #29204b0d; }
.card-topline { display: flex; justify-content: space-between; align-items: flex-start; }
.tool-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tool-logo { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px; font: 800 17px "Manrope", sans-serif; }
.tool-title { overflow: hidden; margin: 0; color: #292835; font: 700 13px "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.tool-maker { margin: 3px 0 0; color: #9a99a6; font-size: 10px; }
.save-button { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border: 1px solid #efeff4; border-radius: 9px; color: #92919e; background: white; cursor: pointer; font-size: 17px; transition: .15s; }
.save-button:hover, .save-button.saved { border-color: #e6dfff; color: #7958e4; background: #f4f0ff; }
.tool-description { min-height: 39px; margin: 14px 0 13px; color: #777684; font-size: 11px; line-height: 1.65; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid #f1f0f5; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.tag { padding: 4px 7px; border-radius: 5px; color: #777583; background: #f5f4f8; font-size: 9px; font-weight: 600; }
.tool-link { flex: none; color: #7756df; font-size: 10px; font-weight: 700; }
.tool-link:hover { color: #5334c2; }
.tool-badge { position: absolute; top: -8px; right: 47px; padding: 4px 7px; border-radius: 5px; color: #7653df; background: #f0ebff; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.tool-badge.hot { color: #d56c4d; background: #fff0e9; }
.empty-state { padding: 50px 15px; text-align: center; }
.empty-state[hidden], .tool-grid[hidden] { display: none; }
.empty-icon { color: #8b70e4; font-size: 31px; }
.empty-state h3 { margin: 10px 0 5px; font: 700 16px "Manrope", sans-serif; }
.empty-state p { margin: 0 0 10px; color: #858492; font-size: 12px; }
.toast { position: fixed; z-index: 8; bottom: 88px; left: 50%; padding: 10px 15px; border-radius: 10px; color: white; background: #29263b; box-shadow: 0 8px 25px #0002; font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.bottom-nav { display: none; }

@media (min-width: 1440px) {
  .app-shell { padding-right: 104px; padding-left: 104px; }
}

@media (max-width: 980px) {
  .app-shell { padding: 0 5%; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { right: 5%; transform: translateY(-50%) scale(.85); }
}

@media (max-width: 620px) {
  body { background: #faf9fc; }
  .app-shell { padding: 0 17px; }
  .topbar { height: 64px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 10px; }
  .today-label { font-size: 0; }
  .live-dot { width: 8px; height: 8px; }
  .topbar-actions { gap: 13px; }
  .avatar { width: 31px; height: 31px; }
  .hero { min-height: 305px; align-items: flex-start; padding: 31px 22px 25px; border-radius: 20px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-top: 13px; font-size: 38px; letter-spacing: -1.8px; }
  .hero-description { max-width: 245px; margin-bottom: 18px; font-size: 11px; }
  .search-box { height: 45px; width: 100%; }
  .search-box input { font-size: 11px; }
  .hero-art { top: auto; right: 0; bottom: -75px; opacity: .52; transform: scale(.55); transform-origin: right bottom; }
  .section-heading h2 { font-size: 19px; }
  .muted-eyebrow { font-size: 8px; }
  .tools-section { padding-bottom: 105px; }
  .tools-heading { align-items: center; }
  .sort-button { min-height: 32px; gap: 5px; padding: 0 8px; font-size: 9px; }
  .filter-row { margin-top: 16px; margin-bottom: 14px; }
  .filter-chip { padding: 8px 10px; font-size: 9px; }
  .refresh-button { padding: 7px 8px; }
  .refresh-label { display: none; }
  .product-hunt-connect { align-items: flex-start; }
  .product-hunt-connect .product-hunt-attribution { margin-left: 0; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { padding: 14px; border-radius: 13px; }
  .tool-description { min-height: 0; margin: 12px 0; font-size: 11px; }
  .bottom-nav {
    position: fixed;
    z-index: 7;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 9px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #efedf3;
    background: #ffffffed;
    backdrop-filter: blur(16px);
  }
  .nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; color: #9b99a8; background: transparent; cursor: pointer; font-size: 9px; font-weight: 600; }
  .nav-item.selected { color: #7454dc; }
  .nav-icon { height: 21px; font: 23px/20px "DM Sans", sans-serif; }
  .nav-sparkle { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Product polish and responsive discovery controls */
:root {
  --ink: #201d2b;
  --muted: #777385;
  --purple: #7047e8;
  --purple-light: #f1edff;
  --line: #ebe8f2;
  --surface: #fff;
}

body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 2%, #eee8ff 0, transparent 24rem),
    #faf9fc;
}

.app-shell { width: min(100%, 1360px); padding: 0 clamp(20px, 6vw, 88px); }
.topbar { height: 76px; gap: 30px; }
.brand { font-size: 23px; }
.brand-mark { box-shadow: 0 5px 12px #7350df38; }
.desktop-nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.desktop-nav .nav-item { padding: 10px 14px; border: 0; border-radius: 9px; color: #777385; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; transition: color .18s, background .18s; }
.desktop-nav .nav-item:hover { color: var(--purple); background: #f1edff; }
.desktop-nav .nav-item.selected { color: var(--purple); background: #f1edff; }
.saved-count { color: inherit; font-size: 10px; }
.today-label { padding: 8px 12px; border: 1px solid #e8e3f1; border-radius: 999px; color: #615a70; background: #ffffffb8; font-size: 11px; }

.hero {
  min-height: 350px;
  padding: 48px clamp(28px, 6vw, 78px);
  border: 1px solid #383052;
  border-radius: 28px;
  background: linear-gradient(115deg, #211b38 4%, #30234e 65%, #4c3480 130%);
  box-shadow: 0 22px 55px #35245a20;
}
.hero::before { width: 520px; height: 520px; top: -360px; right: -40px; background: #9777ff; opacity: .32; }
.hero::after { width: 500px; height: 500px; right: 18%; bottom: -390px; background: #bd79fb; opacity: .2; }
.hero-copy { width: min(600px, 69%); }
.hero .eyebrow { color: #c9bbff; font-size: 10px; letter-spacing: 1.7px; }
.hero h1 { margin: 18px 0 12px; font-size: clamp(39px, 4.5vw, 58px); letter-spacing: -2.8px; }
.hero h1 span { color: #b6a0ff; }
.hero-description { max-width: 390px; margin-bottom: 21px; color: #d2cede; font-size: 13px; line-height: 1.65; }
.search-box { height: 54px; width: min(510px, 100%); gap: 12px; padding: 0 15px; border-color: #ffffff29; border-radius: 13px; background: #ffffff12; box-shadow: 0 8px 22px #130f2430; transition: border-color .2s, background .2s, box-shadow .2s; }
.search-box:focus-within { border-color: #b7a4ff; background: #ffffff1a; box-shadow: 0 0 0 3px #a78bfa28, 0 8px 22px #130f2430; }
.search-box svg { width: 19px; height: 19px; }
.search-box input { font-size: 12px; }
.search-box kbd { min-width: 23px; padding: 3px 6px; }
.search-clear { display: grid; width: 26px; height: 26px; flex: none; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #ded8f2; background: #ffffff18; cursor: pointer; font-size: 20px; line-height: 1; }
.search-clear:hover { color: white; background: #ffffff30; }
.search-clear[hidden] { display: none; }
.search-hint { margin: 9px 0 0 2px; color: #aaa2c0; font-size: 10px; }
.hero-art { right: 9%; transform: translateY(-50%) scale(1.06); }
.planet { border-radius: 32px; }

.section-heading { align-items: center; }
.muted-eyebrow { color: #8a8497; font-size: 9px; }
.section-heading h2 { margin-top: 7px; color: var(--ink); font-size: 24px; letter-spacing: -.8px; }
.text-button { padding: 9px 12px; border-radius: 8px; font-size: 11px; transition: background .18s; }
.text-button:hover { background: #f1edff; }
.text-button span { font-size: 13px; }
.tools-section { padding: 0 0 110px; }
.tools-heading { margin-bottom: 17px; }
.tools-heading .section-heading h2, .tools-heading h2 { font-size: 26px; }
.heading-sparkle { color: #805ce8; }
.sort-control { display: flex; align-items: center; gap: 8px; color: #8a8495; font-size: 10px; font-weight: 600; }
.sort-control select { min-height: 38px; padding: 0 31px 0 12px; border: 1px solid #e8e4ee; border-radius: 10px; color: #514c5d; background: white; cursor: pointer; font-size: 11px; font-weight: 600; }
.sort-control select:focus-visible { outline: 3px solid #bdaeff; outline-offset: 2px; }
.discovery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid #ece8f2; border-radius: 12px; background: #ffffffb8; }
.source-status { display: flex; align-items: center; gap: 8px; margin: 0; color: #6d6879; font-size: 10px; line-height: 1.5; }
.source-status .live-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px #e4f6ee; }
.source-credits { display: flex; align-items: center; gap: 7px; }
.source-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #eeeaf3; border-radius: 999px; color: #696476; background: white; font-size: 9px; font-weight: 600; }
.source-pill > span { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 5px; font-size: 10px; }
.ph-pill { color: #b44a35; transition: background .18s, border-color .18s; }
.ph-pill > span { color: white; background: #e95b42; font-size: 9px; font-weight: 800; }
.ph-pill:hover { border-color: #f0b9ad; background: #fff7f5; }
.source-details { margin: 8px 2px 0; color: #868091; font-size: 10px; }
.source-details summary { width: fit-content; cursor: pointer; list-style: none; }
.source-details summary::-webkit-details-marker { display: none; }
.source-details summary span { margin-left: 3px; color: #7965ad; }
.source-details[open] summary span { display: inline-block; transform: rotate(180deg); }
.source-details p { margin: 8px 0 5px; line-height: 1.6; }
.source-details a { color: #7047e8; font-weight: 600; }
.product-hunt-status { min-height: 0; margin: 7px 0 0; color: #888293; font-size: 10px; }
.filter-row { align-items: center; gap: 8px; margin: 18px 0 8px; }
.filter-chip { padding: 9px 14px; border-color: #e9e5ee; border-radius: 999px; color: #6f6a7a; font-size: 10px; }
.filter-chip:hover:not(.active) { border-color: #d5cbf1; color: #6c4bd4; background: #fff; }
.filter-chip.active { border-color: #7550df; background: #7550df; box-shadow: 0 4px 10px #7550df2b; }
.refresh-button { min-height: 34px; padding: 7px 11px; border-color: #e9e5ee; border-radius: 999px; transition: background .18s, border-color .18s; }
.refresh-button:hover:not(:disabled) { border-color: #d5cbf1; background: #f7f4ff; }
.refresh-button span:first-child { font-size: 16px; }
.results-summary { margin: 14px 0 11px; color: #858091; font-size: 10px; }

.tool-grid { gap: 15px; }
.tool-card { display: flex; min-height: 206px; flex-direction: column; padding: 18px; border-color: #ece9f1; border-radius: 16px; box-shadow: 0 3px 12px #33234d06; }
.tool-card:hover { transform: translateY(-3px); border-color: #dcd3f3; box-shadow: 0 14px 28px #30204410; }
.tool-badge { position: static; align-self: flex-start; margin: 0 0 12px; padding: 5px 8px; border-radius: 999px; font-size: 8px; letter-spacing: .6px; }
.tool-badge.hot { color: #b85236; background: #fff0e9; }
.card-topline { align-items: center; }
.tool-brand { gap: 11px; }
.tool-logo { width: 44px; height: 44px; border: 1px solid #27202b0a; border-radius: 13px; box-shadow: inset 0 1px 0 #ffffff80; }
.tool-title { max-width: 200px; font-size: 14px; letter-spacing: -.2px; }
.tool-maker { color: #898495; font-size: 10px; }
.save-button { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
.save-button:hover { transform: scale(1.04); }
.save-button.saved { color: #e0527c; border-color: #f3d8e1; background: #fff3f6; }
.tool-description { display: -webkit-box; min-height: 0; overflow: hidden; margin: 15px 0; color: #716c7b; font-size: 11px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-meta { margin-top: auto; padding-top: 12px; border-color: #f0edf3; }
.tag { padding: 5px 8px; border-radius: 999px; color: #716c7b; background: #f6f4f8; font-size: 9px; }
.tool-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border-radius: 8px; background: #f5f1ff; cursor: pointer; font-size: 10px; touch-action: manipulation; transition: background .18s; }
.tool-link:hover { color: #5334c2; background: #ece5ff; }
.loading-state { min-height: 220px; }
.loading-spinner { width: 20px; height: 20px; }
.empty-state { margin: 18px 0; padding: 48px 16px; border: 1px dashed #dcd6e7; border-radius: 16px; background: #ffffffa8; }
.empty-state h3 { color: var(--ink); }
.empty-state p { line-height: 1.6; }
.toast { bottom: 28px; padding: 12px 17px; border: 1px solid #ffffff20; border-radius: 12px; font-size: 12px; }

button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b9a8ff; outline-offset: 3px; }

@media (max-width: 980px) {
  .app-shell { padding-right: 5%; padding-left: 5%; }
  .hero-art { right: 3%; transform: translateY(-50%) scale(.84); }
  .tool-grid { gap: 12px; }
}

@media (max-width: 620px) {
  body { background: #faf9fc; }
  .app-shell { padding: 0 17px; }
  .topbar { height: 62px; }
  .desktop-nav { display: none; }
  .topbar-actions { gap: 8px; }
  .today-label { padding: 7px 9px; font-size: 9px; }
  .today-label .live-dot { width: 6px; height: 6px; }
  .hero { min-height: 326px; padding: 29px 21px 24px; border-radius: 21px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin: 15px 0 10px; font-size: 40px; letter-spacing: -2px; }
  .hero-description { max-width: 290px; margin-bottom: 17px; font-size: 11px; }
  .search-box { height: 48px; }
  .search-box input { font-size: 11px; }
  .search-hint { max-width: 245px; font-size: 9px; }
  .hero-art { right: -2px; bottom: -89px; opacity: .36; transform: scale(.52); transform-origin: right bottom; }
  .section-heading h2 { font-size: 21px; }
  .tools-section { padding-bottom: 105px; }
  .tools-heading { align-items: flex-end; margin-bottom: 14px; }
  .tools-heading h2 { font-size: 21px; }
  .sort-control { flex-direction: column; align-items: flex-end; gap: 3px; font-size: 9px; }
  .sort-control select { min-height: 34px; padding-right: 25px; font-size: 9px; }
  .discovery-bar { align-items: flex-start; gap: 9px; padding: 11px; }
  .source-status { font-size: 9px; }
  .source-credits { flex-wrap: wrap; gap: 5px; }
  .source-pill { padding: 5px 7px; font-size: 8px; }
  .source-details { font-size: 9px; }
  .filter-row { gap: 6px; margin-top: 15px; }
  .filter-chip { padding: 8px 11px; font-size: 9px; }
  .refresh-button { min-height: 31px; padding: 6px 8px; }
  .refresh-label { display: none; }
  .results-summary { margin-top: 12px; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { min-height: 0; padding: 15px; border-radius: 14px; }
  .tool-description { margin: 12px 0; }
  .bottom-nav { padding-top: 9px; background: #ffffffed; }
  .nav-item { font-size: 9px; }
  .toast { bottom: 82px; }
}

@media (max-width: 620px) {
  body { min-width: 320px; }
  .app-shell { padding: 0 16px; }
  .topbar { height: 58px; }
  .brand { gap: 7px; font-size: 21px; }
  .brand-mark { width: 28px; height: 28px; }
  .today-label { padding: 6px 8px; font-size: 8px; }

  .hero {
    min-height: 0;
    padding: 25px 19px 21px;
    border-radius: 19px;
  }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .hero h1 { max-width: 310px; margin: 13px 0 8px; font-size: clamp(34px, 10vw, 40px); line-height: 1.07; }
  .hero-description { max-width: 260px; margin-bottom: 15px; font-size: 10px; line-height: 1.55; }
  .search-box { position: relative; z-index: 2; height: 48px; gap: 9px; padding: 0 11px; border-radius: 12px; }
  .search-box input { font-size: 11px; }
  .search-box kbd { display: none; }
  .search-clear { width: 30px; height: 30px; }
  .search-hint { position: relative; z-index: 2; max-width: 230px; margin-top: 8px; font-size: 8px; }
  .hero-art { right: -28px; bottom: -119px; opacity: .2; transform: scale(.48); }

  .muted-eyebrow { font-size: 7px; letter-spacing: 1px; }
  .section-heading h2 { margin-top: 5px; font-size: 19px; }
  .tools-section { padding-bottom: 105px; }
  .tools-heading { align-items: center; gap: 8px; margin-bottom: 12px; }
  .tools-heading h2 { font-size: 20px; letter-spacing: -.7px; }
  .sort-control { flex: none; gap: 0; }
  .sort-control > span { display: none; }
  .sort-control select { min-height: 34px; max-width: 122px; padding: 0 24px 0 9px; border-radius: 9px; font-size: 9px; }
  .discovery-bar { align-items: center; gap: 7px; padding: 9px 10px; border-radius: 11px; }
  .source-status { flex: 1 1 130px; font-size: 8px; line-height: 1.4; }
  .source-credits { flex: none; gap: 4px; }
  .source-pill { gap: 4px; padding: 5px 6px; font-size: 7px; }
  .source-pill > span { width: 13px; height: 13px; font-size: 8px; }
  .source-details { margin: 7px 1px 0; font-size: 8px; }
  .source-details p { max-width: 40ch; }
  .filter-row {
    position: relative;
    gap: 7px;
    margin: 13px -16px 0;
    padding: 2px 16px 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { min-height: 36px; padding: 8px 12px; font-size: 9px; scroll-snap-align: start; }
  .refresh-button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; justify-content: center; padding: 0; }
  .refresh-button span:first-child { font-size: 17px; }
  .results-summary { margin: 10px 0 9px; font-size: 9px; }
  .tool-grid { gap: 9px; }
  .tool-card { min-height: 0; padding: 14px; border-radius: 13px; }
  .tool-badge { margin-bottom: 9px; }
  .tool-logo { width: 40px; height: 40px; border-radius: 12px; }
  .tool-title { max-width: min(58vw, 240px); font-size: 13px; }
  .save-button { width: 38px; height: 38px; border-radius: 12px; }
  .tool-description { margin: 10px 0 12px; font-size: 10px; line-height: 1.6; }
  .card-meta { gap: 6px; padding-top: 10px; }
  .tag-list { gap: 4px; }
  .tag { padding: 5px 7px; font-size: 8px; }
  .tool-link { min-height: 34px; padding: 8px 9px; font-size: 9px; }

  .bottom-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px 13px max(9px, env(safe-area-inset-bottom));
    box-shadow: 0 -5px 22px #3020440a;
  }
  .nav-item { min-height: 45px; justify-content: center; gap: 3px; border-radius: 11px; font-size: 9px; }
  .nav-item.selected { background: #f5f1ff; }
  .nav-icon { height: 20px; font-size: 21px; }
  .toast { right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 16px; width: fit-content; max-width: calc(100vw - 32px); margin: auto; text-align: center; transform: translateY(8px); }
  .toast.show { transform: translateY(0); }
}

@media (max-width: 380px) {
  .app-shell { padding-right: 13px; padding-left: 13px; }
  .hero { padding-right: 16px; padding-left: 16px; }
  .filter-row { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
  .source-status { flex-basis: 115px; }
  .source-pill { font-size: 0; }
  .source-pill > span { width: 16px; height: 16px; font-size: 9px; }
  .tools-heading h2 { font-size: 18px; }
  .sort-control select { max-width: 112px; }
}
