@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }

@font-face {
  font-family: "Geologica";
  src: url("geologica.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f9fe;
  --bg-deep: #eaf3fc;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #fff;
  --surface-muted: rgba(236, 245, 254, .74);
  --ink: #173a64;
  --ink-soft: #55708e;
  --muted: #7890aa;
  --blue: #078fe8;
  --blue-deep: #0a6ec5;
  --blue-soft: #e3f2ff;
  --line: rgba(211, 225, 240, .82);
  --danger: #d95865;
  --success: #218f76;
  --shadow-sm: 0 8px 24px rgba(42, 87, 133, .08);
  --shadow-md: 0 18px 48px rgba(35, 79, 128, .14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22, .75, .25, 1);
}

* { box-sizing: border-box; }
button,
input,
select,
textarea { font: inherit; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(255,255,255,.98), transparent 34rem),
    radial-gradient(circle at 22% 84%, rgba(215,236,255,.62), transparent 34rem),
    linear-gradient(135deg, var(--bg) 0%, #f8fbff 48%, var(--bg-deep) 100%);
  font-family: "Geologica", "Segoe UI", sans-serif;
  font-size: 14px;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .22;
  content: "";
  pointer-events: none;
  background-image: repeating-linear-gradient(116deg, transparent 0 42px, rgba(120,170,220,.06) 43px 44px);
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
body.dark {
  color-scheme: dark;
  --bg: #101d2d;
  --bg-deep: #172c43;
  --surface: rgba(24, 42, 62, .86);
  --surface-solid: #192c41;
  --surface-muted: rgba(35, 58, 83, .82);
  --ink: #e4f0fb;
  --ink-soft: #b3c9df;
  --muted: #8fa9c3;
  --line: rgba(104, 138, 171, .34);
  --blue-soft: rgba(21, 119, 190, .2);
  background: linear-gradient(135deg, #0f1b29, #172c43);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(6, 143, 232, .48); outline-offset: 3px; }

.app { min-height: 100dvh; }
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 16px 22px;
  pointer-events: none;
}
.menu-trigger {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 15px;
  color: var(--blue-deep);
  cursor: pointer;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-sm), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: transform 180ms var(--ease), background 180ms ease;
}
.menu-trigger:hover { transform: translateY(-1px); background: rgba(255,255,255,.94); }
.menu-trigger svg { width: 23px; height: 23px; }

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(38, 68, 105, .2);
  backdrop-filter: blur(2px);
  transition: opacity 220ms ease;
}
.drawer {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: min(336px, calc(100vw - 12px));
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 20px 18px;
  border-right: 1px solid rgba(255,255,255,.74);
  background: rgba(248,252,255,.94);
  box-shadow: 18px 0 50px rgba(31,72,117,.16);
  backdrop-filter: blur(24px) saturate(120%);
  transform: translateX(-102%);
  transition: transform 230ms var(--ease);
}
body.dark .drawer { background: rgba(18, 34, 51, .94); border-color: var(--line); }
.drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; min-height: 60px; align-items: center; gap: 10px; }
.brand-lockup { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: var(--blue); text-decoration: none; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 43px; object-fit: contain; }
.brand-wordmark { width: 133px; height: 42px; object-fit: contain; object-position: left center; }
.drawer-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  background: transparent;
}
.drawer-toggle:hover { color: var(--blue); background: var(--blue-soft); }
.drawer-toggle svg { width: 23px; height: 23px; }
.drawer-nav { display: grid; gap: 7px; margin-top: 27px; }
.nav-item {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  gap: 17px;
  padding: 0 14px;
  border-radius: 15px;
  color: #365a82;
  font-size: 14px;
  font-weight: 540;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms var(--ease);
}
.nav-item:hover { color: var(--blue); background: var(--blue-soft); transform: translateX(2px); }
.nav-item.is-active { color: var(--blue); background: linear-gradient(100deg, rgba(224,242,255,.96), rgba(235,247,255,.58)); }
.nav-item svg { width: 24px; height: 24px; flex: 0 0 24px; color: #4f739d; stroke-width: 1.8; }
.nav-item.is-active svg { color: var(--blue); }
.drawer-profile { display: flex; min-height: 68px; align-items: center; justify-content: flex-start; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; background: #dcecf8; object-fit: cover; }
.profile-copy { min-width: 0; }
.profile-copy strong { display: block; color: #69809e; font-size: 13px; font-weight: 620; }
.profile-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.profile-note { margin-left: auto; color: var(--muted); font-size: 10px; text-align: right; }

.main-content {
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 108px clamp(20px, 5vw, 76px) 54px;
}
.page-wrap { width: 100%; max-width: 1240px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 38px); letter-spacing: -.05em; }
.page-heading p { max-width: 560px; margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-control { display: flex; width: min(360px, 38vw); min-height: 46px; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-control:focus-within { border-color: rgba(7,143,232,.44); box-shadow: 0 0 0 4px rgba(7,143,232,.1), var(--shadow-sm); }
.search-control svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--muted); }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: "Poppins", "Geologica", sans-serif; font-weight: 500; font-synthesis: none; letter-spacing: 0; }
.search-control input::placeholder { color: var(--muted); }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease), border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(7,143,232,.34); background: var(--surface-solid); }
.button svg { width: 19px; height: 19px; }
.button.primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, #10a3f2, #087ed7); box-shadow: 0 10px 20px rgba(7,133,218,.2); }
.button.ghost { box-shadow: none; background: transparent; }
.button.danger { color: var(--danger); }

.home-page { display: grid; min-height: calc(100dvh - 162px); place-items: center; }
.hero { width: min(860px, 100%); margin: 0 auto; transform: translateY(-2vh); text-align: center; }
.hero-brand { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.hero-brand .brand-mark { width: 96px; height: 96px; flex-basis: 96px; }
.hero-brand .brand-wordmark { width: 250px; height: 76px; }
.hero h1 { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.home-search-row { position: relative; z-index: 30; display: grid; width: min(760px, 100%); grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin: 0 auto; }
.hero-search { display: flex; min-width: 0; min-height: 70px; align-items: center; gap: 12px; padding: 0 20px; border: 1px solid rgba(255,255,255,.9); border-radius: 38px; background: rgba(255,255,255,.62); box-shadow: 0 20px 40px rgba(48,91,135,.12), inset 0 1px 1px #fff; backdrop-filter: blur(22px) saturate(125%); }
.hero-search:focus-within { border-color: rgba(7,143,232,.45); box-shadow: 0 0 0 4px rgba(7,143,232,.1), 0 20px 40px rgba(48,91,135,.14), inset 0 1px 1px #fff; }
.hero-search svg { width: 27px; height: 27px; flex: 0 0 27px; color: #627b9d; }
.hero-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: "Poppins", "Geologica", sans-serif; font-size: 17px; font-style: normal; font-weight: 500; font-synthesis: none; letter-spacing: 0; }
.hero-search input::placeholder { color: #7185a1; font: inherit; font-weight: 420; letter-spacing: 0; opacity: 1; }
.hero-search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.hero-search input::-ms-clear { display: none; }
.clear-search { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 0; border-radius: 50%; color: var(--muted); cursor: pointer; background: transparent; }
.clear-search:hover { color: var(--blue); background: var(--blue-soft); }
.ai-button { display: inline-flex; width: 180px; min-width: 180px; max-width: 180px; height: 70px; min-height: 70px; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; border: 1px solid rgba(255,255,255,.92); border-radius: 38px; color: var(--blue); cursor: pointer; background: rgba(255,255,255,.76); box-shadow: 0 16px 34px rgba(73,154,220,.16), inset 0 1px 1px #fff; font-family: "Poppins", "Geologica", sans-serif; font-size: 24px; font-weight: 650; white-space: nowrap; transition: transform 160ms var(--ease), background 160ms ease, box-shadow 160ms ease; }
.ai-button:hover { transform: translateY(-1px); background: rgba(235,248,255,.94); box-shadow: 0 19px 38px rgba(73,154,220,.23), inset 0 1px 1px #fff; }
.ai-button:active { transform: scale(.98); }
.ai-button:focus-visible { color: var(--blue); background: rgba(235,248,255,.96); outline: 3px solid rgba(7,143,232,.55); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(7,143,232,.16), 0 16px 34px rgba(73,154,220,.22); }
.ai-send:focus-visible, .ai-stop:focus-visible, .context-chip:focus-visible, .example-chip:focus-visible, .code-copy:focus-visible { outline: 3px solid rgba(255,255,255,.92); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(7,143,232,.3), 0 16px 34px rgba(0,132,218,.22); }
.ai-button:focus-visible { outline-color: rgba(7,143,232,.55); box-shadow: 0 0 0 6px rgba(7,143,232,.16), 0 16px 34px rgba(73,154,220,.22); }
.ai-button-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; }
.ai-button-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ai-button-label-short { display: none; }
.search-suggestions { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; left: 0; padding: 8px; border: 1px solid rgba(255,255,255,.9); border-radius: 20px; background: rgba(248,252,255,.94); box-shadow: 0 16px 32px rgba(48,91,135,.14), inset 0 1px 1px #fff; backdrop-filter: blur(22px) saturate(125%); }
.search-suggestion { display: grid; width: 100%; min-width: 0; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 12px; border: 0; border-radius: 13px; color: var(--ink); cursor: pointer; background: transparent; font-family: "Poppins", "Geologica", sans-serif; font-weight: 500; text-align: left; }
.search-suggestion:hover, .search-suggestion:focus-visible { background: rgba(7,143,232,.09); }
.search-suggestion svg { width: 18px; height: 18px; color: #627b9d; }
.search-suggestion span { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.search-suggestion-delete { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #7187a2; cursor: pointer; background: rgba(105,124,148,.12); line-height: 0; opacity: 0; transform: scale(.86); transition: opacity 140ms ease, transform 140ms ease, color 140ms ease, background 140ms ease; }
.search-suggestion-delete svg { display: block; width: 15px; height: 15px; margin: 0; }
.search-suggestion.is-recent:hover .search-suggestion-delete, .search-suggestion.is-recent:focus-within .search-suggestion-delete { opacity: 1; transform: scale(1); }
.search-suggestion-delete:hover { color: #425f82; background: rgba(105,124,148,.2); }
.quick-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 42px; }
.quick-link-item { position: relative; display: inline-grid; width: 65px; height: 65px; flex: 0 0 65px; place-items: center; }
.quick-link { display: grid; width: 65px; height: 65px; place-items: center; border: 1px solid rgba(255,255,255,.88); border-radius: 50%; color: var(--blue-deep); text-decoration: none; background: rgba(255,255,255,.66); box-shadow: 0 12px 24px rgba(55,99,154,.1), inset 0 1px #fff; backdrop-filter: blur(16px); transition: transform 160ms var(--ease), box-shadow 160ms ease; }
.quick-link:hover { transform: translateY(-3px); box-shadow: 0 17px 28px rgba(55,99,154,.15), inset 0 1px #fff; }
.quick-link.add-shortcut { border-style: dashed; color: var(--blue); cursor: pointer; }
.quick-link.add-shortcut svg { width: 28px; height: 28px; stroke-width: 1.9; }
.quick-link.custom-shortcut .brand-icon { border-radius: 8px; }
.brand-icon { display: block; width: 34px; height: 34px; object-fit: contain; }
.quick-link.app-link svg { width: 34px; height: 34px; color: #2869bd; stroke-width: 1.8; }
.shortcut-delete { position: absolute; top: -6px; right: -6px; display: flex; width: 23px; height: 23px; align-items: center; justify-content: center; padding: 0; border: 1px solid #dbe8f4; border-radius: 50%; color: #6380a2; cursor: pointer; background: #fff; box-shadow: 0 5px 12px rgba(53,91,130,.16); line-height: 0; opacity: 0; transform: scale(.82); transition: opacity 140ms ease, transform 140ms ease, color 140ms ease; }
.shortcut-delete svg { display: block; width: 13px; height: 13px; margin: 0; stroke-width: 2; }
.quick-link-item:hover .shortcut-delete, .quick-link-item:focus-within .shortcut-delete { opacity: 1; transform: scale(1); }
.shortcut-delete:hover { color: #d95865; }

.card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.list { display: grid; gap: 10px; }
.list-row { display: grid; min-height: 70px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 16px 12px 20px; }
.list-row:hover { background: rgba(255,255,255,.68); }
.row-main { display: flex; min-width: 0; align-items: center; gap: 14px; }
.row-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: var(--blue-deep); background: var(--blue-soft); }
.row-icon svg { width: 20px; height: 20px; }
.row-copy { min-width: 0; }
.row-copy strong, .row-copy a { display: block; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.row-copy a { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 420; text-decoration: none; }
.row-copy a:hover { color: var(--blue); text-decoration: underline; }
.row-copy a svg { display: inline-block; width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; }
.row-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 11px; color: var(--muted); cursor: pointer; background: transparent; }
.icon-button:hover { color: var(--blue); background: var(--blue-soft); }
.icon-button.danger:hover { color: var(--danger); background: rgba(217,88,101,.1); }
.drawer-profile.icon-button { display: flex; width: 100%; height: auto; min-height: 68px; justify-content: flex-start; padding: 15px 0 0; border-top: 1px solid var(--line); border-radius: 0; text-align: left; }
.empty-state { display: grid; min-height: 250px; place-items: center; padding: 40px 20px; color: var(--muted); text-align: center; }
.empty-state svg { width: 44px; height: 44px; color: #7fbde7; }
.empty-state h2 { margin: 14px 0 7px; color: var(--ink-soft); font-size: 20px; }
.empty-state p { margin: 0; line-height: 1.55; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); gap: 22px; }
.side-card { align-self: start; padding: 20px; }
.side-card h2 { margin: 0 0 14px; font-size: 15px; }
.side-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.folder-block + .folder-block { margin-top: 26px; }
.folder-heading { display: flex; align-items: center; gap: 9px; margin: 0 0 9px 4px; color: var(--ink-soft); font-size: 13px; }
.folder-heading svg { width: 17px; height: 17px; color: var(--blue); }
.folder-count { color: var(--muted); font-size: 11px; }

.status { display: inline-flex; min-height: 26px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.status.progress { color: #a46f1b; background: #fff3d8; }
.status.completed { color: var(--success); background: #dcf5eb; }
.status.enabled { color: var(--success); background: #dcf5eb; }
.status.disabled { color: var(--muted); background: var(--surface-muted); }
.progress-line { width: min(210px, 24vw); height: 6px; margin-top: 8px; overflow: hidden; border-radius: 9px; background: var(--blue-soft); }
.progress-line span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--blue); }
.extension-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.extension-card { display: flex; min-height: 200px; flex-direction: column; padding: 20px; }
.extension-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.extension-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: var(--blue-deep); background: var(--blue-soft); font-size: 17px; font-weight: 700; }
.extension-card h2 { margin: 18px 0 8px; font-size: 16px; }
.extension-card p { min-height: 52px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.extension-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 42px; }
.switch input { width: 1px; height: 1px; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; cursor: pointer; background: #c9d6e5; transition: background 160ms ease; }
.switch span::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; content: ""; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.14); transition: transform 160ms var(--ease); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }

.settings-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-sidebar { position: sticky; top: 92px; display: grid; gap: 20px; align-self: start; }
.settings-title h1 { margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 38px); letter-spacing: -.05em; }
.settings-title p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.settings-nav { display: grid; gap: 5px; padding: 10px; }
.settings-nav button { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 10px; color: var(--ink-soft); cursor: pointer; background: transparent; text-align: left; }
.settings-nav button:hover, .settings-nav button.is-active { color: var(--blue); background: var(--blue-soft); }
.settings-nav svg { width: 18px; height: 18px; }
.settings-panel { padding: 24px; }
.settings-panel h2 { margin: 0; font-size: 18px; }
.settings-panel > p { margin: 8px 0 22px; color: var(--muted); line-height: 1.5; }
.setting-row { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.setting-copy strong { display: block; font-size: 14px; }
.setting-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.select-control { min-width: 170px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface-solid); }
.info-banner { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid rgba(7,143,232,.18); border-radius: 14px; color: var(--ink-soft); background: var(--blue-soft); font-size: 12px; line-height: 1.55; }
.info-banner svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--blue); }

.drawer-backdrop, .ai-backdrop { opacity: 1; }
.ai-backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(32,60,94,.2); backdrop-filter: blur(2px); }
.ai-panel { position: fixed; z-index: 70; top: 0; right: 0; display: flex; width: min(480px, 100vw); height: 100dvh; flex-direction: column; padding: 24px 24px 18px; border-left: 1px solid rgba(255,255,255,.78); background: rgba(248,252,255,.96); box-shadow: -18px 0 48px rgba(31,72,117,.15); backdrop-filter: blur(24px); transform: translateX(102%); transition: transform 230ms var(--ease); }
body.dark .ai-panel { background: rgba(18,34,51,.97); border-color: var(--line); }
.ai-panel.is-open { transform: translateX(0); }
.ai-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ai-heading { display: flex; min-width: 0; align-items: center; gap: 11px; }
.ai-avatar { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; }
.ai-heading h2 { margin: 0; font-size: 20px; }
.ai-heading p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ai-header-actions { display: flex; gap: 2px; }
.ai-history { position: absolute; z-index: 2; top: 78px; right: 24px; left: 24px; max-height: 280px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); box-shadow: var(--shadow-md); }
.ai-history p { margin: 6px; color: var(--muted); font-size: 12px; }
.ai-history-title { margin: 4px 6px 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
.ai-history-row { display: flex; align-items: center; gap: 4px; }
.ai-history-row > button:first-child { min-width: 0; flex: 1; overflow: hidden; padding: 8px 7px; border: 0; border-radius: 8px; color: var(--ink-soft); cursor: pointer; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ai-history-row > button:first-child:hover { color: var(--blue); background: var(--blue-soft); }
.ai-history-delete { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; background: transparent; }
.ai-history-delete:hover { color: var(--danger); background: rgba(217,88,101,.1); }
.ai-history-delete svg { width: 15px; height: 15px; }
.ai-body { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; padding: 22px 2px 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ai-body::-webkit-scrollbar { display: none; }
.ai-welcome { margin: auto 0; padding: 18px 8px 26px; color: var(--ink-soft); text-align: center; }
.ai-welcome.is-hidden { display: none; }
.ai-welcome-avatar { width: 116px; height: 116px; object-fit: contain; }
.ai-welcome h3 { margin: 12px 0 7px; color: var(--ink); font-size: 23px; letter-spacing: -.03em; }
.ai-welcome p { max-width: 330px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ai-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; }
.example-chip, .context-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); cursor: pointer; background: var(--surface); }
.example-chip:hover, .context-chip:hover { color: var(--blue); border-color: rgba(7,143,232,.34); }
.ai-messages { display: grid; width: 100%; min-width: 0; gap: 16px; margin-top: auto; overflow-x: clip; }
.ai-message { width: fit-content; min-width: 0; max-width: 92%; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.ai-message.is-user { justify-self: end; color: #fff; }
.ai-message.is-assistant { justify-self: start; }
.ai-message-label { margin: 0 0 5px 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.ai-message.is-user .ai-message-label { color: rgba(255,255,255,.75); text-align: right; }
.ai-message-content { width: fit-content; min-width: 0; max-width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: var(--surface); font-family: "Geologica", "Segoe UI", sans-serif; font-style: normal; font-weight: 500; font-synthesis: none; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-word; }
.ai-message-content :where(p, span, a, strong, em, b, i, li, blockquote) { font-family: inherit; font-style: normal; font-synthesis: none; }
.ai-message-content :where(strong, b) { font-weight: 600; }
.ai-message-content :where(em, i) { font-weight: inherit; }
.ai-message.is-user .ai-message-content { border-color: transparent; border-radius: 16px 16px 5px 16px; background: #078fe8; }
.ai-thinking { display: inline-flex; min-width: 34px; height: 18px; align-items: center; justify-content: center; gap: 5px; vertical-align: middle; }
.ai-thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pros-thinking-dot 1.05s ease-in-out infinite; }
.ai-thinking i:nth-child(2) { animation-delay: .14s; }
.ai-thinking i:nth-child(3) { animation-delay: .28s; }
@keyframes pros-thinking-dot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0) scale(.88); }
  30% { opacity: 1; transform: translateY(-3px) scale(1); }
}
.ai-message-content p { margin: 0 0 10px; }
.ai-message-content p:last-child { margin-bottom: 0; }
.ai-message-content h2, .ai-message-content h3, .ai-message-content h4 { margin: 0 0 8px; color: var(--ink); font-size: 15px; }
.ai-message-content blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--blue); color: var(--muted); }
.ai-message-content code { padding: 2px 5px; border-radius: 5px; color: var(--blue-deep); background: var(--blue-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.code-wrap { position: relative; width: 100%; min-width: 0; max-width: 100%; margin: 10px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #10253b; }
.code-wrap pre { width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 34px 12px 12px; overflow-x: auto; color: #dcefff; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-wrap pre code { padding: 0; color: inherit; background: transparent; }
.code-copy { position: absolute; top: 6px; right: 6px; display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; color: #dcefff; cursor: pointer; background: rgba(255,255,255,.1); font-size: 10px; }
.code-copy svg { width: 13px; height: 13px; }
.ai-sources { display: grid; gap: 5px; margin: 8px 4px 0; font-size: 11px; }
.ai-sources strong { color: var(--ink); }
.ai-sources a { overflow: hidden; color: var(--blue-deep); text-overflow: ellipsis; white-space: nowrap; }
.ai-message-actions { display: flex; gap: 6px; margin-top: 7px; }
.ai-message-actions .button { min-height: 32px; padding-inline: 9px; font-size: 11px; }
.ai-message-actions svg { width: 14px; height: 14px; }
.ai-error-actions { margin-top: 7px; }
.ai-context { display: flex; flex-wrap: nowrap; gap: 7px; padding: 10px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ai-context::-webkit-scrollbar { display: none; }
.context-chip { display: inline-flex; min-height: 32px; flex: 0 0 auto; align-items: center; gap: 6px; padding-inline: 10px; font-size: 11px; white-space: nowrap; }
.context-chip svg { width: 15px; height: 15px; }
.context-chip.is-active { color: var(--blue); border-color: rgba(7,143,232,.38); background: var(--blue-soft); }
.ai-form { display: grid; gap: 7px; padding-top: 4px; }
.ai-compose { display: flex; min-height: 50px; align-items: center; gap: 8px; padding: 4px 5px 4px 14px; border: 1px solid rgba(105,181,237,.42); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 3px rgba(126,196,244,.1), 0 9px 22px rgba(54,134,198,.1), inset 0 1px 1px #fff; backdrop-filter: blur(20px) saturate(125%); transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.ai-compose:focus-within { border-color: rgba(7,143,232,.52); background: rgba(255,255,255,.96); box-shadow: 0 0 0 4px rgba(7,143,232,.12), 0 10px 24px rgba(54,134,198,.13), inset 0 1px 1px #fff; }
.ai-compose-icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; color: #5c7fa7; }
.ai-compose-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.ai-form textarea { width: auto; min-width: 0; min-height: 24px; max-height: 150px; flex: 1 1 auto; align-self: center; resize: none; overflow-y: hidden; padding: 3px 0; border: 0; outline: 0; color: #55749b; background: transparent; font-family: "Poppins", "Geologica", sans-serif; font-size: 14px; font-style: normal; font-weight: 500; font-synthesis: none; letter-spacing: 0; line-height: 1.35; }
.ai-form textarea::placeholder { color: #7892b3; font: inherit; font-weight: 500; letter-spacing: 0; opacity: 1; }
.ai-send, .ai-stop { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 0; border-radius: 50%; color: #fff; cursor: pointer; background: #b7dcf7; box-shadow: 0 4px 10px rgba(73,154,220,.12), inset 0 1px rgba(255,255,255,.5); transition: transform 160ms var(--ease), background 160ms ease, box-shadow 160ms ease; }
.ai-send:hover, .ai-stop:hover { background: #91c9f3; transform: translateY(-1px); box-shadow: 0 6px 13px rgba(73,154,220,.18), inset 0 1px rgba(255,255,255,.58); }
.ai-compose.has-text .ai-send { background: var(--blue); box-shadow: 0 5px 13px rgba(7,143,232,.24), inset 0 1px rgba(255,255,255,.36); }
.ai-compose.has-text .ai-send:hover { background: #087fce; box-shadow: 0 7px 15px rgba(7,143,232,.3), inset 0 1px rgba(255,255,255,.44); }
.ai-send:active, .ai-stop:active { transform: scale(.96); }
.ai-send:focus-visible, .ai-stop:focus-visible { outline: 3px solid rgba(7,143,232,.45); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(7,143,232,.12), 0 6px 13px rgba(73,154,220,.18); }
.ai-send svg, .ai-stop svg { width: 23px; height: 23px; stroke-width: 1.9; }
.ai-hint { margin: 0 7px; color: var(--muted); font-size: 10px; line-height: 1.3; }

/* Search results: a quieter, research-oriented surface that keeps the result column readable. */
.search-app { min-height: 100dvh; }
.search-main { min-height: 100dvh; width: 100%; }
.search-page-wrap { width: min(1480px, 100%); margin: 0 auto; padding: 18px clamp(20px, 3.4vw, 52px) 56px; }
.search-header { display: grid; grid-template-columns: 170px minmax(300px, 1fr) 230px; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.search-brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: var(--blue); text-decoration: none; }
.search-brand-mark { width: 43px; height: 43px; flex: 0 0 43px; object-fit: contain; }
.search-brand-wordmark { width: 123px; height: 39px; object-fit: contain; object-position: left center; }
.search-page-form { position: relative; display: flex; min-width: 0; min-height: 54px; align-items: center; gap: 13px; padding: 0 14px 0 19px; border: 1px solid rgba(167,207,242,.52); border-radius: 30px; background: rgba(255,255,255,.84); box-shadow: 0 9px 25px rgba(53,126,191,.11), inset 0 1px 1px #fff; backdrop-filter: blur(18px) saturate(125%); transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.search-page-form:focus-within { border-color: rgba(7,143,232,.48); background: rgba(255,255,255,.96); box-shadow: 0 0 0 4px rgba(7,143,232,.1), 0 12px 28px rgba(53,126,191,.14), inset 0 1px 1px #fff; }
.search-page-form > svg { width: 23px; height: 23px; flex: 0 0 23px; color: #4a6eaa; stroke-width: 2; }
.search-page-form input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: #123a82; background: transparent; font-family: "Poppins", "Geologica", sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.search-page-form input::placeholder { color: #7890aa; font-weight: 500; opacity: 1; }
.search-page-form input::-webkit-search-cancel-button { display: none; appearance: none; }
.search-page-clear { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 0; border-radius: 50%; color: #4d6da6; cursor: pointer; background: transparent; }
.search-page-clear:hover { color: var(--blue); background: var(--blue-soft); }
.search-pros-trigger { display: inline-flex; min-width: 0; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border: 1px solid rgba(167,207,242,.5); border-radius: 30px; color: var(--blue); cursor: pointer; background: rgba(255,255,255,.8); box-shadow: 0 9px 23px rgba(53,126,191,.1), inset 0 1px 1px #fff; font-family: "Poppins", "Geologica", sans-serif; font-size: 16px; font-weight: 600; white-space: nowrap; transition: transform 160ms var(--ease), background 160ms ease, box-shadow 160ms ease; }
.search-pros-trigger:hover { transform: translateY(-1px); background: rgba(235,248,255,.98); box-shadow: 0 12px 27px rgba(53,126,191,.15), inset 0 1px 1px #fff; }
.search-pros-trigger:active { transform: scale(.98); }
.search-pros-trigger:focus-visible { outline: 3px solid rgba(7,143,232,.45); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(7,143,232,.12), 0 9px 23px rgba(53,126,191,.14); }
.search-pros-trigger-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; }
.search-pros-trigger-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.search-tabs { display: flex; align-items: stretch; gap: 8px; margin: 12px 0 0 188px; border-bottom: 1px solid rgba(205,222,239,.82); overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab { display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-bottom: 2px solid transparent; color: #365ba0; cursor: pointer; background: transparent; font-family: "Poppins", "Geologica", sans-serif; font-size: 14px; font-weight: 500; white-space: nowrap; }
.search-tab:hover { color: var(--blue); background: rgba(227,242,255,.46); }
.search-tab.is-active { border-bottom-color: var(--blue); color: var(--blue); font-weight: 650; }
.search-tab svg { width: 20px; height: 20px; stroke-width: 2; }
.search-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 500px); gap: clamp(30px, 4vw, 58px); align-items: start; margin-top: 0; }
.search-page-layout.is-pros-hidden { grid-template-columns: minmax(0, 1fr); }
.search-page-layout.is-pros-hidden .search-results-column { width: min(1080px, 100%); }
.search-results-column { min-width: 0; width: min(916px, 100%); padding-top: 11px; }
.search-results-meta { min-height: 29px; color: #4c69ac; font-family: "Poppins", "Geologica", sans-serif; font-size: 14px; line-height: 1.5; }
.search-results-list { display: grid; }
.search-result { position: relative; padding: 20px 38px 20px 0; border-bottom: 1px solid rgba(205,222,239,.84); }
.search-result:first-child { padding-top: 12px; }
.search-result-source { display: grid; grid-template-columns: 38px minmax(0, 1fr) 32px; align-items: center; gap: 10px; color: #1b56b4; font-family: "Poppins", "Geologica", sans-serif; font-size: 13px; line-height: 1.35; }
.search-result-source > img { width: 34px; height: 34px; padding: 5px; border: 1px solid rgba(207,225,243,.72); border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(57,106,165,.09); object-fit: contain; }
.search-result-source > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-breadcrumb { color: #5674b2; }
.search-result-more { display: grid; width: 32px; height: 34px; place-items: center; border: 0; border-radius: 10px; color: #2f5eb0; cursor: pointer; background: transparent; font-size: 24px; line-height: 1; }
.search-result-more:hover { background: var(--blue-soft); }
.search-result-title { display: block; margin: 4px 0 5px 48px; color: #056fe0; font-family: "Poppins", "Geologica", sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; text-decoration: none; }
.search-result-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-result-description { max-width: 830px; margin: 0 0 8px 48px; color: var(--ink-soft); font-family: "Poppins", "Geologica", sans-serif; font-size: 15px; line-height: 1.7; }
.search-result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 48px; color: #5576b8; font-family: "Poppins", "Geologica", sans-serif; font-size: 13px; }
.search-image-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 10px 0 9px 48px; }
.search-image-strip a { position: relative; display: block; min-width: 0; height: 148px; overflow: hidden; border-radius: 8px; background: #dcecff; }
.search-image-strip img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms var(--ease); }
.search-image-strip a:hover img { transform: scale(1.03); }
.search-image-strip a > span { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; min-height: 35px; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border-radius: 18px; color: #12458e; background: rgba(255,255,255,.94); box-shadow: 0 6px 15px rgba(24,80,145,.18); font-family: "Poppins", "Geologica", sans-serif; font-size: 12px; font-weight: 600; }
.search-image-strip a > span svg { width: 16px; height: 16px; }
.search-image-strip a > span svg:last-child { width: 14px; height: 14px; margin-left: 2px; }
.search-pros-card { position: sticky; top: 18px; min-width: 0; margin-top: 12px; overflow: hidden; padding: 15px 15px 16px; border: 1px solid rgba(201,224,246,.86); border-radius: 17px; background: linear-gradient(158deg, rgba(225,241,255,.96), rgba(243,249,255,.86)); box-shadow: 0 12px 30px rgba(50,117,181,.1); }
.search-pros-card[hidden] { display: none; }
.search-pros-card-head { position: relative; display: flex; min-height: 77px; align-items: flex-start; gap: 12px; padding: 5px 142px 12px 4px; }
.search-pros-sparkle { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: var(--blue); }
.search-pros-sparkle svg { width: 35px; height: 35px; stroke-width: 1.7; }
.search-pros-card-head h2 { margin: 0; color: #087de2; font-size: 27px; letter-spacing: -.04em; line-height: 1.05; }
.search-pros-card-head p { margin: 4px 0 0; color: #5679bd; font-family: "Poppins", "Geologica", sans-serif; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.search-pros-mascot { position: absolute; top: -28px; right: -12px; width: 166px; height: 166px; object-fit: contain; }
.search-pros-close { position: absolute; z-index: 3; top: 0; right: 0; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(166,203,236,.72); border-radius: 50%; color: #52749b; cursor: pointer; background: rgba(255,255,255,.88); box-shadow: 0 5px 14px rgba(44,98,153,.11); backdrop-filter: blur(8px); transition: color 150ms ease, background 150ms ease, transform 150ms var(--ease); }
.search-pros-close:hover { color: var(--blue-deep); background: #fff; transform: scale(1.04); }
.search-pros-close:active { transform: scale(.96); }
.search-pros-close:focus-visible { outline: 3px solid rgba(7,143,232,.42); outline-offset: 2px; }
.search-pros-close svg { width: 18px; height: 18px; stroke-width: 1.9; }
.search-entity-card { padding: 14px 17px 10px; border: 1px solid rgba(206,226,246,.86); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 7px 18px rgba(58,116,175,.07); }
.search-entity-card h2 { margin: 0; color: #153c88; font-size: 27px; letter-spacing: -.045em; line-height: 1.12; }
.search-entity-category { margin: 3px 0 10px; color: #5578b8; font-size: 14px; }
.search-entity-image { display: block; width: 100%; height: 145px; border-radius: 10px; object-fit: cover; background: #dcecff; }
.search-entity-description { margin: 9px 0 7px; color: #184ca1; font-family: "Poppins", "Geologica", sans-serif; font-size: 15px; line-height: 1.65; }
.search-entity-properties { margin: 0; color: #1a4b9c; font-family: "Poppins", "Geologica", sans-serif; font-size: 13px; }
.search-entity-properties > div { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.55; }
.search-entity-properties dt { color: #5575b1; }
.search-entity-properties dd { margin: 0; }
.search-pros-actions { display: grid; gap: 7px; margin: 10px 7px 12px; }
.search-pros-actions button { display: grid; min-height: 42px; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid rgba(205,225,246,.84); border-radius: 22px; color: #064bba; cursor: pointer; background: rgba(255,255,255,.74); font-family: "Poppins", "Geologica", sans-serif; font-size: 14px; text-align: left; transition: transform 160ms var(--ease), background 160ms ease, box-shadow 160ms ease; }
.search-pros-actions button:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 6px 14px rgba(54,116,183,.1); }
.search-pros-actions button svg { width: 21px; height: 21px; color: var(--blue); }
.search-pros-actions button svg:last-child { width: 17px; height: 17px; color: #496ab0; }
.search-pros-compose { display: flex; min-height: 56px; align-items: center; gap: 9px; margin-top: 3px; padding: 5px 6px 5px 15px; border: 1px solid rgba(170,207,240,.72); border-radius: 29px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 3px rgba(128,195,244,.1), 0 7px 18px rgba(54,126,192,.09); }
.search-pros-compose:focus-within { border-color: rgba(7,143,232,.5); box-shadow: 0 0 0 4px rgba(7,143,232,.11), 0 8px 20px rgba(54,126,192,.12); }
.search-pros-compose-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; color: #5879b0; }
.search-pros-compose-icon svg { width: 23px; height: 23px; stroke-width: 1.7; }
.search-pros-compose input { width: 100%; min-width: 0; height: 30px; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: "Poppins", "Geologica", sans-serif; font-size: 14px; font-weight: 500; }
.search-pros-compose input::placeholder { color: #7186b4; opacity: 1; }
.search-pros-compose-send { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 0; border-radius: 50%; color: #fff; cursor: pointer; background: #abd7f7; transition: transform 160ms var(--ease), background 160ms ease; }
.search-pros-compose-send:hover { background: #83c2f2; transform: translateY(-1px); }
.search-pros-compose.has-text .search-pros-compose-send { background: var(--blue); }
.search-pros-compose.has-text .search-pros-compose-send:hover { background: var(--blue-deep); }
.search-pros-compose-send:disabled, .ai-send:disabled { background: #bed5e7; box-shadow: none; cursor: default; transform: none; }
.search-pros-compose-send:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.search-result-title { max-width: 42em; }
.search-result-description { max-width: 72ch; }
.search-result-meta, .search-results-meta { color: var(--ink-soft); }
.search-breadcrumb { margin-left: 5px; }
.search-entity-description, .search-entity-properties { color: var(--ink); }
.search-entity-properties dt { color: var(--ink-soft); }
.search-entity-properties dd { overflow-wrap: anywhere; }
.search-pros-card-head p { white-space: normal; }
.search-pros-compose-send:active { transform: scale(.97); }
.search-pros-compose-send svg { width: 22px; height: 22px; }
.search-pros-empty { display: grid; min-height: 180px; align-content: center; gap: 8px; padding: 18px; border: 1px solid rgba(206,226,246,.86); border-radius: 16px; color: #5578b8; background: rgba(255,255,255,.78); }
.search-pros-empty strong { color: #1a4a98; font-size: 16px; line-height: 1.3; }
.search-pros-empty span { font-size: 13px; line-height: 1.45; }
.search-page-suggestions { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; left: 0; padding: 7px; border: 1px solid rgba(201,224,246,.9); border-radius: 17px; background: rgba(250,253,255,.98); box-shadow: 0 16px 32px rgba(48,91,135,.15); }
.search-page-suggestion { display: grid; width: 100%; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 39px; padding: 0 10px; border: 0; border-radius: 11px; color: var(--ink); cursor: pointer; background: transparent; font-family: "Poppins", "Geologica", sans-serif; text-align: left; }
.search-page-suggestion:hover, .search-page-suggestion.is-active { background: var(--blue-soft); }
.search-page-suggestion svg { width: 17px; height: 17px; color: #5c79ae; }
.search-page-suggestion span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-page-suggestion small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.search-empty, .search-error { display: grid; max-width: 480px; justify-items: start; gap: 8px; padding: 64px 24px; color: var(--muted); }
.search-empty h2, .search-error h2 { margin: 0; color: var(--ink); font-size: 22px; }
.search-empty p, .search-error p { margin: 0 0 8px; line-height: 1.5; }
.search-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #65a5df; }
.search-empty-icon svg { width: 34px; height: 34px; }
.search-skeleton-meta { width: 290px; height: 14px; margin: 7px 0 9px; border-radius: 8px; background: rgba(190,215,239,.58); animation: search-pulse 1.2s ease-in-out infinite alternate; }
.search-result-skeleton { display: grid; gap: 10px; min-height: 188px; }
.search-skeleton-line { width: min(82%, 720px); height: 14px; border-radius: 8px; background: rgba(190,215,239,.58); animation: search-pulse 1.2s ease-in-out infinite alternate; }
.search-skeleton-line.short { width: 230px; }
.search-skeleton-line.title { width: min(46%, 410px); height: 22px; }
.search-skeleton-line.medium { width: 62%; }
@keyframes search-pulse { from { opacity: .5; } to { opacity: 1; } }
body.dark .search-page-form, body.dark .search-pros-trigger { background: rgba(24,42,62,.88); }
body.dark .search-page-form input { color: var(--ink); }
body.dark .search-pros-card { background: linear-gradient(158deg, rgba(23,52,80,.97), rgba(22,42,63,.95)); }
body.dark .search-entity-card, body.dark .search-pros-actions button, body.dark .search-pros-empty, body.dark .search-page-suggestions { background: rgba(24,42,62,.94); }
body.dark .search-entity-description, body.dark .search-entity-properties, body.dark .search-result-description, body.dark .search-result-meta { color: var(--ink-soft); }
body.dark .search-entity-card h2, body.dark .search-pros-empty strong { color: var(--ink); }

.dialog-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(34,59,89,.28); backdrop-filter: blur(5px); }
.dialog { width: min(500px, 100%); max-height: min(720px, calc(100dvh - 32px)); overflow: auto; padding: 24px; border: 1px solid rgba(255,255,255,.84); border-radius: 22px; background: var(--surface-solid); box-shadow: 0 28px 80px rgba(31,65,103,.24); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dialog-header h2 { margin: 0; font-size: 20px; }
.dialog-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--ink-soft); font-size: 12px; font-weight: 620; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: var(--surface); }
.field textarea { min-height: 90px; padding-block: 11px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(7,143,232,.44); box-shadow: 0 0 0 4px rgba(7,143,232,.1); }
.field .shortcut-url-input { color: var(--ink); font-family: "Poppins", "Geologica", sans-serif; font-size: 15px; font-style: normal; font-weight: 500; font-synthesis: none; letter-spacing: 0; }
.field .shortcut-url-input::placeholder { color: #7388a2; font: inherit; font-weight: 400; opacity: 1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.button.primary.shortcut-submit { background: #078fe8; box-shadow: 0 8px 18px rgba(7,143,232,.22); }
.button.primary.shortcut-submit:hover { background: #087fce; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 13px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; color: #fff; background: #21456c; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

body.compact .list-row { min-height: 58px; padding-block: 8px; }
body.compact .nav-item { min-height: 44px; }

@media (max-width: 900px) {
  .main-content { padding-inline: 28px; }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { order: -1; }
  .extension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .topbar { height: 68px; padding: 12px 14px; }
  .menu-trigger { width: 44px; height: 44px; }
  .main-content { padding: 88px 16px 34px; }
  .home-page { min-height: calc(100dvh - 122px); }
  .hero { transform: translateY(-1vh); }
  .hero-brand { gap: 12px; margin-bottom: 34px; }
  .hero-brand .brand-mark { width: 72px; height: 72px; flex-basis: 72px; }
  .hero-brand .brand-wordmark { width: min(215px, 55vw); height: 58px; }
  .home-search-row { display: flex; width: 100%; min-height: 70px; align-items: center; gap: 8px; padding: 8px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.62); box-shadow: 0 20px 40px rgba(48,91,135,.12), inset 0 1px 1px #fff; backdrop-filter: blur(22px) saturate(125%); }
  .home-search-row:focus-within { border-color: rgba(7,143,232,.45); box-shadow: 0 0 0 4px rgba(7,143,232,.1), 0 20px 40px rgba(48,91,135,.14), inset 0 1px 1px #fff; }
  .hero-search { flex: 1 1 auto; min-width: 0; min-height: 52px; gap: 8px; padding: 0 4px 0 8px; border: 0; border-radius: 18px; background: transparent; box-shadow: none; backdrop-filter: none; }
  .hero-search:focus-within { border-color: transparent; box-shadow: none; }
  .hero-search svg { width: 23px; height: 23px; flex-basis: 23px; }
  .hero-search input { flex: 1 1 auto; min-width: 0; font-size: 15px; }
  .clear-search { width: 30px; height: 30px; flex-basis: 30px; }
  .ai-button { width: 112px; min-width: 112px; max-width: 112px; height: 52px; min-height: 52px; flex: 0 0 112px; align-self: center; gap: 10px; padding: 0 11px; border-radius: 18px; box-shadow: 0 6px 14px rgba(73,154,220,.13), inset 0 1px 1px #fff; font-size: 15px; }
  .ai-button:hover { box-shadow: 0 8px 16px rgba(73,154,220,.2), inset 0 1px 1px #fff; }
  .ai-button-label-wide { display: none; }
  .ai-button-label-short { display: inline; }
  .ai-button-avatar { width: 32px; height: 32px; flex-basis: 32px; }
  .search-suggestions { top: calc(100% + 8px); border-radius: 18px; }
  .quick-links { display: flex; width: min(360px, 100%); justify-content: center; column-gap: 24px; row-gap: 22px; margin: 38px auto 0; }
  .quick-link { width: 55px; height: 55px; flex: 0 0 55px; }
  .brand-icon { width: 34px; height: 34px; }
  .quick-link.app-link svg { width: 34px; height: 34px; }
  .page-header { display: block; margin-bottom: 24px; }
  .page-heading p { margin-top: 8px; }
  .header-actions { flex-wrap: wrap; margin-top: 18px; }
  .search-control { width: 100%; }
  .header-actions .button { flex: 1; }
  .list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-inline: 12px; }
  .row-meta { display: none; }
  .row-copy strong, .row-copy a { white-space: normal; overflow-wrap: anywhere; }
  .extension-grid { grid-template-columns: 1fr; }
  .settings-layout { display: block; }
  .settings-sidebar { position: static; margin-bottom: 14px; }
  .settings-title { margin-bottom: 18px; }
  .settings-nav { display: flex; overflow-x: auto; margin-bottom: 14px; }
  .settings-nav button { flex: 0 0 auto; }
  .settings-panel { padding: 18px; }
  .setting-row { align-items: flex-start; }
  .setting-row .select-control { min-width: 130px; }
  .ai-panel { width: 100%; padding: 22px 16px 16px; }
  .dialog-backdrop { padding: 12px; }
  .dialog { padding: 20px 16px; }
}
@media (max-width: 1199px) {
  .search-page-wrap { padding-inline: clamp(20px, 4vw, 40px); }
  .search-header { grid-template-columns: 160px minmax(0, 1fr) 205px; gap: 16px; }
  .search-tabs { margin-left: 176px; }
  .search-page-layout { grid-template-columns: minmax(0, 1fr); }
  .search-results-column { width: min(920px, 100%); margin: 0 auto; }
  .search-pros-card { display: none; }
}
@media (max-width: 767px) {
  .search-page-wrap { padding: 12px 14px 36px; }
  .search-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .search-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .search-brand-wordmark { width: 111px; height: 35px; }
  .search-pros-trigger { min-height: 46px; padding: 0 11px; gap: 6px; border-radius: 24px; font-size: 14px; }
  .search-pros-trigger-avatar { width: 31px; height: 31px; flex-basis: 31px; }
  .search-page-form { grid-column: 1 / -1; min-height: 56px; padding-left: 16px; }
  .search-page-form input { font-size: 15px; }
  .search-tabs { margin: 9px -14px 0; padding-inline: 14px; gap: 2px; }
  .search-tab { min-height: 45px; padding-inline: 10px; font-size: 13px; }
  .search-tab svg { width: 18px; height: 18px; }
  .search-results-column { padding-top: 7px; }
  .search-results-meta { font-size: 12px; }
  .search-result { padding: 17px 0; }
  .search-result:first-child { padding-top: 10px; }
  .search-result-source { grid-template-columns: 34px minmax(0, 1fr) 32px; font-size: 12px; }
  .search-result-source > img { width: 31px; height: 31px; }
  .search-result-title, .search-result-description, .search-result-meta, .search-image-strip { margin-left: 43px; }
  .search-result-title { font-size: 19px; }
  .search-result-description { font-size: 14px; }
  .search-image-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; }
  .search-image-strip a { height: 132px; }
  .search-image-strip a:nth-child(n + 3) { display: none; }
  .search-page-suggestions { border-radius: 15px; }
  .search-page-suggestion { grid-template-columns: 20px minmax(0, 1fr); }
  .search-page-suggestion small { display: none; }
  .search-empty, .search-error { padding: 52px 8px; }
}
@media (max-height: 620px) and (min-width: 681px) {
  .main-content { padding-top: 90px; }
  .home-page { min-height: calc(100dvh - 112px); }
  .hero-brand { margin-bottom: 18px; }
  .hero-brand .brand-mark { width: 72px; height: 72px; flex-basis: 72px; }
  .hero-brand .brand-wordmark { width: 190px; height: 56px; }
  .quick-links { margin-top: 24px; }
}
@media (max-height: 660px) {
  .drawer-nav { gap: 3px; margin-top: 12px; }
  .drawer .nav-item { min-height: 44px; }
  .drawer-profile,
  .drawer-profile.icon-button { min-height: 56px; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .ai-thinking i { animation: none; opacity: .72; transform: none; }
}
