:root {
  color-scheme: light;
  --ink: #132f2e;
  --ink-soft: #435d59;
  --paper: #f4f1e8;
  --paper-deep: #e9e4d8;
  --card: rgba(255, 254, 249, 0.88);
  --line: rgba(19, 47, 46, 0.14);
  --line-strong: rgba(19, 47, 46, 0.28);
  --teal: #0e6861;
  --teal-deep: #084c48;
  --lime: #c7e86c;
  --orange: #ea7c4c;
  --blue: #5c7fb7;
  --shadow: 0 22px 65px rgba(25, 50, 46, 0.11);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(19, 47, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 47, 46, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(14, 104, 97, 0.28);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--teal-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.page-glow-one {
  top: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(199, 232, 108, 0.48), rgba(199, 232, 108, 0));
}

.page-glow-two {
  top: 620px;
  left: -320px;
  background: radial-gradient(circle, rgba(92, 127, 183, 0.2), rgba(92, 127, 183, 0));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.brand-mark span {
  position: absolute;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.brand-mark span:nth-child(1) {
  transform: translate(-8px, 6px);
}

.brand-mark span:nth-child(2) {
  transform: translate(2px, -7px);
  background: var(--orange);
}

.brand-mark span:nth-child(3) {
  transform: translate(9px, 8px);
  background: var(--lime);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 20px;
  height: 1px;
  content: "";
  background: var(--teal);
  transform: rotate(-48deg);
}

.brand-mark::after {
  transform: translate(4px, 6px) rotate(25deg);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-copy strong {
  font-family: "Songti SC", SimSun, serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(14, 104, 97, 0.1);
}

.quiet-button,
.text-button,
#toggle-sources-button {
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.quiet-button {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.82rem;
}

main {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  min-height: 650px;
  padding: 78px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-line {
  width: 56px;
  height: 1px;
  background: var(--teal);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-intro {
  max-width: 550px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.search-console {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(19, 47, 46, 0.12);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-console::before {
  position: absolute;
  z-index: -1;
  right: 22px;
  bottom: -18px;
  width: 120px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 104, 97, 0.18);
  filter: blur(22px);
  content: "";
}

.search-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 9px 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fffef9;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-bar:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(14, 104, 97, 0.08);
}

.search-symbol {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.8px solid var(--ink-soft);
  border-radius: 50%;
}

.search-symbol::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1.8px;
  background: var(--ink-soft);
  content: "";
  transform: rotate(47deg);
}

.search-bar input {
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.search-bar input::placeholder {
  color: #899995;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 148px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--teal-deep);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.search-button:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.search-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.search-help {
  margin: 10px 4px 0;
  color: #6d7f7b;
  font-size: 0.72rem;
}

.source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 2px 12px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#toggle-sources-button {
  font-size: 0.74rem;
  letter-spacing: 0;
  cursor: pointer;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.source-option {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.source-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.source-option:has(input:checked) {
  border-color: rgba(14, 104, 97, 0.32);
  background: rgba(227, 239, 219, 0.5);
}

.source-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.source-check {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fffef9;
}

.source-option input:focus-visible + .source-check {
  outline: 3px solid rgba(14, 104, 97, 0.22);
  outline-offset: 2px;
}

.source-option input:checked + .source-check {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 3px #fffef9;
}

.source-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: white;
  background: var(--teal);
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.source-icon-wikipedia {
  background: #425b58;
  font-size: 1rem;
}

.source-icon-github {
  background: #1f2c2c;
}

.source-icon-openalex {
  color: #163436;
  background: var(--lime);
}

.source-icon-hackernews {
  background: var(--orange);
}

.source-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.source-copy strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #748682;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-status {
  grid-column: 2 / -1;
  width: fit-content;
  padding: 1px 7px;
  border-radius: 999px;
  color: #70817e;
  background: rgba(19, 47, 46, 0.06);
  font-size: 0.61rem;
}

.source-status[data-state="loading"] {
  color: var(--teal-deep);
  background: rgba(199, 232, 108, 0.45);
}

.source-status[data-state="success"] {
  color: white;
  background: var(--teal);
}

.source-status[data-state="error"] {
  color: #86391f;
  background: rgba(234, 124, 76, 0.22);
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #748682;
  font-size: 0.69rem;
}

.suggestions button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.suggestions button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding: 54px 0 88px;
  border-top: 1px solid var(--line);
}

.results-panel,
.library-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 249, 0.66);
}

.results-panel {
  min-height: 660px;
  padding: clamp(24px, 3vw, 38px);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 3px;
}

.section-header h2 {
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
}

.result-summary {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: right;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
}

.filter-bar[hidden] {
  display: none;
}

.filter-button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.72rem;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--teal-deep);
  color: white;
  background: var(--teal-deep);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 60px 20px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-visual::before,
.empty-visual::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 1px;
  background: var(--line-strong);
  content: "";
  transform: translate(-50%, -50%) rotate(32deg);
}

.empty-visual::after {
  transform: translate(-50%, -50%) rotate(-38deg);
}

.empty-visual span {
  position: absolute;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--paper);
}

.empty-visual span:nth-child(1) { top: 21px; left: 26px; }
.empty-visual span:nth-child(2) { top: 28px; right: 22px; background: var(--orange); }
.empty-visual span:nth-child(3) { right: 29px; bottom: 20px; background: var(--lime); }
.empty-visual span:nth-child(4) { bottom: 27px; left: 18px; background: var(--blue); }

.empty-state h3 {
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.empty-state p {
  max-width: 420px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.loading-list {
  display: grid;
  gap: 12px;
  padding-top: 22px;
}

.loading-list[hidden] {
  display: none;
}

.loading-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.48);
}

.loading-card span {
  display: block;
  height: 12px;
  margin: 11px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 47, 46, 0.06), rgba(19, 47, 46, 0.13), rgba(19, 47, 46, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.loading-card span:nth-child(1) { width: 24%; }
.loading-card span:nth-child(2) { width: 74%; height: 18px; }
.loading-card span:nth-child(3) { width: 92%; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.results-list {
  display: grid;
  gap: 12px;
  padding-top: 22px;
}

.result-card {
  position: relative;
  padding: 22px 22px 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.result-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--source-color, var(--teal));
  content: "";
}

.result-card:hover {
  border-color: rgba(14, 104, 97, 0.28);
  box-shadow: 0 12px 30px rgba(19, 47, 46, 0.07);
  transform: translateY(-2px);
}

.result-topline,
.result-actions,
.result-meta {
  display: flex;
  align-items: center;
}

.result-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.result-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-source::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--source-color, var(--teal));
  content: "";
}

.result-actions {
  gap: 6px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button.is-active {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: rgba(199, 232, 108, 0.25);
}

.result-title {
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.45;
}

.result-title a {
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.result-title a:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.result-description {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.result-meta {
  flex-wrap: wrap;
  gap: 7px;
}

.meta-pill {
  padding: 3px 8px;
  border-radius: 7px;
  color: #627470;
  background: rgba(19, 47, 46, 0.055);
  font-size: 0.65rem;
}

.no-results {
  padding: 70px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.no-results strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: 1.3rem;
}

.library-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.library-card {
  padding: 20px;
}

.library-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.library-card > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.library-card h2 {
  margin: 0;
  font-size: 0.92rem;
}

.library-index {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 0.68rem;
  font-style: italic;
}

.text-button {
  font-size: 0.69rem;
  cursor: pointer;
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 999px;
  color: white;
  background: var(--teal);
  font-size: 0.63rem;
}

.mini-list {
  display: grid;
  gap: 4px;
  max-height: 292px;
  padding-top: 10px;
  overflow: auto;
}

.mini-empty {
  padding: 20px 4px 10px;
  color: #80908d;
  font-size: 0.73rem;
  text-align: center;
}

.history-item,
.favorite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--line);
}

.history-item:last-child,
.favorite-item:last-child {
  border-bottom: 0;
}

.history-query {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.76rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.history-item small,
.favorite-item small {
  display: block;
  margin-top: 3px;
  color: #81918e;
  font-size: 0.61rem;
}

.history-arrow {
  color: var(--teal);
  font-size: 0.78rem;
}

.favorite-link {
  display: block;
  overflow: hidden;
  font-size: 0.74rem;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-link:hover {
  color: var(--teal);
}

.remove-favorite {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #82918f;
  background: rgba(19, 47, 46, 0.05);
  cursor: pointer;
}

.clear-favorites-button {
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.7rem;
  cursor: pointer;
}

.clear-favorites-button:disabled,
.text-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.privacy-card {
  display: flex;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(14, 104, 97, 0.2);
  border-radius: 18px;
  background: rgba(211, 232, 200, 0.42);
}

.privacy-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
}

.privacy-card strong {
  font-size: 0.76rem;
}

.privacy-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  background: var(--teal-deep);
  box-shadow: 0 14px 36px rgba(19, 47, 46, 0.24);
  font-size: 0.76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 68px 0;
  }

  .hero-copy {
    max-width: 850px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .library-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    padding: 17px 0;
  }

  .brand-copy small,
  .header-note {
    display: none;
  }

  .quiet-button {
    font-size: 0.7rem;
  }

  .hero {
    gap: 34px;
    padding: 50px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.3rem);
  }

  .hero-intro {
    margin-top: 22px;
  }

  .search-console {
    padding: 18px;
    border-radius: 22px;
  }

  .search-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .suggestions {
    display: none;
  }

  .workspace {
    padding-top: 36px;
  }

  .results-panel {
    padding: 20px 16px;
  }

  .section-header {
    display: block;
  }

  .result-summary {
    margin-top: 10px;
    text-align: left;
  }

  .result-card {
    padding: 18px 16px 16px;
  }

  .library-panel {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
  }
}

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