:root {
  color-scheme: dark;
  --page: #0a0b10;
  --surface: #14161e;
  --surface-elevated: #1a1d28;
  --surface-soft: #14161e;
  --line: #1e2233;
  --text: #c0d0e8;
  --text-secondary: #6b7a94;
  --text-muted: #3d4560;
  --accent: #33ccff;
  --accent-gradient: linear-gradient(135deg, #33ccff, #00ff99);
  --active-shadow: 0 4px 16px rgba(51, 204, 255, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}

body[data-theme="light"] {
  color-scheme: light;
  --page: #fafafa;
  --surface: #f5f6f8;
  --surface-soft: #f3f3f3;
  --line: #d9d9d9;
  --text: #1a1a1e;
  --text-secondary: #5f5f5f;
  --text-muted: #7a7a7a;
  --accent: #e8c547;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --page: #1a1a1e;
  --surface: #242428;
  --surface-soft: #1f1f23;
  --line: #333333;
  --text: #e0e0e0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #e8c547;
}

body[data-theme="hyprland"] {
  color-scheme: dark;
  --page: #0a0b10;
  --surface: #14161e;
  --surface-elevated: #1a1d28;
  --surface-soft: #14161e;
  --line: #1e2233;
  --text: #c0d0e8;
  --text-secondary: #6b7a94;
  --text-muted: #3d4560;
  --accent: #33ccff;
  --accent-gradient: linear-gradient(135deg, #33ccff, #00ff99);
  --active-shadow: 0 4px 16px rgba(51, 204, 255, 0.08);
}

html {
  background: var(--page);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background 120ms ease-out, color 120ms ease-out;
}

body[data-reduce-motion="true"] *,
body[data-reduce-motion="true"] *::before,
body[data-reduce-motion="true"] *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  min-height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.brand {
  display: none;
}

.about-link {
  color: #3c4043;
  font-size: 13px;
}

.about-link:hover {
  text-decoration: underline;
}

.download-menu {
  position: relative;
}

.download-button {
  padding: 8px 12px;
  border: 1px solid #dadce0;
  border-radius: 5px;
  color: #3c4043;
  font-size: 13px;
  list-style: none;
  cursor: pointer;
}

.download-button::-webkit-details-marker {
  display: none;
}

.download-button::after {
  content: "";
  display: inline-block;
  margin: 0 0 3px 8px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.download-menu[open] .download-button::after {
  margin-bottom: 0;
  transform: rotate(225deg);
}

.download-button:hover {
  background: #f8f9fa;
}

body[data-theme="dark"] .download-button,
body[data-theme="dark"] .download-options,
body[data-theme="dark"] .search-form,
body[data-theme="dark"] .address-form,
body[data-theme="dark"] .app-tab.is-active,
body[data-theme="dark"] .tab-close,
body[data-theme="dark"] .web-frame,
body[data-theme="dark"] .about-card,
body[data-theme="dark"] .results-section,
body[data-theme="dark"] .state-card,
body[data-theme="dark"] .history-query:hover,
body[data-theme="dark"] .download-options a:hover,
body[data-theme="dark"] .submit-button:hover,
body[data-theme="dark"] .clear-button:hover {
  background: var(--surface-soft);
}

body[data-theme="dark"] .topbar,
body[data-theme="dark"] .app-tabs,
body[data-theme="dark"] .footer,
body[data-theme="dark"] .download-options,
body[data-theme="dark"] .search-form,
body[data-theme="dark"] .address-form,
body[data-theme="dark"] .web-frame,
body[data-theme="dark"] .settings-menu,
body[data-theme="dark"] .about-card {
  border-color: var(--line);
}

body[data-theme="dark"] .app-tabs {
  background: var(--surface-soft);
}

body[data-theme="dark"] .app-tab {
  color: var(--muted);
}

body[data-theme="dark"] .app-tab:hover {
  background: var(--surface-strong);
}

body[data-theme="dark"] .app-tab.is-active {
  background: var(--surface);
  color: var(--ink);
}

body[data-theme="dark"] .search-form,
body[data-theme="dark"] .address-form,
body[data-theme="dark"] .download-options,
body[data-theme="dark"] .settings-menu,
body[data-theme="dark"] .web-frame,
body[data-theme="dark"] .about-card {
  background: var(--surface);
}

body[data-theme="dark"] .download-button,
body[data-theme="dark"] .submit-button,
body[data-theme="dark"] .clear-button,
body[data-theme="dark"] .tab-close,
body[data-theme="dark"] .history-query,
body[data-theme="dark"] .settings-button {
  color: var(--ink);
}

body[data-theme="dark"] .download-button:hover,
body[data-theme="dark"] .submit-button:hover,
body[data-theme="dark"] .clear-button:hover,
body[data-theme="dark"] .history-query:hover,
body[data-theme="dark"] .settings-button:hover,
body[data-theme="dark"] .settings-button:focus-visible {
  background: var(--surface-strong);
}

body[data-theme="dark"] .search-form input,
body[data-theme="dark"] .address-form input,
body[data-theme="dark"] .download-options a,
body[data-theme="dark"] .settings-option,
body[data-theme="dark"] .history-query {
  color: var(--ink);
}

body[data-theme="dark"] .download-options a {
  background: transparent;
}

body[data-theme="dark"] .footer {
  background: var(--surface-soft);
}

body[data-theme="dark"] .state-symbol {
  background: rgba(138, 180, 248, 0.15);
}

body[data-theme="dark"] .state-symbol.error {
  background: rgba(179, 38, 30, 0.12);
}

body[data-theme="dark"] .result-title {
  color: #8ab4f8;
}

body[data-reduce-motion="true"] *,
body[data-reduce-motion="true"] *::before,
body[data-reduce-motion="true"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.download-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #f5f6f8;
  box-shadow: 0 4px 12px rgba(60, 64, 67, 0.2);
}

.download-options a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  color: #3c4043;
  font-size: 13px;
  white-space: nowrap;
}

.download-options a:hover {
  background: #f1f3f4;
}

.settings-wrap {
  position: relative;
}

.settings-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out;
}

.settings-button:hover,
.settings-button:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}

.settings-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.settings-panel[hidden] {
  display: none !important;
}

.settings-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.settings-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-row {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.settings-row input,
.settings-row select {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 8px;
}

.settings-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  justify-self: start;
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-clear-session {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

main {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.app-tabs {
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--page);
  height: 36px;
}

.app-tablist {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 0 8px;
  scrollbar-width: thin;
}

.new-tab-button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.new-tab-button:hover,
.new-tab-button:focus-visible {
  color: var(--text);
}

.app-tab-wrap {
  flex: 0 1 auto;
  min-width: 92px;
  max-width: 200px;
  display: flex;
  align-items: stretch;
  height: 36px;
}

.app-tab-wrap[data-pinned="true"] {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
}

.tab-open {
  animation: tab-open 200ms ease-out both;
}

.tab-closing {
  animation: tab-close 200ms ease-out both;
  transform-origin: left center;
}

@keyframes tab-open {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

@keyframes tab-close {
  from { transform: scale(1); }
  to { transform: scale(0.95); }
}

.app-tab {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background 120ms ease-out;
}

.app-tab:hover {
  background: var(--surface);
}

.app-tab.is-active {
  border-color: var(--line);
  border-top: 2px solid var(--accent);
  border-bottom: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 0 0 var(--radius) var(--radius);
}

.tab-favicon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 8px;
  line-height: 1;
}

.search-favicon {
  color: var(--accent);
}

.tab-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  margin: 11px 6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: color 120ms ease-out;
}

.app-tab-wrap:has(.app-tab.is-active) .tab-close,
.app-tab-wrap:hover .tab-close {
  opacity: 1;
}

.app-tab-wrap[data-pinned="true"] .tab-close {
  display: none;
}

.tab-close:hover,
.tab-close:focus-visible {
  color: var(--text);
}

.web-workspace {
  width: 100%;
  margin: 0;
}

.web-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 0;
  background: var(--page);
}

.browser-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-nav-button {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease-out;
}

.browser-nav-button:hover:not(:disabled),
.browser-nav-button:focus-visible:not(:disabled) {
  color: var(--text);
}

.browser-nav-button:disabled {
  color: var(--line);
  cursor: default;
}

.browser-home {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-height: 480px;
  padding: 32px 32px 0;
  background: var(--page);
}

.browser-home-search {
  width: 100%;
}

.browser-home-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.browser-home-search input::placeholder {
  color: var(--text-secondary);
}

.browser-home-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.browser-home-label {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.browser-home-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.browser-home-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.browser-home-favicon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  flex: 0 0 auto;
}

.browser-home-item-text {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}

.back-to-search {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #dadce0;
  border-radius: 18px;
  background: #f5f6f8;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.back-to-search:hover {
  background: #f8f9fa;
  border-color: #c4c7c5;
}

.web-address-form {
  flex: 1;
  width: auto;
  margin: 0;
  border-radius: 22px;
}

.web-open-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.external-link {
  color: #1a73e8;
  font-size: 12px;
  white-space: nowrap;
}

.external-link:hover {
  text-decoration: underline;
}

.web-message {
  margin: 10px 2px;
  color: #70757a;
  font-size: 12px;
  line-height: 1.5;
}

.web-message[data-error="true"] {
  color: #b3261e;
}

.web-frames {
  min-height: min(72vh, 800px);
}

.web-frame {
  width: 100%;
  height: min(72vh, 800px);
  min-height: 480px;
  display: block;
  border: 1px solid #dadce0;
  border-radius: 7px;
  background: #f5f6f8;
}

.web-frame[hidden] {
  display: none;
}

.hero {
  min-height: 354px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  margin: 0;
  padding: 25px 0 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-content {
  z-index: 1;
  width: min(100%, 584px);
  text-align: center;
}

.home-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: fit-content;
  margin: 0 auto;
  color: #4285f4;
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1;
}

.home-brand img {
  width: 82px;
  height: 61px;
  object-fit: contain;
}

.home-brand span {
  color: #4285f4;
}

.home-brand strong {
  color: #c10000;
  font-weight: 500;
}

.intro {
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.search-form {
  height: 46px;
  width: min(100%, 584px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f5f6f8;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.14);
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

.search-form:hover,
.search-form:focus-within {
  border-color: transparent;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.search-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #9aa0a6;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-form input {
  flex: 1;
  width: 0;
  height: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.search-form input::placeholder {
  color: #80868b;
  opacity: 1;
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.clear-button {
  flex: 0 0 auto;
  width: 32px;
  height: 34px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #70757a;
  cursor: pointer;
}

.clear-button:hover {
  background: #f1f3f4;
}

.clear-button svg,
.submit-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button {
  height: 36px;
  flex: 0 0 auto;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.submit-button:hover {
  background: #f1f3f4;
}

.submit-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.submit-button svg {
  position: static;
  width: 18px;
  height: 18px;
}

.address-form {
  height: 42px;
  width: min(100%, 520px);
  margin: 15px auto 0;
  padding: 0 8px 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dadce0;
  border-radius: 5px;
  background: #f5f6f8;
}

.address-form:focus-within {
  border-color: #a8c7fa;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.15);
}

.address-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #70757a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.address-form input {
  flex: 1;
  width: 0;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202124;
  font-size: 13px;
}

.address-form input::placeholder {
  color: #80868b;
}

.address-go {
  flex: 0 0 auto;
  min-width: 44px;
  height: 29px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 12px;
  cursor: pointer;
}

.address-go:hover {
  background: #e8eaed;
}

.address-error {
  width: min(100%, 520px);
  margin: 7px auto 0;
  color: #b3261e;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.address-status {
  width: min(100%, 520px);
  margin: 7px auto 0;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.address-status a {
  color: var(--blue);
}

.address-status a:hover {
  text-decoration: underline;
}

.search-history {
  width: min(100%, 584px);
  margin: 9px auto 0;
  padding: 11px 0 5px;
  text-align: left;
}

.history-heading {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #70757a;
  font-size: 13px;
}

.clear-history {
  padding: 5px 0 5px 10px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
}

.clear-history:hover {
  text-decoration: underline;
}

.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-query {
  position: relative;
  width: 100%;
  min-height: 34px;
  padding: 7px 14px 7px 38px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #3c4043;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.history-query::before {
  position: absolute;
  top: 50%;
  left: 14px;
  margin: 0;
  transform: translateY(-50%);
  color: #9aa0a6;
  content: "\21ba";
  font-size: 15px;
}

.history-query:hover {
  background: #f1f3f4;
}

.history-notice {
  margin: 9px 14px 5px;
  color: #b3261e;
  font-size: 12px;
  line-height: 1.5;
}

.results-section {
  width: min(100%, 652px);
  margin: 12px auto 48px;
  scroll-margin-top: 18px;
}

.results-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 19px;
}

.section-kicker {
  margin: 0;
  color: #70757a;
  font-size: 12px;
}

.results-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.result-source {
  margin: 0;
  color: #70757a;
  font-size: 12px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.source-group + .source-group {
  margin-top: 30px;
}

.source-heading {
  margin: 0 0 14px;
  color: #202124;
  font-size: 16px;
  font-weight: 500;
}

.result-card {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.result-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #202124;
  font-size: 12px;
}

.wiki-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dadce0;
  border-radius: 50%;
  background: white;
  color: #5f6368;
  font-family: Georgia, serif;
  font-size: 14px;
}

.source-mark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.result-title {
  display: inline-block;
  color: #1a0dab;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.result-title:hover {
  text-decoration: underline;
  text-underline-offset: 1px;
}

.result-description {
  margin: 3px 0 0;
  color: #4d5156;
  font-size: 14px;
  line-height: 1.5;
}

.result-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: #4d5156;
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.result-card mark {
  border-radius: 2px;
  background: #fff2b2;
  color: inherit;
}

.state-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.state-card p {
  margin: 0;
  line-height: 1.6;
}

.state-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 15px;
}

.state-symbol {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f0fe;
  color: var(--blue);
  font-size: 16px;
}

.state-symbol.error {
  background: #fce8e6;
  color: #b3261e;
}

.spinner {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #e8eaed;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.about {
  margin: 0 auto 42px;
  padding: 0;
  color: #70757a;
  font-size: 12px;
  text-align: center;
}

.about p {
  margin: 0;
}

.about .version-label {
  color: #1a73e8;
}

.footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(24px, calc((100vw - 1200px) / 2));
  border-top: 1px solid #dadce0;
  background: #f2f2f2;
  color: #70757a;
  font-size: 12px;
}

.footer p {
  margin: 0;
}

.footer-brand {
  color: #5f6368;
  font-size: 12px;
}

.footer a:last-child {
  color: #5f6368;
}

.footer a:hover {
  text-decoration: underline;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .app-tabs {
    margin-right: -20px;
    margin-left: -20px;
  }

  .topbar {
    min-height: 52px;
    padding: 0 18px;
  }

  .about-link {
    font-size: 12px;
  }

  .download-button {
    padding: 7px 9px;
    font-size: 12px;
  }

  .topbar {
    gap: 14px;
  }

  main {
    padding: 0 20px;
  }

  .hero {
    min-height: 287px;
    padding-top: 47px;
  }

  .home-brand {
    font-size: clamp(38px, 12vw, 48px);
  }

  .home-brand img {
    width: 72px;
    height: 54px;
  }

  .intro {
    margin: 13px 0 21px;
    font-size: 13px;
  }

  .search-form {
    height: 46px;
    padding: 0 11px;
  }

  .address-form {
    width: 100%;
    margin-top: 13px;
  }

  .web-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .back-to-search {
    flex: 0 0 auto;
    order: 0;
  }

  .web-address-form {
    flex: 1 0 100%;
    order: 1;
  }

  .external-link {
    order: 1;
  }

  .web-open-actions {
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 14px;
    order: 2;
  }

  .web-frame {
    height: 70vh;
    min-height: 400px;
  }

  .search-form input {
    padding: 0 9px;
    font-size: 14px;
  }

  .results-section {
    margin-top: 9px;
  }

  .result-list {
    gap: 23px;
  }

  .result-title {
    font-size: 18px;
  }

  .result-description,
  .result-excerpt {
    font-size: 13px;
  }

  .about {
    margin-bottom: 27px;
    line-height: 1.6;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    padding: 12px 16px;
    text-align: center;
  }

  .footer p {
    flex: 1 0 100%;
    order: 1;
  }
}

@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;
  }
}

.about-page {
  background: #fafbfc;
}

.about-page .topbar {
  justify-content: space-between;
  border-bottom: 1px solid #edf0f3;
  background: rgba(255, 255, 255, 0.96);
}

.about-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #4285f4;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.about-page .brand img {
  width: 45px;
  height: 36px;
  object-fit: contain;
}

.about-page .brand strong {
  color: #ea4335;
  font-weight: 500;
}

.about-page .about-link {
  color: var(--blue);
}

.about-main {
  flex: 1;
  width: min(100%, 820px);
  padding: 38px 24px 64px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #70757a;
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--blue);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.about-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.about-eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.about-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.25;
  text-shadow: none;
}

.about-lede {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.about-card {
  padding: 28px 30px;
  border: 1px solid #e1e5eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.about-view {
  display: grid;
  gap: 22px;
}

.about-field {
  padding-bottom: 8px;
}

.about-field + .about-field {
  border-top: 1px solid #eef1f4;
  padding-top: 22px;
}

.about-field h2 {
  margin: 0 0 8px;
  color: #3c4043;
  font-size: 16px;
  font-weight: 600;
}

.about-field p {
  margin: 0;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
}

.about-field a {
  color: var(--blue);
}

@media (max-width: 600px) {
  .about-page .topbar {
    min-height: 56px;
  }

  .about-page .brand {
    font-size: 12px;
  }

  .about-page .brand img {
    width: 40px;
    height: 33px;
  }

  .about-main {
    padding: 27px 20px 46px;
  }

  .breadcrumbs {
    margin-bottom: 26px;
  }

  .about-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 18px;
  }

  .about-card {
    padding: 21px 18px;
  }

  .about-view {
    gap: 21px;
  }
}

body[data-theme="hyprland"] {
  font-size: 13px;
  font-weight: 400;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

body[data-theme="hyprland"] .app-tabs {
  background: rgba(20, 22, 30, 0.92);
  border-bottom: 1px solid #1e2233;
}

body[data-theme="hyprland"] .app-tab {
  position: relative;
  border: 1px solid #1e2233;
  border-radius: 10px;
  background: #14161e;
  transition: background-color 200ms ease-out, color 200ms ease-out, transform 200ms ease-out;
}

body[data-theme="hyprland"] .app-tab:hover {
  background: #1a1d28;
}

body[data-theme="hyprland"] .app-tab.is-active {
  border-color: transparent;
  background: #1a1d28;
  box-shadow: 0 4px 16px rgba(51, 204, 255, 0.08);
  color: #c0d0e8;
}

body[data-theme="hyprland"] .app-tab.is-active::before {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 10px;
  background: linear-gradient(135deg, #33ccff, #00ff99);
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(rgba(1, 1, 1, 1) 0 0) content-box, linear-gradient(rgba(1, 1, 1, 1) 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

body[data-theme="hyprland"] .app-tab.is-active .tab-title {
  font-weight: 500;
}

body[data-theme="hyprland"] .tab-close,
body[data-theme="hyprland"] .tab-favicon {
  border-radius: 4px;
}

body[data-theme="hyprland"] .new-tab-button,
body[data-theme="hyprland"] .browser-nav-button,
body[data-theme="hyprland"] .settings-button {
  color: #33ccff;
  transition: color 200ms ease-out, background-color 200ms ease-out;
}

body[data-theme="hyprland"] .web-toolbar,
body[data-theme="hyprland"] .browser-home {
  background: #0a0b10;
}

body[data-theme="hyprland"] .search-form,
body[data-theme="hyprland"] .address-form,
body[data-theme="hyprland"] .web-address-form,
body[data-theme="hyprland"] .browser-home-search {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

body[data-theme="hyprland"] .search-form:hover,
body[data-theme="hyprland"] .search-form:focus-within,
body[data-theme="hyprland"] .address-form:focus-within {
  border-color: #1e2233;
  box-shadow: none;
}

body[data-theme="hyprland"] .search-icon,
body[data-theme="hyprland"] .address-icon,
body[data-theme="hyprland"] .clear-button,
body[data-theme="hyprland"] .submit-button {
  color: #33ccff;
  stroke: currentColor;
}

body[data-theme="hyprland"] .search-form input {
  font-size: 13px;
}

body[data-theme="hyprland"] .web-address-form input {
  font-size: 14px;
}

body[data-theme="hyprland"] .home-brand,
body[data-theme="hyprland"] .home-brand span,
body[data-theme="hyprland"] .intro {
  color: #c0d0e8;
}

body[data-theme="hyprland"] .address-go,
body[data-theme="hyprland"] .back-to-search,
body[data-theme="hyprland"] .settings-clear-session {
  border: 1px solid #1e2233;
  border-radius: 10px;
  background: #14161e;
  color: #c0d0e8;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

body[data-theme="hyprland"] .address-go:hover,
body[data-theme="hyprland"] .back-to-search:hover,
body[data-theme="hyprland"] .settings-clear-session:hover {
  background: #1a1d28;
}

body[data-theme="hyprland"] .settings-panel {
  border: 1px solid #1e2233;
  border-radius: 10px;
  background: rgba(20, 22, 30, 0.92);
  animation: settings-panel-in 250ms ease-out both;
}

@keyframes settings-panel-in {
  from { transform: translateX(16px); }
  to { transform: translateX(0); }
}

body[data-theme="hyprland"] .settings-header h2 {
  font-weight: 400;
}

body[data-theme="hyprland"] .settings-row {
  font-size: 13px;
}

body[data-theme="hyprland"] .settings-row input:not([type="checkbox"]),
body[data-theme="hyprland"] .settings-row select {
  border: 1px solid #1e2233;
  border-radius: 10px;
  background: #14161e;
  color: #c0d0e8;
}

body[data-theme="hyprland"] .browser-home-search input:not([type="checkbox"]) {
  border: 1px solid #1e2233;
  border-radius: 10px;
  background: #14161e;
}

body[data-theme="hyprland"] .browser-home-item,
body[data-theme="hyprland"] .history-heading,
body[data-theme="hyprland"] .browser-home-label {
  color: #6b7a94;
}

body[data-theme="hyprland"] .external-link {
  color: #33ccff;
  font-size: 13px;
}

body[data-theme="hyprland"] .results-section {
  width: min(100%, 760px);
  margin: 16px auto 48px;
}

body[data-theme="hyprland"] .results-heading {
  gap: 8px;
  margin-bottom: 12px;
}

body[data-theme="hyprland"] .results-heading h2 {
  color: #c0d0e8;
  font-size: 16px;
  font-weight: 400;
}

body[data-theme="hyprland"] .result-source,
body[data-theme="hyprland"] .result-meta {
  color: #6b7a94;
  font-size: 12px;
}

body[data-theme="hyprland"] .result-list {
  gap: 8px;
}

body[data-theme="hyprland"] .result-card {
  padding: 12px;
  border: 1px solid #1e2233;
  border-radius: 10px;
  background: #14161e;
  box-shadow: none;
}

body[data-theme="hyprland"] .result-card:hover {
  border-color: #1e2233;
  background: #1a1d28;
  box-shadow: none;
}

body[data-theme="hyprland"] .result-title {
  color: #33ccff;
  font-size: 14px;
  font-weight: 500;
}

body[data-theme="hyprland"] .result-description {
  margin-top: 8px;
  color: #c0d0e8;
  font-size: 13px;
  line-height: 1.5;
}

body[data-theme="hyprland"] .result-meta {
  margin: 8px 0 0;
}

body[data-theme="hyprland"] .search-state {
  margin: 0;
  padding: 12px 0;
  color: #6b7a94;
  font-size: 13px;
}

body[data-theme="hyprland"] .search-state.is-error {
  color: #c0d0e8;
}

body[data-theme="hyprland"] input:not([type="checkbox"]) {
  border: 1px solid #1e2233;
  border-radius: 10px;
  background: #14161e;
  color: #c0d0e8;
}

body[data-theme="hyprland"] input:not([type="checkbox"])::placeholder {
  color: #3d4560;
}

body[data-theme="hyprland"] input:not([type="checkbox"]):focus {
  border: 2px solid #33ccff;
  outline: none;
  box-shadow: 0 4px 16px rgba(51, 204, 255, 0.08);
}

body[data-theme="hyprland"] input:not([type="checkbox"]):focus::placeholder {
  color: #3d4560;
}

body[data-theme="hyprland"][data-reduce-motion="true"] *,
body[data-theme="hyprland"][data-reduce-motion="true"] *::before,
body[data-theme="hyprland"][data-reduce-motion="true"] *::after {
  animation: none !important;
  transition: none !important;
}
