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

:root {
  color-scheme: light;
  --page: #f8f7f3;
  --paper: #fffefa;
  --paper-soft: #f4f2ec;
  --ink: #171715;
  --ink-soft: #4f4d47;
  --muted: #8a8579;
  --line: #ded9ce;
  --line-strong: #c9c1b3;
  --green: #174421;
  --green-soft: #e8eee6;
  --error: #a33a2b;
  --focus: rgba(23, 68, 33, 0.18);
  --shadow-soft: 0 24px 70px rgba(37, 34, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

a:hover {
  color: var(--green);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
}

.brand {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-height: 34px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switch a {
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 720;
}

.language-switch a.active {
  color: #fff;
  background: var(--ink);
}

.shell {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto 72px;
}

.search-minimal .shell {
  width: min(1280px, calc(100% - 36px));
}

.search-minimal:has(.search-atelier-results) .shell {
  width: min(1220px, calc(100% - 36px));
}

.search-atelier {
  padding-top: 50px;
}

.search-atelier-results {
  padding-top: 24px;
}

.search-intro {
  max-width: 1080px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-intro h1 {
  max-width: 1080px;
  margin: 4px 0 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: 0;
}

.source-search-form {
  max-width: 1080px;
}

.source-search-form-results {
  max-width: 1220px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.source-picker {
  position: relative;
  width: min(640px, 100%);
  margin-bottom: 18px;
}

.source-search-form-results .source-picker {
  width: 100%;
  margin-bottom: 0;
}

.source-picker summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.source-search-form-results .source-picker summary,
.source-search-form-results .search-line {
  box-shadow: none;
}

.source-search-form-results .source-picker summary {
  grid-template-columns: 116px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 11px 14px;
}

.source-picker summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

.source-picker summary::-webkit-details-marker {
  display: none;
}

.source-summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-summary-main,
.source-option {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.source-summary-main > span,
.source-option > span,
.results-source > span {
  min-width: 0;
}

.source-summary-main img,
.source-option img,
.result-source img {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.source-summary-main strong,
.source-option strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-summary-main .source-name-line,
.source-option .source-name-line,
.results-source .source-name-line,
.quiet-source-name {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.source-name-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-flag {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}

.source-summary-main small,
.source-option small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-search-form-results .source-summary-main img {
  width: 34px;
  height: 34px;
}

.source-search-form-results .source-summary-main strong {
  font-size: 15px;
}

.source-search-form-results .source-menu {
  width: 100%;
}

.source-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  width: min(640px, calc(100vw - 40px));
  max-height: min(72vh, 720px);
  overflow-y: auto;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(37, 34, 28, 0.14);
}

.source-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.source-site-list {
  display: grid;
  gap: 2px;
}

.source-scope-option {
  min-height: 68px;
  padding: 9px;
}

.source-scope-option small {
  white-space: normal;
}

.source-option {
  width: 100%;
  min-height: 58px;
  padding: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.source-option-active {
  cursor: pointer;
}

.source-option-active:hover {
  background: var(--paper-soft);
}

.source-option-selected {
  background: var(--green-soft);
}

.source-option-disabled {
  opacity: 0.55;
}

.source-logo-empty {
  width: 36px;
  height: 36px;
  background: var(--paper-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
}

.source-logo-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-style: solid;
  border-color: #d6e2d9;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.is-hidden {
  display: none !important;
}

.search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  min-height: 96px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.source-search-form-results .search-line {
  min-height: 82px;
  padding: 12px 14px;
  grid-template-columns: minmax(0, 1fr) 88px;
}

.source-search-form-results .search-line button {
  align-self: stretch;
  min-height: 54px;
}

.source-search-form-results input {
  min-height: 54px;
}

.input-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

input::placeholder {
  color: #aaa397;
}

input:focus,
select:focus,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button {
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 680;
  cursor: pointer;
}

button:hover {
  background: #000;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.notice {
  max-width: 1080px;
  margin: 20px 0 0;
  padding: 12px 14px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #cbd7c7;
  border-radius: 7px;
}

.notice.error {
  color: var(--error);
  background: #fff6f2;
  border-color: #edc8bc;
}

.results-workspace-header {
  max-width: 1220px;
  display: grid;
  gap: 24px;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
}

.results-title-block {
  display: grid;
  gap: 12px;
}

.back-link {
  width: max-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--green);
  border-color: var(--line-strong);
}

.results-title-block h1 {
  max-width: 1040px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: 0;
}

.results-title-block h1 span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.results-title-block h1 strong {
  display: block;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.results-summary-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 20px;
}

.results-source {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.results-source img {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.results-source strong,
.results-source small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-source strong {
  font-size: 14px;
  font-weight: 680;
}

.results-source small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-stat-card {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

a.result-stat-card:hover,
.result-stat-card-active {
  color: var(--green);
}

.result-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-stat-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 720;
  line-height: 1.1;
}

a.result-stat-card:hover strong,
.result-stat-card-active strong {
  color: var(--green);
}

.result-partition-tabs {
  max-width: 1220px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.result-partition-tabs a {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-partition-tabs a:hover {
  color: var(--green);
  border-color: var(--line-strong);
}

.result-partition-tabs a.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.result-partition-tabs span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.result-partition-tabs strong {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.result-partition-tabs small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.result-partition-tabs a.active small {
  color: rgba(255, 255, 255, 0.68);
}

.result-partition-tabs b {
  font-size: 24px;
  font-weight: 760;
  line-height: 1;
}

.result-nav-row {
  max-width: 1220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.result-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-tabs a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 720;
}

.result-tabs a:hover {
  color: var(--green);
  background: var(--paper-soft);
}

.result-tabs a.active {
  color: #fff;
  background: var(--ink);
}

.result-tabs strong {
  font-size: 14px;
}

.sort-switch {
  min-width: 188px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sort-switch a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.sort-switch a:hover {
  color: var(--green);
  background: var(--paper-soft);
}

.sort-switch a.active {
  color: #fff;
  background: var(--ink);
}

.minimal-result-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 1220px;
  margin: 44px 0 8px;
  padding-bottom: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.search-atelier-results + .minimal-result-heading {
  margin-top: 28px;
}

.minimal-result-heading p,
.minimal-result-heading span {
  margin: 0;
  font-size: 13px;
}

.result-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.export-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.export-link:hover {
  color: var(--green);
  border-color: var(--line-strong);
}

.minimal-results {
  max-width: 1220px;
}

.result-section {
  max-width: 1220px;
  margin-top: 34px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 680;
  line-height: 1.25;
}

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.result-group-block + .result-group-block {
  margin-top: 28px;
}

.result-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
}

.result-group-heading h3 {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.result-group-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-group-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(23, 68, 33, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
}

.result-group-forum .result-group-label {
  color: var(--ink-soft);
  background: var(--paper-soft);
  border-color: var(--line);
}

.result-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.result-row-clickable:hover {
  background: rgba(255, 254, 250, 0.55);
}

.row-detail-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 6px;
}

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

.empty-result-row {
  padding: 18px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.result-source {
  position: relative;
  z-index: 0;
  padding-top: 3px;
}

.result-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-source-type {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.result-source-type-media {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(23, 68, 33, 0.12);
}

.result-source-type-forum {
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.result-body h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.3;
}

.result-body h2 a {
  position: relative;
  z-index: 2;
}

.result-body p {
  max-width: 960px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

mark {
  padding: 0 2px;
  background: #efe4b7;
  border-radius: 3px;
}

.open-link,
.pagination a {
  position: relative;
  z-index: 2;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.open-link:hover,
.pagination a:hover {
  color: var(--green);
  border-color: var(--line-strong);
}

.minimal-pagination {
  max-width: 1220px;
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.detail-page .shell {
  width: min(1180px, calc(100% - 36px));
}

.detail-hero {
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-nav,
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-nav {
  margin-bottom: 26px;
}

.detail-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(130px, 0.8fr));
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.detail-meta-grid > div:not(.results-source) {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.detail-meta-grid span,
.detail-post-meta dt {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.detail-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.detail-post {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-post-primary,
.detail-post-focus {
  border-color: var(--line-strong);
}

.detail-post-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-post-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.detail-post-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.detail-post-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.detail-body {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.quiet-state {
  max-width: 1080px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.search-empty-state {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 254, 250, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.search-empty-state h2 {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.24;
  font-weight: 620;
}

.search-empty-state p:not(.eyebrow) {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.search-empty-state .eyebrow {
  color: var(--muted);
  font-size: 11px;
}

.quiet-state-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.search-suggestion-panel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.search-suggestion-panel > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.search-suggestion-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggestion-panel a,
.search-empty-monitor {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0 11px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #d6e2d9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
}

.search-suggestion-panel a:hover,
.search-empty-monitor:hover {
  border-color: #b9cbbb;
}

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

.workspace-header h1 {
  margin: 2px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
}

.status-running {
  color: #8a5a00;
  background: #fff4d7;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px;
}

.panel {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-heading {
  margin-bottom: 14px;
}

.panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.metrics div {
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--line);
}

.metrics dt {
  color: var(--muted);
  font-size: 13px;
}

.metrics dd {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 720;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.source-management {
  margin-top: 16px;
}

.source-config-panel {
  margin-top: 16px;
}

.source-config-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.source-config-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.source-config-form input,
.source-config-form select,
.source-config-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.source-config-form textarea {
  min-height: 88px;
  padding-top: 10px;
  resize: vertical;
}

.source-config-form small {
  color: var(--muted);
  font-weight: 500;
}

.source-wide-field {
  grid-column: span 2;
}

.source-active-row {
  min-height: 42px;
  align-content: center;
}

.source-config-form button {
  align-self: end;
  min-height: 44px;
}

.source-management-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.source-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.source-admin-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.source-admin-data {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(360px, 1.8fr) minmax(170px, 0.7fr);
  align-items: center;
  gap: 18px;
}

.source-admin-site {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.source-admin-site img,
.source-admin-site .source-logo-empty {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  object-fit: contain;
  flex: 0 0 auto;
}

.source-admin-site small,
.source-admin-last-run small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.source-run-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  margin-left: auto;
  border-radius: 999px;
  color: #8a5a00;
  background: #fff4d7;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.source-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.source-admin-metrics div {
  min-width: 0;
}

.source-admin-metrics dt,
.source-admin-last-run span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.source-admin-metrics dd {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 760;
}

.source-admin-last-run {
  min-width: 0;
}

.source-admin-last-run strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.source-progress {
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.source-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.source-progress-head strong {
  color: var(--ink);
}

.source-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.source-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.source-progress-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.source-backfill-progress {
  padding-top: 12px;
}

.source-backfill-metrics {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.source-progress-metrics div {
  min-width: 0;
}

.source-progress-metrics dt,
.source-progress p span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.source-progress-metrics dd {
  margin: 1px 0 0;
  font-size: 16px;
  font-weight: 760;
}

.source-progress p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.source-progress p span {
  display: block;
  margin-bottom: 2px;
}

.source-crawl-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.72fr) minmax(240px, 1.1fr) minmax(180px, 0.8fr);
  align-items: end;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.source-crawl-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.source-crawl-form select,
.source-crawl-form input[type="number"] {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.source-force-row {
  min-height: 42px;
  align-content: center;
}

.source-crawl-form button {
  min-height: 44px;
}

.source-crawl-form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.history-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.run-history {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

th,
td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 720;
}

tbody tr:hover {
  background: var(--paper-soft);
}

.monitor-page {
  background: #fbfbf8;
}

.monitor-detail-shell {
  width: min(100% - 48px, 1320px);
  display: grid;
  gap: 18px;
  margin: 34px auto 72px;
}

.monitor-detail-header {
  display: grid;
  gap: 10px;
  padding: 16px 0 10px;
}

.monitor-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.monitor-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 0.98;
  font-weight: 680;
  letter-spacing: 0;
}

.monitor-detail-header > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.monitor-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
}

.monitor-status.high {
  color: #c83832;
  background: #fff0ef;
}

.monitor-status.medium {
  color: #b76b16;
  background: #fff6e7;
}

.monitor-status.low {
  color: #356ca8;
  background: #edf4fb;
}

.monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 680;
}

.primary-action {
  color: #fff;
  background: var(--ink);
}

.secondary-action {
  color: var(--green);
  background: var(--green-soft);
}

.monitor-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.monitor-metrics article {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.monitor-metrics span,
.monitor-metrics small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.monitor-metrics strong {
  color: #d2a21a;
  font-size: 32px;
  line-height: 1;
  font-weight: 780;
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
}

.monitor-trend-panel,
.monitor-signal-panel,
.monitor-source-panel,
.monitor-recent-panel {
  padding: 20px;
}

.monitor-trend-bars {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.monitor-trend-column {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 7px;
}

.monitor-trend-column span {
  width: min(100%, 42px);
  align-self: end;
  background: linear-gradient(180deg, #d2a21a, #f0d889);
  border-radius: 999px 999px 8px 8px;
}

.monitor-trend-column strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.monitor-trend-column small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  text-align: center;
}

.monitor-signal-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.monitor-source-list,
.monitor-recent-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.monitor-source-list article,
.monitor-recent-list article {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.monitor-source-list article {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.monitor-source-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.monitor-source-main img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.monitor-source-main small,
.monitor-source-counts span,
.monitor-result-source,
.monitor-recent-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.monitor-source-counts {
  min-width: 86px;
  text-align: right;
}

.monitor-source-counts strong {
  display: block;
  color: #d2a21a;
  font-size: 22px;
  line-height: 1;
}

.monitor-source-list a,
.monitor-recent-list a {
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.monitor-recent-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.monitor-recent-list h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.monitor-recent-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.monitors-page {
  background: #fbfbf8;
}

.monitors-shell {
  width: min(100% - 48px, 1320px);
  display: grid;
  gap: 18px;
  margin: 34px auto 72px;
}

.monitors-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 10px;
}

.monitors-header h1 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.98;
  font-weight: 680;
  letter-spacing: 0;
}

.monitors-header p:not(.eyebrow) {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.monitors-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.monitor-list-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.monitor-list-summary article {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.monitor-list-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.monitor-list-summary strong {
  color: #d2a21a;
  font-size: 34px;
  line-height: 1;
  font-weight: 780;
}

.monitor-create-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: start;
  padding: 22px;
  border-radius: 18px;
}

.monitor-create-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.08;
  font-weight: 680;
}

.monitor-create-copy p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.monitor-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 12px;
  align-items: end;
}

.monitor-create-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.monitor-create-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.monitor-create-form input,
.monitor-create-form select {
  min-height: 52px;
  background: #fff;
  border-radius: 12px;
}

.monitor-create-form button {
  grid-column: 1 / -1;
  min-height: 54px;
  border-radius: 12px;
}

.monitors-list-panel {
  --monitor-list-columns: minmax(280px, 1.55fr) minmax(110px, 0.5fr) minmax(86px, 0.35fr) minmax(112px, 0.48fr) minmax(132px, 0.58fr) minmax(104px, 0.45fr);
  padding: 14px;
  border-radius: 18px;
}

.monitor-list-head,
.monitor-list-row {
  display: grid;
  grid-template-columns: var(--monitor-list-columns);
  align-items: center;
  gap: 18px;
}

.monitor-list-head {
  padding: 12px 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.monitor-list-head span,
.monitor-list-row > span {
  justify-self: start;
}

.monitor-list-head span:nth-child(3),
.monitor-list-row > span:nth-child(3) {
  justify-self: center;
  text-align: center;
}

.monitor-list-head span:last-child,
.monitor-list-row > span:last-child {
  justify-self: end;
  text-align: right;
}

.monitor-list {
  display: grid;
  gap: 8px;
}

.monitor-list-row {
  min-height: 74px;
  padding: 14px 10px;
  color: var(--ink);
  background: rgba(255, 255, 252, 0.66);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.monitor-list-row:first-child {
  border-top-color: var(--line);
}

.monitor-list-row:hover,
.monitor-list-row:focus-visible {
  background: var(--paper-soft);
  outline: 0;
}

.monitor-list-row > span:not(.monitor-row-status):not(.monitor-open-link) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.monitor-keyword-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.monitor-keyword-cell strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.monitor-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.03);
}

.monitor-dot.high {
  background: #c83832;
  box-shadow: 0 0 0 6px #fff0ef;
}

.monitor-dot.medium {
  background: #b76b16;
  box-shadow: 0 0 0 6px #fff6e7;
}

.monitor-dot.low {
  background: #356ca8;
  box-shadow: 0 0 0 6px #edf4fb;
}

.monitor-dot.normal {
  background: #0b6b43;
  box-shadow: 0 0 0 6px #e9f2ec;
}

.monitor-row-status {
  width: max-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
}

.monitor-row-status.high {
  color: #c83832;
  background: #fff0ef;
}

.monitor-row-status.medium {
  color: #b76b16;
  background: #fff6e7;
}

.monitor-row-status.low {
  color: #356ca8;
  background: #edf4fb;
}

.monitor-row-status.normal {
  color: #0b6b43;
  background: #e9f2ec;
}

.monitor-open-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
}

.reports-page {
  --watch-red: #c83832;
  --watch-red-soft: #fff0ef;
  --watch-amber: #b76b16;
  --watch-amber-soft: #fff6e7;
  --watch-blue: #356ca8;
  --watch-blue-soft: #edf4fb;
  background: #fbfbf8;
}

.reports-shell {
  width: min(100% - 48px, 1320px);
  display: grid;
  gap: 18px;
  margin: 34px auto 72px;
}

.reports-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 10px;
}

.reports-header h1 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 0.98;
  font-weight: 680;
  letter-spacing: 0;
}

.reports-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.report-date {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-summary-grid article {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-summary-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.report-summary-grid strong {
  color: #d2a21a;
  font-size: 34px;
  line-height: 1;
  font-weight: 780;
}

.reports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
}

.report-main-panel,
.report-source-panel,
.report-anomaly-panel,
.report-actions-panel {
  padding: 20px;
}

.report-main-panel > p,
.report-source-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.report-source-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.report-source-panel .secondary-action {
  width: max-content;
}

.report-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.report-category-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.report-category-strip svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.report-category-strip strong {
  color: #d2a21a;
}

.report-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.report-panel-heading a,
.report-anomaly-list a {
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.report-anomaly-list {
  display: grid;
  gap: 10px;
}

.report-anomaly-list article {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-anomaly-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.report-anomaly-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.report-actions-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: report-actions;
}

.report-actions-panel li {
  counter-increment: report-actions;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.report-actions-panel li::before {
  content: counter(report-actions);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
}

.trends-page {
  background: #fbfbf8;
}

.trends-shell {
  width: min(100% - 48px, 1320px);
  display: grid;
  gap: 18px;
  margin: 34px auto 72px;
}

.trends-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 10px;
}

.trends-header h1 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.98;
  font-weight: 680;
  letter-spacing: 0;
}

.trends-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.trends-control-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(160px, 0.7fr) minmax(180px, 0.8fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.trends-control-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.trends-control-panel select,
.trends-control-panel input[type="date"] {
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
}

.trend-custom-range {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.trend-custom-range[hidden] {
  display: none;
}

.trends-control-panel button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 720;
}

.google-trends-panel {
  padding: 20px;
}

.trends-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.trends-panel-heading > span {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.lite-trends-chart {
  margin-top: 14px;
  padding: 18px 18px 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.78), rgba(244, 242, 236, 0.86)),
    radial-gradient(circle at 82% 14%, rgba(210, 162, 26, 0.13), transparent 34%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.lite-trends-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.lite-axis {
  stroke: rgba(17, 24, 19, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.lite-grid {
  stroke: rgba(17, 24, 19, 0.07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.lite-trend-fill {
  fill: url(#trendFill);
  opacity: 0;
  animation: trend-fill-in 760ms cubic-bezier(0.22, 1, 0.36, 1) 420ms forwards;
}

.lite-trend-line-base,
.lite-trend-line {
  fill: none;
  stroke: url(#trendStroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.lite-trend-line-base {
  stroke-width: 5.2;
  opacity: 0.42;
}

.lite-trend-line {
  stroke-width: 5.6;
}

.lite-trend-line.is-animated {
  stroke-dasharray: var(--trend-line-length);
  stroke-dashoffset: var(--trend-line-length);
  animation: trend-draw 1300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lite-trend-point-group {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: trend-point-in 520ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay) forwards;
}

.lite-trend-halo {
  fill: rgba(210, 162, 26, 0.16);
  opacity: 0;
}

.lite-trend-point {
  fill: var(--paper);
  stroke: #d2a21a;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}

.lite-trend-point-group.final .lite-trend-halo {
  animation: trend-pulse 1900ms ease-out 1200ms infinite;
}

.lite-trend-point-group.final .lite-trend-point {
  stroke: #d79f00;
  stroke-width: 4.2;
}

.lite-trend-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.lite-trend-value {
  fill: var(--ink);
  opacity: 0;
  font-size: 12px;
  font-weight: 720;
  animation: trend-value-in 420ms ease-out calc(var(--delay) + 260ms) forwards;
}

.lite-trend-value.final {
  fill: #b98700;
  font-size: 14px;
  font-weight: 800;
}

.lite-trends-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.lite-trends-meta strong {
  color: #d2a21a;
  font-size: 16px;
}

@keyframes trend-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes trend-fill-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trend-point-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes trend-value-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trend-pulse {
  0% {
    opacity: 0.28;
    transform: scale(0.88);
  }
  70% {
    opacity: 0;
    transform: scale(1.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lite-trend-fill,
  .lite-trend-line.is-animated,
  .lite-trend-point-group,
  .lite-trend-value {
    animation: none;
    opacity: 1;
  }

  .lite-trend-line.is-animated {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .lite-trend-point-group.final .lite-trend-halo {
    animation: none;
  }
}

.google-trends-lazy {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.google-trends-lazy-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.google-trends-lazy-actions button,
.google-trends-lazy-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 720;
}

.google-trends-lazy-actions button {
  color: #fff;
  background: var(--ink);
  border: 0;
}

.google-trends-lazy-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.google-trends-lazy-actions a {
  color: var(--green);
  background: var(--green-soft);
}

.google-trends-chart {
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.google-trends-chart > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.google-trends-chart iframe {
  width: 100% !important;
  min-height: 390px !important;
  border: 0 !important;
}

.watchlist-home,
.global-app-shell {
  --watch-bg: #fbfbf8;
  --watch-surface: rgba(255, 255, 252, 0.84);
  --watch-surface-soft: rgba(246, 248, 244, 0.82);
  --watch-ink: #101311;
  --watch-ink-soft: #444b46;
  --watch-muted: #758077;
  --watch-line: rgba(17, 24, 19, 0.09);
  --watch-line-strong: rgba(17, 24, 19, 0.15);
  --watch-green: #075b37;
  --watch-green-soft: #e9f2ec;
  --watch-red: #c83832;
  --watch-red-soft: #fff0ef;
  --watch-amber: #b76b16;
  --watch-amber-soft: #fff6e7;
  --watch-blue: #356ca8;
  --watch-blue-soft: #edf4fb;
}

.watchlist-home {
  min-height: 100vh;
  background: var(--watch-bg);
  color: var(--watch-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.watchlist-home .topbar {
  display: none;
}

.watchlist-home .shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

.watch-app-shell,
.global-app-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}

.global-app-shell {
  background: var(--watch-bg);
  color: var(--watch-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.global-workspace {
  min-width: 0;
}

.global-topbar {
  min-height: 72px;
  width: min(1320px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 16px 0 8px;
}

.global-topbar .language-switch {
  background: rgba(255, 255, 253, 0.76);
  border-color: var(--watch-line);
  backdrop-filter: blur(16px);
}

.watch-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  padding: 26px 12px 24px;
  background: rgba(246, 247, 244, 0.64);
  border-right: 1px solid var(--watch-line);
  backdrop-filter: blur(22px);
}

.watch-brand,
.watch-nav a,
.watch-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--watch-ink-soft);
}

.watch-brand {
  min-height: 42px;
  padding: 0 10px;
  color: var(--watch-ink);
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.watch-brand-logo {
  width: 152px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.watch-brand-mark,
.watch-nav svg,
.watch-settings svg {
  flex: 0 0 auto;
}

.watch-brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--watch-green);
  background: rgba(7, 91, 55, 0.08);
  border-radius: 999px;
}

.watch-brand svg,
.watch-commandbar svg,
.watch-panel svg,
.watch-quick-actions svg {
  width: 18px;
  height: 18px;
}

.watch-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 4px;
}

.watch-nav a,
.watch-settings {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 530;
  letter-spacing: -0.01em;
}

.watch-nav a:hover,
.watch-settings:hover {
  color: var(--watch-green);
  background: rgba(255, 255, 255, 0.48);
}

.watch-nav a.active {
  color: var(--watch-green);
  background: rgba(231, 239, 233, 0.84);
  box-shadow: inset 0 0 0 1px rgba(7, 91, 55, 0.04);
}

.watch-settings {
  margin-top: auto;
}

.watch-workspace {
  min-width: 0;
}

.watch-commandbar {
  min-height: 90px;
  width: min(1340px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 196px minmax(280px, 1fr) 150px 188px 54px;
  gap: 14px;
  align-items: center;
  margin: 0 auto;
  padding: 18px 0 14px;
}

.watch-commandbar button,
.watch-commandbar a,
.watch-date-range,
.watch-command-search {
  min-height: 52px;
  background: rgba(255, 255, 253, 0.72);
  border: 1px solid var(--watch-line);
  border-radius: 15px;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.watch-commandbar button,
.watch-commandbar a,
.watch-date-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--watch-ink);
  font-size: 14px;
  font-weight: 550;
}

.watch-commandbar button:hover,
.watch-commandbar a:hover,
.watch-date-range:hover,
.watch-command-search:focus-within {
  border-color: var(--watch-line-strong);
  background: rgba(255, 255, 255, 0.92);
}

.watch-workspace-picker {
  justify-content: space-between !important;
}

.watch-date-menu {
  position: relative;
}

.watch-date-range {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.watch-date-range::-webkit-details-marker {
  display: none;
}

.watch-date-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 253, 0.96);
  border: 1px solid var(--watch-line);
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(29, 35, 30, 0.11);
  backdrop-filter: blur(18px);
}

.watch-date-options a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: var(--watch-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 540;
}

.watch-date-options a:hover,
.watch-date-options a.active {
  color: var(--watch-green);
  background: var(--watch-green-soft);
}

.watch-command-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 13px 0 16px;
}

.watch-command-search input {
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--watch-ink);
  font-size: 14px;
}

.watch-command-search input:focus {
  outline: 0;
}

.watch-command-search input::placeholder {
  color: #8c968e;
}

.watch-command-search kbd {
  min-width: 36px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--watch-muted);
  background: rgba(244, 246, 242, 0.9);
  border: 1px solid var(--watch-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 560;
}

.watch-new-monitor {
  min-width: 0;
  color: #f7fff9 !important;
  background: #0a633c !important;
  border-color: rgba(7, 91, 55, 0.24) !important;
  box-shadow: 0 14px 32px rgba(7, 91, 55, 0.1) !important;
}

.watch-new-monitor:hover {
  background: #075633 !important;
}

.watch-user {
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.watch-user span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--watch-ink);
  background: rgba(239, 241, 238, 0.88);
  border: 1px solid var(--watch-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 620;
}

.watch-main {
  width: min(1340px, calc(100% - 48px));
  display: grid;
  gap: 34px;
  margin: 32px auto 64px;
}

.watch-hero {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.watch-kicker {
  margin: 0;
  color: var(--watch-muted);
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.02em;
}

.watch-hero-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.16em;
  color: var(--watch-ink);
  font-size: clamp(42px, 4.3vw, 58px);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.02;
}

.watch-monitor-number {
  color: #d2a21a;
  font-size: 1.08em;
  font-weight: 720;
}

.watch-monitor-label {
  color: #27302a;
  font-weight: 620;
}

.watch-hero-summary {
  margin: 0;
  color: #667066;
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
}

.watch-hero-summary span {
  color: #d2a21a;
  font-weight: 720;
}

.watch-category-strip {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  padding: 7px;
  background: rgba(255, 255, 253, 0.64);
  border: 1px solid var(--watch-line);
  border-radius: 18px;
}

.watch-category-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--watch-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 540;
}

.watch-category-pill:hover {
  color: var(--watch-green);
  background: rgba(233, 242, 236, 0.68);
}

.watch-category-pill svg {
  width: 17px;
  height: 17px;
}

.watch-category-pill strong {
  color: #d2a21a;
  font-size: 15px;
  font-weight: 760;
}

.watch-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(284px, 328px);
  gap: 34px;
  align-items: stretch;
}

.watch-panel {
  background: var(--watch-surface);
  border: 1px solid var(--watch-line);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(29, 35, 30, 0.035);
  backdrop-filter: blur(18px);
}

.watch-anomalies {
  padding: 6px 8px 6px;
}

.watch-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 24px 26px 12px;
}

.watch-section-heading h2,
.watch-brief h2 {
  margin: 3px 0 0;
  color: var(--watch-ink);
  font-size: 22px;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.watch-section-heading a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--watch-green);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 570;
}

.watch-section-heading a:hover {
  background: var(--watch-green-soft);
}

.watch-anomaly-list {
  display: grid;
}

.watch-anomaly-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto 20px;
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 18px 18px 18px 26px;
  color: inherit;
  border-top: 1px solid var(--watch-line);
  border-radius: 18px;
  text-decoration: none;
}

.watch-anomaly-row:first-child {
  border-top-color: transparent;
}

.watch-anomaly-row:hover,
.watch-anomaly-row:focus-visible {
  background: rgba(249, 250, 247, 0.78);
  outline: 0;
}

.watch-status-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.03);
}

.watch-status-dot.high {
  background: var(--watch-red);
  box-shadow: 0 0 0 6px var(--watch-red-soft);
}

.watch-status-dot.medium {
  background: var(--watch-amber);
  box-shadow: 0 0 0 6px var(--watch-amber-soft);
}

.watch-status-dot.low {
  background: var(--watch-blue);
  box-shadow: 0 0 0 6px var(--watch-blue-soft);
}

.watch-anomaly-copy {
  min-width: 0;
}

.watch-anomaly-copy h3 {
  margin: 0;
  color: var(--watch-ink);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.watch-anomaly-copy p {
  margin: 6px 0 0;
  color: #657067;
  font-size: 14px;
  line-height: 1.45;
}

.watch-severity {
  min-width: 70px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 560;
}

.watch-severity.high {
  color: var(--watch-red);
  background: var(--watch-red-soft);
}

.watch-severity.medium {
  color: var(--watch-amber);
  background: var(--watch-amber-soft);
}

.watch-severity.low {
  color: var(--watch-blue);
  background: var(--watch-blue-soft);
}

.watch-text-button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--watch-green);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 570;
}

.watch-text-button:hover {
  background: var(--watch-green-soft);
}

.watch-anomaly-row > svg {
  color: #56615a;
}

.watch-brief {
  display: grid;
  align-content: start;
  padding: 32px 28px;
}

.watch-brief p:not(.watch-kicker) {
  margin: 24px 0 0;
  color: #59645d;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -0.01em;
}

.watch-brief-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--watch-line);
}

.watch-soft-action {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--watch-ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--watch-line);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 560;
}

.watch-soft-action:hover,
.watch-soft-action.primary {
  color: var(--watch-green);
  background: rgba(233, 242, 236, 0.66);
  border-color: rgba(7, 91, 55, 0.12);
}

.watch-soft-action svg {
  width: 19px;
  height: 19px;
}

.watch-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--watch-line);
}

.watch-quick-actions a {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--watch-ink-soft);
  border-radius: 15px;
  font-size: 15px;
  font-weight: 560;
}

.watch-quick-actions a:hover {
  color: var(--watch-green);
  background: rgba(233, 242, 236, 0.58);
}

.watch-quick-actions svg {
  color: var(--watch-green);
}

@media (max-width: 1180px) {
  .monitor-list-head {
    display: none;
  }

  .monitor-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .monitor-list-row > span:not(.monitor-row-status):not(.monitor-open-link) {
    display: none;
  }

  .monitor-grid,
  .monitor-source-list article {
    grid-template-columns: 1fr;
  }

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

  .source-config-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-custom-range {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .monitor-source-counts {
    text-align: left;
  }

  .source-admin-row {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1fr);
    align-items: start;
  }

  .source-crawl-form {
    grid-column: 1 / -1;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(180px, 1fr);
  }

  .source-force-row {
    grid-column: auto;
    align-self: center;
    padding-bottom: 10px;
  }

  .source-crawl-form button {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
    padding: 0 20px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .language-switch a {
    min-width: 40px;
    padding: 0 8px;
  }

  .shell,
  .search-minimal .shell {
    width: min(100% - 28px, 1040px);
    margin-bottom: 44px;
  }

  .search-atelier {
    padding-top: 34px;
  }

  .search-intro {
    margin-bottom: 26px;
  }

  .search-intro h1 {
    font-size: 43px;
  }

  .source-picker summary {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .source-summary-label {
    grid-column: 1 / -1;
  }

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

  .search-line {
    grid-template-columns: 1fr;
  }

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

  .source-search-form-results .source-picker,
  .source-search-form-results .source-picker summary,
  .source-search-form-results .search-line {
    height: auto;
  }

  .search-line button {
    width: 100%;
  }

  .result-nav-row {
    grid-template-columns: 1fr;
  }

  .result-partition-tabs {
    grid-template-columns: 1fr;
  }

  .sort-switch {
    width: 100%;
  }

  .minimal-result-heading,
  .quiet-state-line,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .result-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .results-title-block h1 {
    font-size: 36px;
  }

  .results-summary-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .result-stats {
    width: 100%;
  }

  .monitor-create-panel,
  .monitor-create-form {
    grid-template-columns: 1fr;
  }

  .detail-page .shell {
    width: min(100% - 28px, 980px);
  }

  .detail-hero h1 {
    font-size: 34px;
  }

  .detail-meta-grid,
  .detail-post-meta {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid > div:not(.results-source) {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .detail-post {
    padding: 16px;
  }

  .detail-post-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .open-link {
    grid-column: 2;
    width: max-content;
  }

  .workspace-header,
  .admin-grid,
  .metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .monitor-detail-shell {
    width: min(100% - 28px, 1180px);
    margin-top: 24px;
  }

  .monitors-shell {
    width: min(100% - 28px, 1180px);
    margin-top: 24px;
  }

  .reports-shell {
    width: min(100% - 28px, 1180px);
    margin-top: 24px;
  }

  .trends-shell {
    width: min(100% - 28px, 1180px);
    margin-top: 24px;
  }

  .monitors-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-header,
  .trends-header,
  .trends-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trends-panel-heading > span {
    text-align: left;
  }

  .google-trends-chart,
  .google-trends-chart iframe {
    min-height: 320px !important;
  }

  .monitors-actions {
    justify-content: flex-start;
  }

  .monitor-list-summary {
    grid-template-columns: 1fr;
  }

  .report-summary-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-anomaly-list article {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .report-anomaly-list .watch-severity,
  .report-anomaly-list a {
    grid-column: 2;
    justify-self: start;
  }

  .monitor-title-row h1 {
    font-size: 42px;
  }

  .monitor-metrics,
  .monitor-grid,
  .monitor-source-list article,
  .monitor-recent-list article {
    grid-template-columns: 1fr;
  }

  .monitor-trend-bars {
    height: 220px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .monitor-trend-column {
    min-width: 54px;
  }

  .monitor-source-counts {
    text-align: left;
  }

  .source-admin-row,
  .source-admin-data,
  .source-config-form,
  .source-crawl-form,
  .source-admin-metrics,
  .source-progress-metrics {
    grid-template-columns: 1fr;
  }

  .source-wide-field {
    grid-column: auto;
  }

  .source-admin-row {
    gap: 14px;
    padding: 14px;
  }

  .source-admin-site {
    align-items: flex-start;
  }

  .source-run-pill {
    margin-left: 0;
  }

  .source-crawl-form button,
  .source-force-row {
    grid-column: auto;
  }

  .watch-app-shell,
  .global-app-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .global-workspace,
  .global-shell {
    width: min(100% - 28px, 1120px);
    max-width: calc(100% - 28px);
    min-width: 0;
  }

  .global-topbar {
    min-height: 58px;
    width: min(100% - 28px, 1120px);
    padding: 12px 0 4px;
  }

  .watch-sidebar {
    position: relative;
    height: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--watch-line);
  }

  .watch-brand {
    min-height: 42px;
    padding: 0 8px;
  }

  .watch-nav {
    display: flex;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 12px 0 0;
  }

  .watch-nav a,
  .watch-settings {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .watch-settings {
    display: none;
  }

  .watch-commandbar {
    width: min(100% - 28px, 1140px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .watch-commandbar button,
  .watch-commandbar a,
  .watch-date-menu,
  .watch-date-range,
  .watch-command-search {
    width: 100%;
  }

  .watch-date-options {
    right: 0;
    left: 0;
  }

  .watch-main {
    width: min(100% - 28px, 1140px);
    gap: 26px;
    margin: 22px auto 44px;
  }

  .watch-hero-title {
    font-size: 38px;
  }

  .watch-category-strip {
    width: 100%;
    flex-wrap: wrap;
  }

  .watch-category-pill {
    flex: 1 1 42%;
    justify-content: center;
  }

  .watch-content-grid,
  .watch-quick-actions {
    grid-template-columns: 1fr;
  }

  .watch-section-heading {
    align-items: start;
    flex-direction: column;
    padding: 20px 18px 8px;
  }

  .watch-anomaly-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    padding: 16px 14px;
  }

  .watch-anomaly-row .watch-severity,
  .watch-anomaly-row .watch-text-button {
    grid-column: 2;
    justify-self: start;
  }

  .watch-anomaly-row > svg {
    grid-column: 3;
    grid-row: 1;
  }

  .watch-brief {
    padding: 24px 20px;
  }
}

/* Aura-inspired local skin: preserve existing product functions, change only presentation. */
:root {
  color-scheme: dark;
  --page: #0c0c0c;
  --paper: rgba(255, 255, 255, 0.055);
  --paper-soft: rgba(255, 255, 255, 0.035);
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.76);
  --muted: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --green: #a4f4fd;
  --green-soft: rgba(61, 129, 227, 0.18);
  --error: #ff8b7f;
  --focus: rgba(164, 244, 253, 0.28);
  --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.42);
  --brand: #3d81e3;
  --cyan: #00d2ff;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-soft: rgba(255, 255, 255, 0.035);
  --glass-line: rgba(255, 255, 255, 0.12);
}

html,
body {
  min-height: 100%;
  background: #0c0c0c;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  color: #fff;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  left: 42%;
  top: -18vh;
  z-index: 1;
  width: min(1560px, 118vw);
  height: min(1240px, 112vh);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.82;
  transform: translateX(-45%) rotate(-18deg);
  transform-origin: center;
  background:
    radial-gradient(ellipse at 18% 74%, rgba(255, 255, 255, 0.82) 0%, rgba(164, 244, 253, 0.76) 6%, rgba(0, 210, 255, 0.45) 15%, rgba(11, 37, 81, 0.3) 34%, transparent 62%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, 0.72) 0%, rgba(164, 244, 253, 0.7) 5%, rgba(0, 210, 255, 0.38) 16%, rgba(11, 37, 81, 0.26) 38%, transparent 66%),
    linear-gradient(112deg, transparent 0%, transparent 31%, rgba(0, 210, 255, 0.42) 44%, rgba(255, 255, 255, 0.76) 49%, rgba(164, 244, 253, 0.54) 55%, rgba(11, 37, 81, 0.26) 65%, transparent 78%);
  filter: saturate(1.36) brightness(1.1);
  -webkit-mask-image: linear-gradient(112deg, transparent 0%, #000 30%, #000 66%, transparent 82%);
  mask-image: linear-gradient(112deg, transparent 0%, #000 30%, #000 66%, transparent 82%);
  animation: aura-body-beam-breathe 16s ease-in-out infinite;
}

::selection {
  background: rgba(61, 129, 227, 0.3);
}

.aura-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0c0c0c;
}

.aura-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(1.1) contrast(1.08) brightness(0.78);
}

.aura-background-dim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 56% 8%, rgba(0, 210, 255, 0.22), transparent 58%),
    radial-gradient(720px circle at 18% 28%, rgba(61, 129, 227, 0.15), transparent 62%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.2), rgba(12, 12, 12, 0.9) 72%, #0c0c0c);
}

.aura-background-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.aura-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.aura-guide-left {
  left: calc(50% - 36rem);
}

.aura-guide-right {
  right: calc(50% - 36rem);
}

.aura-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a:hover {
  color: #fff;
}

body > .topbar,
body > .shell,
.global-app-shell {
  position: relative;
  z-index: 2;
}

.topbar {
  width: min(1180px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  padding: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  color: #fff;
  font-weight: 800;
}

.brand strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand strong::before {
  content: "";
  width: 24px;
  height: 24px;
  background: #fff;
  clip-path: path("M 0 12 C 6.628 12 12 17.372 12 24 L 6 24 C 6 20.686 3.314 18 0 18 Z M 24 18 C 20.686 18 18 20.686 18 24 L 12 24 C 12 17.372 17.372 12 24 12 Z M 12 0 C 12 6.628 6.628 12 0 12 L 0 6 C 3.314 6 6 3.314 6 0 Z M 18 0 C 18 3.314 20.686 6 24 6 L 24 12 C 17.372 12 12 6.628 12 0 Z");
}

.language-switch {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.language-switch a {
  color: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
}

.language-switch a.active {
  color: #000;
  background: #fff;
}

.shell,
.search-minimal .shell {
  width: min(1180px, calc(100% - 48px));
}

.search-minimal:has(.search-atelier-results) .shell {
  width: min(1220px, calc(100% - 48px));
}

.search-atelier {
  padding-top: clamp(42px, 8vw, 112px);
}

.search-intro {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.eyebrow,
.watch-kicker {
  color: rgba(164, 244, 253, 0.74);
  letter-spacing: 0.18em;
}

.search-intro h1,
.results-title-block h1,
.workspace-header h1,
.monitor-title-row h1,
.monitors-header h1,
.reports-header h1,
.trends-header h1,
.watch-hero-title {
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.search-intro h1 {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  text-wrap: balance;
}

.search-intro h1 em,
.search-intro h1 strong,
.results-title-block h1 strong,
.watch-monitor-number {
  background-image: linear-gradient(to right, #091020 0%, #0b2551 12.5%, #a4f4fd 32.5%, #00d2ff 50%, #0b2551 67.5%, #091020 87.5%, #091020 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: url("#c3-noise");
  animation: aura-shiny 12s linear infinite;
}

@keyframes aura-shiny {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.source-picker summary,
.source-menu,
.search-line,
.results-summary-panel,
.result-partition-tabs a,
.result-tabs,
.sort-switch,
.back-link,
.export-link,
.open-link,
.pagination a,
.detail-post,
.search-empty-state,
.panel,
.monitor-metrics article,
.monitor-list-summary article,
.monitor-create-panel,
.monitors-list-panel,
.report-summary-card,
.lite-trends-chart,
.google-trends-lazy,
.watch-panel,
.watch-category-strip,
.watch-quick-actions a,
.watch-commandbar button,
.watch-commandbar a,
.watch-date-range,
.watch-command-search,
.watch-date-options,
.source-admin-row,
.source-progress,
.table-wrap {
  background: rgba(255, 255, 255, 0.055);
  background-blend-mode: luminosity;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.panel,
.watch-panel,
.detail-post,
.search-empty-state,
.monitor-metrics article,
.monitor-list-summary article,
.result-partition-tabs a,
.source-picker summary,
.search-line,
.source-menu,
.source-admin-row,
.lite-trends-chart {
  position: relative;
  overflow: hidden;
}

.panel::before,
.watch-panel::before,
.detail-post::before,
.search-empty-state::before,
.monitor-metrics article::before,
.monitor-list-summary article::before,
.result-partition-tabs a::before,
.source-picker summary::before,
.search-line::before,
.source-admin-row::before,
.lite-trends-chart::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 28%, transparent 48%, rgba(255, 255, 255, 0.12) 82%, rgba(255, 255, 255, 0.36));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.source-picker summary,
.search-line,
.panel,
.detail-post,
.source-admin-row,
.watch-panel,
.lite-trends-chart,
.search-empty-state {
  border-radius: 18px;
}

.source-menu {
  border-radius: 18px;
  z-index: 50;
}

.source-option-active:hover,
.source-option-selected,
.result-row-clickable:hover,
.monitor-list-row:hover,
.monitor-list-row:focus-visible,
.watch-anomaly-row:hover,
.watch-anomaly-row:focus-visible,
.watch-category-pill:hover,
.watch-soft-action:hover,
.watch-soft-action.primary,
.watch-quick-actions a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.source-summary-main strong,
.source-option strong,
.results-source strong,
.result-stat-card strong,
.detail-meta-grid strong,
.detail-post-meta dd,
.panel h2,
.metrics dd,
.source-admin-metrics dd,
.source-progress-metrics dd,
.monitor-metrics strong,
.monitor-source-counts strong,
.monitor-list-summary strong,
.monitor-keyword-cell strong,
.reports-header h1,
.watch-section-heading h2,
.watch-brief h2,
.watch-anomaly-copy h3,
.watch-soft-action,
.watch-category-pill strong {
  color: #fff;
}

.source-summary-main small,
.source-option small,
.results-source small,
.result-stat-card span,
.detail-meta-grid span,
.detail-post-meta dt,
.muted,
.source-config-form label,
.source-admin-metrics dt,
.source-admin-last-run span,
.source-progress-metrics dt,
.monitor-metrics span,
.monitor-metrics small,
.monitor-detail-header > p:not(.eyebrow),
.monitors-header p:not(.eyebrow),
.reports-header p:not(.eyebrow),
.trends-header p:not(.eyebrow),
.monitor-create-copy p:not(.eyebrow),
.watch-hero-summary,
.watch-anomaly-copy p,
.watch-brief p:not(.watch-kicker),
.empty-result-row,
.result-body p,
.detail-body,
.quiet-state-line,
.search-empty-state h2,
.search-empty-state p:not(.eyebrow),
.result-kicker,
.section-heading > span,
.result-group-heading > span,
.report-date,
.lite-trends-meta,
.source-progress p {
  color: rgba(255, 255, 255, 0.58);
}

input,
select,
textarea,
.source-config-form input,
.source-config-form select,
.source-config-form textarea,
.monitor-create-form input,
.monitor-create-form select,
.trends-control-panel select,
.trends-control-panel input[type="date"],
.source-crawl-form select,
.source-crawl-form input[type="number"] {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

input::placeholder,
.watch-command-search input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(164, 244, 253, 0.42);
  outline-offset: 3px;
}

button,
.primary-action,
.secondary-action,
.back-link,
.export-link,
.open-link,
.pagination a,
.watch-new-monitor,
.watch-soft-action,
.google-trends-lazy-actions button,
.google-trends-lazy-actions a,
.search-suggestion-panel a,
.search-empty-monitor {
  border-radius: 999px;
}

button,
.primary-action,
.watch-new-monitor,
.google-trends-lazy-actions button {
  color: #000 !important;
  background: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.12) !important;
}

button:hover,
.primary-action:hover,
.watch-new-monitor:hover,
.google-trends-lazy-actions button:hover {
  color: #000 !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.secondary-action,
.back-link,
.export-link,
.open-link,
.pagination a,
.watch-soft-action,
.google-trends-lazy-actions a,
.search-suggestion-panel a,
.search-empty-monitor {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.13);
}

.secondary-action:hover,
.back-link:hover,
.export-link:hover,
.open-link:hover,
.pagination a:hover,
.google-trends-lazy-actions a:hover,
.search-suggestion-panel a:hover,
.search-empty-monitor:hover {
  color: #fff;
  border-color: rgba(164, 244, 253, 0.48);
}

.notice {
  color: #a4f4fd;
  background: rgba(61, 129, 227, 0.16);
  border-color: rgba(164, 244, 253, 0.28);
}

.notice.error {
  color: #ffb1a9;
  background: rgba(255, 95, 87, 0.13);
  border-color: rgba(255, 95, 87, 0.3);
}

mark {
  color: #fff;
  background: rgba(0, 210, 255, 0.24);
  border-radius: 4px;
}

.source-summary-main img,
.source-option img,
.result-source img,
.results-source img,
.monitor-source-main img,
.source-admin-site img,
.watch-brand-logo {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.source-logo-empty,
.source-admin-site .source-logo-empty {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.source-logo-all,
.result-group-label,
.result-source-type-media,
.status-pill,
.monitor-status,
.monitor-row-status,
.watch-severity {
  color: #a4f4fd;
  background: rgba(61, 129, 227, 0.18);
  border-color: rgba(164, 244, 253, 0.24);
}

.status-running,
.monitor-status.medium,
.monitor-row-status.medium,
.watch-severity.medium {
  color: #ffd18a;
  background: rgba(245, 158, 11, 0.14);
}

.monitor-status.high,
.monitor-row-status.high,
.watch-severity.high {
  color: #ff9a90;
  background: rgba(255, 95, 87, 0.14);
}

.monitor-status.low,
.monitor-row-status.low,
.watch-severity.low {
  color: #a4f4fd;
  background: rgba(0, 210, 255, 0.13);
}

.result-source-type-forum,
.result-group-forum .result-group-label {
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.result-partition-tabs a.active,
.result-tabs a.active,
.sort-switch a.active {
  color: #000;
  background: #fff;
}

.result-partition-tabs a.active small {
  color: rgba(0, 0, 0, 0.62);
}

.result-tabs a,
.sort-switch a {
  color: rgba(255, 255, 255, 0.55);
}

.result-tabs a:hover,
.sort-switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.result-row,
.empty-result-row,
.section-heading,
.result-group-heading,
.detail-hero,
.detail-post-header,
.minimal-result-heading,
.results-workspace-header,
.metrics div,
.source-scope-grid,
.source-admin-metrics div,
.source-progress-metrics div,
.monitor-list-row,
.monitor-list-head,
.watch-anomaly-row,
.watch-brief-actions,
.watch-quick-actions,
.report-panel-heading,
.report-anomaly-list article {
  border-color: rgba(255, 255, 255, 0.1);
}

.result-row {
  padding-inline: 10px;
  border-radius: 14px;
}

.result-body h2 {
  letter-spacing: -0.01em;
}

.detail-hero h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.detail-post-primary,
.detail-post-focus {
  border-color: rgba(164, 244, 253, 0.3);
}

.workspace-header,
.monitor-detail-header,
.monitors-header,
.reports-header,
.trends-header,
.results-workspace-header {
  padding-top: 28px;
}

.admin-grid,
.reports-grid,
.monitor-grid,
.watch-content-grid,
.report-summary-grid,
.monitor-list-summary,
.monitor-metrics {
  gap: 18px;
}

.source-admin-row {
  background: rgba(255, 255, 255, 0.045);
}

.source-progress-bar {
  background: rgba(255, 255, 255, 0.09);
}

.source-progress-bar span {
  background: linear-gradient(90deg, #3d81e3, #00d2ff, #a4f4fd);
}

.table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  color: rgba(164, 244, 253, 0.74);
  background: rgba(0, 0, 0, 0.22);
}

td {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

.monitor-trend-bars {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.monitor-trend-column span {
  background: linear-gradient(180deg, rgba(164, 244, 253, 0.95), rgba(61, 129, 227, 0.75));
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.22);
}

.lite-axis,
.lite-grid {
  stroke: rgba(255, 255, 255, 0.14);
}

.lite-trend-fill {
  fill: rgba(0, 210, 255, 0.12);
}

.lite-trend-line-base,
.lite-trend-line {
  stroke: #00d2ff;
}

.lite-trend-point,
.lite-trend-point-group.final .lite-trend-point {
  fill: #a4f4fd;
}

.lite-trend-halo,
.lite-trend-point-group.final .lite-trend-halo {
  fill: rgba(0, 210, 255, 0.16);
}

.lite-trend-label,
.lite-trend-value {
  fill: rgba(255, 255, 255, 0.58);
}

.lite-trend-value.final {
  fill: #a4f4fd;
}

.watchlist-home,
.monitor-page,
.monitors-page,
.reports-page,
.trends-page,
.global-app-shell,
.watch-app-shell {
  --watch-bg: transparent;
  --watch-surface: rgba(255, 255, 255, 0.055);
  --watch-surface-soft: rgba(255, 255, 255, 0.035);
  --watch-ink: #ffffff;
  --watch-ink-soft: rgba(255, 255, 255, 0.74);
  --watch-muted: rgba(255, 255, 255, 0.48);
  --watch-line: rgba(255, 255, 255, 0.1);
  --watch-line-strong: rgba(255, 255, 255, 0.2);
  --watch-green: #a4f4fd;
  --watch-green-soft: rgba(61, 129, 227, 0.18);
  --watch-red: #ff8b7f;
  --watch-red-soft: rgba(255, 95, 87, 0.14);
  --watch-amber: #ffd18a;
  --watch-amber-soft: rgba(245, 158, 11, 0.14);
  --watch-blue: #a4f4fd;
  --watch-blue-soft: rgba(0, 210, 255, 0.13);
  background: transparent;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.watchlist-home,
.monitor-page,
.monitors-page,
.reports-page,
.trends-page,
.search-minimal,
.detail-page,
.admin-page,
.sources-page {
  background: #0c0c0c;
  color: #fff;
}

.watch-sidebar {
  background: rgba(3, 5, 9, 0.58);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
}

.watch-brand,
.watch-nav a,
.watch-settings {
  color: rgba(255, 255, 255, 0.68);
}

.watch-brand {
  color: #fff;
}

.watch-brand-logo {
  border-radius: 10px;
}

.watch-nav a,
.watch-settings {
  border-radius: 999px;
}

.watch-nav a:hover,
.watch-settings:hover,
.watch-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.watch-nav a.active {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.global-topbar,
.watch-commandbar {
  backdrop-filter: blur(20px);
}

.global-topbar {
  justify-content: flex-end;
}

.watch-workspace,
.global-workspace {
  background: transparent;
}

.watch-commandbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-command-search input {
  color: #fff;
  background: transparent;
}

.watch-command-search kbd {
  color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.watch-date-options {
  border-radius: 18px;
}

.watch-date-options a {
  color: rgba(255, 255, 255, 0.66);
  border-radius: 12px;
}

.watch-date-options a:hover,
.watch-date-options a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.watch-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.watch-hero-title {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.92;
}

.watch-monitor-label {
  color: #fff;
}

.watch-hero-summary span {
  color: #a4f4fd;
}

.watch-hero-actions {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.watch-hero-action {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 38, 46, 0.82), rgba(14, 18, 27, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 24px 70px rgba(0, 0, 0, 0.3), 0 0 44px rgba(0, 210, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.18);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, background 0.28s ease;
}

.watch-hero-action:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(164, 244, 253, 0.42);
  background: linear-gradient(135deg, rgba(48, 54, 66, 0.88), rgba(20, 28, 42, 0.8));
}

.watch-hero-action svg {
  width: 24px;
  height: 24px;
  color: #a4f4fd;
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.32));
  flex: 0 0 auto;
}

.watch-hero-action span {
  min-width: 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
  background-image: linear-gradient(to right, #ffffff 0%, #a4f4fd 26%, #00d2ff 50%, #a4f4fd 72%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: url("#c3-noise") drop-shadow(0 0 18px rgba(0, 210, 255, 0.16));
  animation: aura-shiny 12s linear infinite, aura-action-breathe 6.4s ease-in-out infinite;
}

@keyframes aura-action-breathe {
  0%,
  100% {
    opacity: 0.76;
    text-shadow: 0 0 0 rgba(0, 210, 255, 0);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.28);
  }
}

.watch-category-strip {
  border-radius: 999px;
}

.watch-category-pill {
  color: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
}

.watch-status-dot.high,
.monitor-dot.high {
  background: #ff5f57;
  box-shadow: 0 0 0 6px rgba(255, 95, 87, 0.12), 0 0 22px rgba(255, 95, 87, 0.36);
}

.watch-status-dot.medium,
.monitor-dot.medium {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12), 0 0 22px rgba(245, 158, 11, 0.3);
}

.watch-status-dot.low,
.monitor-dot.low,
.monitor-dot.normal {
  background: #00d2ff;
  box-shadow: 0 0 0 6px rgba(0, 210, 255, 0.12), 0 0 22px rgba(0, 210, 255, 0.3);
}

.watch-quick-actions a {
  border-radius: 18px;
}

.report-actions-panel li::before {
  color: #000;
  background: #fff;
}

@media (max-width: 760px) {
  .aura-guide {
    display: none;
  }

  .topbar,
  .shell,
  .search-minimal .shell,
  .global-workspace,
  .global-shell,
  .global-topbar,
  .watch-commandbar,
  .watch-main {
    width: min(100% - 28px, 1120px);
  }

  .search-intro h1 {
    font-size: clamp(42px, 15vw, 72px);
  }

  .source-picker summary,
  .search-line,
  .panel,
  .detail-post,
  .source-admin-row,
  .watch-panel {
    border-radius: 16px;
  }

  .watch-category-strip {
    border-radius: 18px;
  }

  .watch-hero-actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .watch-hero-action {
    min-height: 76px;
    padding: 0 20px;
    border-radius: 18px;
  }

  .watch-hero-action span {
    font-size: 22px;
  }
}

/* Final premium-dark refinements: no white blocks, transparent brand, blue breathing aura. */
.aura-background video {
  position: absolute;
  inset: 0;
}

.aura-background::before,
.aura-background::after {
  content: "";
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
}

.aura-background::before {
  z-index: 1;
  width: min(1180px, 78vw);
  height: min(1180px, 78vw);
  left: 50%;
  top: -18%;
  transform: translateX(-50%) scale(0.9);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 38%, rgba(164, 244, 253, 0.32), transparent 18%),
    radial-gradient(circle at 54% 52%, rgba(0, 210, 255, 0.22), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(61, 129, 227, 0.2), transparent 62%);
  filter: blur(30px);
  opacity: 0.52;
  animation: aura-blue-breathe 14s ease-in-out infinite;
}

.aura-background::after {
  z-index: 2;
  width: 42vw;
  height: 84vh;
  right: 6vw;
  top: 2vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 40%, rgba(164, 244, 253, 0.24), rgba(0, 210, 255, 0.15) 28%, rgba(11, 37, 81, 0.18) 52%, transparent 72%);
  filter: blur(22px);
  opacity: 0.38;
  animation: aura-blue-drift 18s ease-in-out infinite;
}

.aura-background-dim {
  z-index: 3;
  background:
    radial-gradient(820px circle at 52% 10%, rgba(0, 210, 255, 0.1), transparent 60%),
    radial-gradient(680px circle at 24% 46%, rgba(61, 129, 227, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.08), rgba(12, 12, 12, 0.42) 76%, rgba(12, 12, 12, 0.82)) !important;
}

.aura-blue-beam {
  position: absolute;
  z-index: 4;
  left: 46%;
  top: -14vh;
  width: min(1520px, 112vw);
  height: min(1280px, 112vh);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.95;
  transform: translateX(-46%) rotate(-19deg) scale(1);
  transform-origin: 50% 50%;
  background:
    radial-gradient(ellipse at 18% 72%, rgba(255, 255, 255, 0.96) 0%, rgba(164, 244, 253, 0.86) 5%, rgba(0, 210, 255, 0.5) 14%, rgba(11, 37, 81, 0.34) 32%, transparent 60%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, 0.9) 0%, rgba(164, 244, 253, 0.76) 5%, rgba(0, 210, 255, 0.44) 15%, rgba(11, 37, 81, 0.3) 36%, transparent 64%),
    linear-gradient(112deg, transparent 0%, transparent 32%, rgba(11, 37, 81, 0.12) 38%, rgba(0, 210, 255, 0.52) 45%, rgba(255, 255, 255, 0.88) 49%, rgba(164, 244, 253, 0.62) 54%, rgba(11, 37, 81, 0.32) 63%, transparent 76%, transparent 100%);
  filter: blur(0.2px) saturate(1.35) contrast(1.16) brightness(1.08);
  -webkit-mask-image:
    radial-gradient(ellipse at 26% 65%, #000 0 34%, transparent 62%),
    radial-gradient(ellipse at 78% 18%, #000 0 28%, transparent 58%),
    linear-gradient(112deg, transparent 0%, #000 36%, #000 64%, transparent 78%);
  mask-image:
    radial-gradient(ellipse at 26% 65%, #000 0 34%, transparent 62%),
    radial-gradient(ellipse at 78% 18%, #000 0 28%, transparent 58%),
    linear-gradient(112deg, transparent 0%, #000 36%, #000 64%, transparent 78%);
  animation: aura-beam-breathe 16s ease-in-out infinite;
}

.aura-background-grain {
  z-index: 5;
}

.aura-guide {
  z-index: 6;
}

@keyframes aura-blue-breathe {
  0%,
  100% {
    opacity: 0.26;
    transform: translateX(-50%) translateY(0) scale(0.86);
  }

  50% {
    opacity: 0.72;
    transform: translateX(-50%) translateY(4vh) scale(1.08);
  }
}

@keyframes aura-blue-drift {
  0%,
  100% {
    opacity: 0.24;
    transform: translate3d(0, 0, 0) rotate(-5deg) scale(0.94);
  }

  50% {
    opacity: 0.58;
    transform: translate3d(-8vw, 5vh, 0) rotate(6deg) scale(1.08);
  }
}

@keyframes aura-beam-breathe {
  0%,
  100% {
    opacity: 0.74;
    transform: translateX(-48%) translateY(0) rotate(-19deg) scale(0.98);
    filter: blur(0.35px) saturate(1.22) brightness(0.98);
  }

  50% {
    opacity: 1;
    transform: translateX(-44%) translateY(3vh) rotate(-16deg) scale(1.08);
    filter: blur(0.1px) saturate(1.45) brightness(1.22);
  }
}

@keyframes aura-body-beam-breathe {
  0%,
  100% {
    opacity: 0.68;
    transform: translateX(-47%) translateY(0) rotate(-18deg) scale(0.98);
    filter: saturate(1.24) brightness(1);
  }

  50% {
    opacity: 0.98;
    transform: translateX(-42%) translateY(3vh) rotate(-16deg) scale(1.06);
    filter: saturate(1.5) brightness(1.18);
  }
}

.watch-brand-logo {
  width: 168px;
  height: auto;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: brightness(1.32) contrast(1.06) drop-shadow(0 0 18px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 42px rgba(164, 244, 253, 0.14));
  animation: aura-logo-breathe 9.5s ease-in-out infinite;
}

.watch-brand {
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
}

.watch-brand::before {
  content: "";
  position: absolute;
  inset: -18px -20px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 38% 50%, rgba(255, 255, 255, 0.22), transparent 34%),
    radial-gradient(ellipse at 60% 48%, rgba(164, 244, 253, 0.16), transparent 58%);
  filter: blur(20px);
  opacity: 0.5;
  animation: aura-logo-diffuse 11s ease-in-out infinite;
}

@keyframes aura-logo-breathe {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1.26) contrast(1.06) drop-shadow(0 0 14px rgba(255, 255, 255, 0.24)) drop-shadow(0 0 34px rgba(164, 244, 253, 0.1));
  }

  50% {
    opacity: 1;
    filter: brightness(1.55) contrast(1.08) drop-shadow(0 0 28px rgba(255, 255, 255, 0.46)) drop-shadow(0 0 58px rgba(164, 244, 253, 0.22));
  }
}

@keyframes aura-logo-diffuse {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.68;
    transform: scale(1.06);
  }
}

.source-menu,
.source-option,
.source-scope-option,
.source-option-disabled,
.source-option-selected,
.result-stat-card,
.result-partition-tabs a,
.result-partition-tabs a.active,
.result-tabs,
.result-tabs a,
.result-tabs a.active,
.sort-switch,
.sort-switch a,
.sort-switch a.active,
.watch-date-options,
.watch-date-options a,
.watch-date-options a.active {
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(22, 24, 28, 0.68) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 18px 52px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
}

.source-option,
.source-scope-option,
.source-option-disabled {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
}

.source-site-list {
  gap: 6px;
}

.source-scope-grid {
  gap: 8px;
}

.source-option:hover,
.source-option-active:hover,
.source-option-selected,
.result-stat-card-active,
.result-partition-tabs a:hover,
.result-partition-tabs a.active,
.result-tabs a:hover,
.result-tabs a.active,
.sort-switch a:hover,
.sort-switch a.active,
.watch-date-options a:hover,
.watch-date-options a.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(44, 48, 56, 0.84), rgba(18, 22, 30, 0.7)) !important;
  border-color: rgba(164, 244, 253, 0.32) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.13), 0 0 0 1px rgba(164, 244, 253, 0.05), 0 18px 58px rgba(0, 0, 0, 0.3) !important;
}

.result-partition-tabs a.active small,
.result-tabs a.active,
.sort-switch a.active,
.result-stat-card-active span {
  color: rgba(164, 244, 253, 0.76) !important;
}

.result-partition-tabs a.active b,
.result-stat-card-active strong {
  color: #fff !important;
}

button,
.primary-action,
.watch-new-monitor,
.google-trends-lazy-actions button,
.source-config-form button,
.monitor-create-form button,
.trends-control-panel button,
.source-crawl-form button,
.search-line button {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(48, 52, 60, 0.86), rgba(18, 22, 30, 0.76)) !important;
  border-color: rgba(164, 244, 253, 0.26) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.13), 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 34px rgba(0, 210, 255, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
}

button:hover,
.primary-action:hover,
.watch-new-monitor:hover,
.google-trends-lazy-actions button:hover,
.source-config-form button:hover,
.monitor-create-form button:hover,
.trends-control-panel button:hover,
.source-crawl-form button:hover,
.search-line button:hover {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(60, 66, 76, 0.9), rgba(24, 30, 40, 0.82)) !important;
  border-color: rgba(164, 244, 253, 0.42) !important;
  transform: translateY(-1px);
}

.source-summary-main img,
.source-option img,
.result-source img,
.results-source img,
.monitor-source-main img,
.source-admin-site img {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

.source-logo-empty,
.source-logo-all,
.source-admin-site .source-logo-empty {
  color: rgba(164, 244, 253, 0.86) !important;
  background: rgba(26, 30, 36, 0.74) !important;
  border-color: rgba(164, 244, 253, 0.18) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

.language-switch {
  background: rgba(22, 24, 28, 0.68) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.22) !important;
}

.language-switch a.active {
  color: #a4f4fd !important;
  background: rgba(44, 48, 56, 0.84) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.13) !important;
}

.panel,
.watch-panel,
.detail-post,
.search-empty-state,
.monitor-metrics article,
.monitor-list-summary article,
.result-partition-tabs a,
.source-picker summary,
.search-line,
.source-menu,
.source-admin-row,
.lite-trends-chart,
.results-summary-panel,
.report-summary-card,
.table-wrap {
  background: rgba(21, 23, 27, 0.68) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 24px 70px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(22px) saturate(1.16) !important;
}

.watch-panel,
.panel,
.source-picker summary,
.search-line,
.source-menu {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)) !important;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .aura-background::before,
  .aura-background::after,
  .aura-blue-beam {
    animation: none;
  }
}

/* Unified main-navigation titles: left aligned, smaller, and breathing blue. */
.search-atelier {
  padding-top: clamp(24px, 4vw, 54px) !important;
}

.search-intro {
  max-width: 760px !important;
  margin: 0 0 28px !important;
  text-align: left !important;
}

.watch-hero {
  align-items: flex-start;
}

.search-intro h1,
.results-title-block h1,
.workspace-header h1,
.monitors-header h1,
.reports-header h1,
.trends-header h1 {
  max-width: 820px !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: clamp(38px, 4.6vw, 64px) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.045em !important;
  background-image: linear-gradient(to right, #091020 0%, #0b2551 12.5%, #a4f4fd 32.5%, #00d2ff 50%, #0b2551 67.5%, #091020 87.5%, #091020 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: url("#c3-noise") drop-shadow(0 0 20px rgba(0, 210, 255, 0.16)) !important;
  animation: aura-shiny 12s linear infinite, aura-title-breathe 7.4s ease-in-out infinite !important;
  text-wrap: balance;
}

.watch-hero-title {
  max-width: 980px;
  font-size: clamp(38px, 4.6vw, 64px) !important;
  line-height: 0.96 !important;
}

.monitors-shell,
.reports-shell,
.trends-shell {
  width: 100% !important;
  max-width: 1220px !important;
  margin: 34px 0 72px !important;
}

.watch-monitor-label {
  background: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  filter: none !important;
  animation: none !important;
}

.watch-monitor-number {
  animation: aura-shiny 12s linear infinite, aura-title-breathe 7.4s ease-in-out infinite !important;
}

@keyframes aura-title-breathe {
  0%,
  100% {
    opacity: 0.82;
    text-shadow: 0 0 0 rgba(0, 210, 255, 0);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.28);
  }
}

@media (max-width: 760px) {
  .search-atelier {
    padding-top: 28px !important;
  }

  .search-intro h1,
  .results-title-block h1,
  .workspace-header h1,
  .monitors-header h1,
  .reports-header h1,
  .trends-header h1 {
    font-size: clamp(36px, 12vw, 54px) !important;
  }
}

.search-recent-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.search-recent-head h2 {
  margin: 4px 0 0 !important;
  color: #fff !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em;
}

.search-recent-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.search-recent-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.search-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.search-recent-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(164, 244, 253, 0.42);
  transform: translateY(-1px);
}

.search-recent-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.search-recent-item strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-recent-item small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-recent-empty {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

@media (max-width: 720px) {
  .search-recent-head,
  .search-recent-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-recent-source {
    white-space: normal;
  }
}

.search-minimal:not(:has(.search-atelier-results)) .source-search-form {
  position: relative;
  z-index: 3;
}

.search-minimal:not(:has(.search-atelier-results)) .search-line {
  border-color: rgba(164, 244, 253, 0.38) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.13),
    0 28px 92px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(164, 244, 253, 0.08),
    0 0 52px rgba(0, 210, 255, 0.12) !important;
}

.search-minimal:not(:has(.search-atelier-results)) .search-empty-state {
  width: min(720px, 100%) !important;
  max-width: 720px !important;
  margin-top: 18px !important;
  padding: 14px 16px !important;
  gap: 9px !important;
  border-radius: 16px !important;
  opacity: 0.82;
  transform: scale(0.94);
  transform-origin: top left;
}

.search-minimal:not(:has(.search-atelier-results)) .search-empty-state::before {
  opacity: 0.62;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-head {
  gap: 12px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-head .eyebrow {
  font-size: 10px !important;
  letter-spacing: 0.08em;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-head h2 {
  margin-top: 2px !important;
  font-size: clamp(22px, 2vw, 30px) !important;
  letter-spacing: -0.03em;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-source {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-list {
  gap: 7px;
  margin-top: 2px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item {
  min-height: 46px;
  padding: 8px 11px;
  border-radius: 12px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item strong {
  font-size: 14px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item small {
  font-size: 11px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-empty {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .search-minimal:not(:has(.search-atelier-results)) .search-empty-state {
    width: 100% !important;
    transform: none;
  }
}

.search-minimal:not(:has(.search-atelier-results)) .search-empty-state {
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  margin-top: 10px !important;
  padding: 2px 4px !important;
  gap: 5px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  opacity: 0.7;
  transform: none;
}

.search-minimal:not(:has(.search-atelier-results)) .search-empty-state::before {
  display: none !important;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-head {
  align-items: center;
  gap: 8px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-head .eyebrow {
  display: none;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-head h2,
.search-minimal:not(:has(.search-atelier-results)) .search-recent-source,
.search-minimal:not(:has(.search-atelier-results)) .search-recent-item strong,
.search-minimal:not(:has(.search-atelier-results)) .search-recent-item small,
.search-minimal:not(:has(.search-atelier-results)) .search-recent-empty {
  font-size: 12px !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-head h2 {
  margin: 0 !important;
  font-weight: 720;
  color: rgba(255, 255, 255, 0.62) !important;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-source {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 650;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-list {
  gap: 3px;
  margin-top: 3px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item {
  min-height: 24px;
  padding: 2px 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item:hover {
  background: transparent !important;
  border-color: transparent !important;
  transform: none;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-item small {
  color: rgba(255, 255, 255, 0.36);
  font-weight: 560;
}

.search-minimal:not(:has(.search-atelier-results)) .search-recent-empty {
  min-height: 24px;
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.38);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.search-recent-compact {
  display: block !important;
  width: min(520px, 100%) !important;
  max-width: 520px !important;
  min-height: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 4px !important;
  gap: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  opacity: 0.68 !important;
  transform: none !important;
}

.search-recent-compact::before {
  display: none !important;
  content: none !important;
}

.search-recent-compact .search-recent-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
}

.search-recent-compact .search-recent-head .eyebrow {
  display: none !important;
}

.search-recent-compact .search-recent-head h2 {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.search-recent-compact .search-recent-source {
  margin-left: auto !important;
  color: rgba(255, 255, 255, 0.36) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.search-recent-compact .search-recent-list {
  display: grid !important;
  gap: 2px !important;
  margin-top: 3px !important;
}

.search-recent-compact .search-recent-item {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 22px !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.54) !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.search-recent-compact .search-recent-item:hover {
  color: rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
  border: 0 !important;
  transform: none !important;
}

.search-recent-compact .search-recent-item span {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.search-recent-compact .search-recent-item strong,
.search-recent-compact .search-recent-item small,
.search-recent-compact .search-recent-empty {
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.search-recent-compact .search-recent-item strong {
  font-weight: 700 !important;
}

.search-recent-compact .search-recent-item small,
.search-recent-compact .search-recent-empty {
  font-weight: 560 !important;
  opacity: 0.7 !important;
}

.search-recent-compact .search-recent-empty {
  min-height: 22px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Performance pass: keep the blue beam, remove expensive stacked compositing layers. */
body::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.aura-background {
  z-index: 0;
  contain: paint;
}

.aura-background video {
  opacity: 0.34 !important;
  filter: none !important;
}

.aura-background::before,
.aura-background::after {
  display: none !important;
  animation: none !important;
}

.aura-background-dim {
  background:
    radial-gradient(900px circle at 44% 18%, rgba(0, 210, 255, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.12), rgba(12, 12, 12, 0.48) 76%, rgba(12, 12, 12, 0.86)) !important;
}

.aura-blue-beam {
  z-index: 2 !important;
  left: 44% !important;
  top: -10vh !important;
  width: min(1280px, 104vw) !important;
  height: min(940px, 94vh) !important;
  opacity: 0.66 !important;
  mix-blend-mode: normal !important;
  transform: translateX(-44%) rotate(-17deg) scale(1) !important;
  background:
    radial-gradient(ellipse at 18% 74%, rgba(164, 244, 253, 0.48) 0%, rgba(0, 210, 255, 0.32) 13%, rgba(11, 37, 81, 0.2) 32%, transparent 58%),
    radial-gradient(ellipse at 80% 16%, rgba(164, 244, 253, 0.4) 0%, rgba(0, 210, 255, 0.28) 14%, rgba(11, 37, 81, 0.18) 36%, transparent 64%),
    linear-gradient(112deg, transparent 0%, transparent 34%, rgba(0, 210, 255, 0.28) 45%, rgba(164, 244, 253, 0.42) 50%, rgba(11, 37, 81, 0.2) 60%, transparent 74%, transparent 100%) !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  will-change: opacity !important;
  animation: aura-beam-lite-breathe 24s ease-in-out infinite !important;
}

.aura-background-grain {
  opacity: 0.08 !important;
  mix-blend-mode: normal !important;
}

@keyframes aura-beam-lite-breathe {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.74;
  }
}

/* Final layout polish: no vertical guide seams, sidebar participates in the aura background. */
.aura-guide,
.aura-guide-left,
.aura-guide-right {
  display: none !important;
}

.watch-app-shell,
.global-app-shell {
  background: transparent !important;
}

.watch-workspace,
.global-workspace,
.global-shell,
.watch-main {
  background: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none;
}

.watch-sidebar,
.global-sidebar {
  background:
    linear-gradient(180deg, rgba(5, 11, 18, 0.34), rgba(2, 5, 10, 0.48)),
    radial-gradient(520px circle at 52% 8%, rgba(164, 244, 253, 0.1), transparent 64%) !important;
  border-right: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
}

.watch-sidebar::after,
.global-sidebar::after {
  content: none !important;
  display: none !important;
}

.aura-blue-beam {
  left: 37% !important;
  width: min(1420px, 112vw) !important;
  opacity: 0.72 !important;
}

.aura-background-dim {
  background:
    radial-gradient(920px circle at 36% 16%, rgba(0, 210, 255, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.08), rgba(12, 12, 12, 0.42) 76%, rgba(12, 12, 12, 0.84)) !important;
}

.search-recent-compact {
  margin-top: 24px !important;
  padding-left: 8px !important;
}

.search-recent-compact .search-recent-head {
  margin-bottom: 9px !important;
}

.search-recent-compact .search-recent-list {
  gap: 8px !important;
  margin-top: 0 !important;
}

.search-recent-compact .search-recent-item {
  min-height: 20px !important;
  padding: 1px 0 !important;
}

.watch-anomaly-row {
  grid-template-columns: 18px minmax(0, 1fr) 100px 72px 18px !important;
  column-gap: 18px !important;
  align-items: center !important;
  min-height: 96px !important;
  padding: 18px 22px !important;
}

.watch-anomaly-copy {
  min-width: 0 !important;
  overflow: hidden !important;
}

.watch-anomaly-copy h3 {
  overflow: hidden !important;
  max-width: 100% !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.watch-anomaly-copy p {
  display: -webkit-box !important;
  overflow: hidden !important;
  max-width: min(760px, 100%) !important;
  margin-top: 8px !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow-wrap: anywhere !important;
}

.watch-severity,
.watch-text-button {
  align-self: center !important;
  justify-self: center !important;
  white-space: nowrap !important;
}

.watch-severity {
  width: 86px !important;
  min-width: 86px !important;
}

.watch-text-button {
  width: 62px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.watch-anomaly-row > svg {
  justify-self: center !important;
}

/* Aura synchronized beam: the video carries the light, text shimmer follows the same pulse. */
:root {
  --aura-sync-duration: 18s;
}

.aura-background video {
  opacity: 0.86 !important;
  filter: none !important;
  object-position: center top;
}

.aura-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0 !important;
  transition: opacity 260ms ease;
}

.aura-bg-video.is-active {
  opacity: 0.86 !important;
}

.aura-background.is-soft-resetting .aura-bg-video.is-active {
  opacity: 0 !important;
}

.aura-background.is-soft-resetting .aura-blue-beam {
  opacity: 0.96 !important;
}

.aura-background.is-soft-resetting .aura-background-dim {
  background:
    radial-gradient(980px circle at 34% 18%, rgba(164, 244, 253, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.1), rgba(12, 12, 12, 0.36) 58%, rgba(12, 12, 12, 0.82) 100%) !important;
}

.aura-background-dim {
  background:
    radial-gradient(900px circle at 34% 18%, rgba(164, 244, 253, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.02), rgba(12, 12, 12, 0.22) 58%, rgba(12, 12, 12, 0.72) 100%) !important;
}

.aura-blue-beam {
  left: 43% !important;
  top: -7vh !important;
  width: min(1420px, 108vw) !important;
  height: min(1050px, 108vh) !important;
  opacity: 0.58 !important;
  mix-blend-mode: screen !important;
  transform: translateX(-45%) rotate(-18deg) scale(1) !important;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(255, 255, 255, 0.34) 0%, rgba(164, 244, 253, 0.42) 7%, rgba(0, 210, 255, 0.24) 16%, rgba(11, 37, 81, 0.18) 34%, transparent 62%),
    radial-gradient(ellipse at 78% 16%, rgba(255, 255, 255, 0.28) 0%, rgba(164, 244, 253, 0.36) 7%, rgba(0, 210, 255, 0.2) 17%, rgba(11, 37, 81, 0.16) 38%, transparent 66%),
    linear-gradient(112deg, transparent 0%, transparent 34%, rgba(0, 210, 255, 0.18) 43%, rgba(255, 255, 255, 0.3) 49%, rgba(164, 244, 253, 0.24) 55%, rgba(11, 37, 81, 0.16) 64%, transparent 76%, transparent 100%) !important;
  filter: none !important;
  will-change: opacity !important;
  animation: aura-linked-beam var(--aura-sync-duration) ease-in-out infinite !important;
}

.search-intro h1,
.results-title-block h1,
.workspace-header h1,
.monitors-header h1,
.reports-header h1,
.trends-header h1,
.search-intro h1 em,
.search-intro h1 strong,
.results-title-block h1 strong,
.watch-monitor-number {
  background-image: linear-gradient(to right, #091020 0%, #0b2551 12.5%, #a4f4fd 32.5%, #00d2ff 50%, #0b2551 67.5%, #091020 87.5%, #091020 100%) !important;
  background-size: 220% auto !important;
  animation: aura-linked-shiny var(--aura-sync-duration) ease-in-out infinite, aura-linked-title-pulse var(--aura-sync-duration) ease-in-out infinite !important;
}

.watch-hero-action span {
  animation: aura-linked-shiny var(--aura-sync-duration) ease-in-out infinite, aura-linked-action-pulse var(--aura-sync-duration) ease-in-out infinite !important;
}

@keyframes aura-linked-beam {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.82;
  }
}

@keyframes aura-linked-shiny {
  0%,
  100% {
    background-position: -180% center;
  }

  50% {
    background-position: 50% center;
  }
}

@keyframes aura-linked-title-pulse {
  0%,
  100% {
    opacity: 0.78;
    text-shadow: 0 0 0 rgba(0, 210, 255, 0);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 24px rgba(0, 210, 255, 0.28);
  }
}

@keyframes aura-linked-action-pulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(0, 210, 255, 0);
  }

  50% {
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-intro h1,
  .results-title-block h1,
  .workspace-header h1,
  .monitors-header h1,
  .reports-header h1,
  .trends-header h1,
  .watch-monitor-number,
  .watch-hero-action span,
  .aura-blue-beam {
    animation: none !important;
  }
}

/* Video reset polish: keep the Aura beam visible while the single video seeks. */
.aura-bg-video {
  transition: opacity 180ms ease !important;
}

.aura-background.is-soft-resetting .aura-bg-video.is-active {
  opacity: 0.28 !important;
}

.aura-background.is-soft-resetting::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 4 !important;
  left: 41% !important;
  top: -9vh !important;
  width: min(1460px, 114vw) !important;
  height: min(1080px, 112vh) !important;
  pointer-events: none !important;
  opacity: 0.92 !important;
  transform: translateX(-45%) rotate(-18deg) scale(1.02) !important;
  transform-origin: center !important;
  mix-blend-mode: screen !important;
  background:
    radial-gradient(ellipse at 19% 72%, rgba(255, 255, 255, 0.48) 0%, rgba(164, 244, 253, 0.58) 7%, rgba(0, 210, 255, 0.38) 17%, rgba(11, 37, 81, 0.24) 36%, transparent 64%),
    radial-gradient(ellipse at 78% 16%, rgba(255, 255, 255, 0.36) 0%, rgba(164, 244, 253, 0.48) 8%, rgba(0, 210, 255, 0.32) 18%, rgba(11, 37, 81, 0.22) 40%, transparent 68%),
    linear-gradient(112deg, transparent 0%, transparent 31%, rgba(0, 210, 255, 0.24) 43%, rgba(255, 255, 255, 0.46) 49%, rgba(164, 244, 253, 0.36) 55%, rgba(11, 37, 81, 0.22) 66%, transparent 78%, transparent 100%) !important;
  filter: none !important;
  -webkit-mask-image: linear-gradient(112deg, transparent 0%, #000 30%, #000 68%, transparent 84%) !important;
  mask-image: linear-gradient(112deg, transparent 0%, #000 30%, #000 68%, transparent 84%) !important;
  animation: none !important;
}

.aura-background.is-soft-resetting .aura-blue-beam {
  z-index: 4 !important;
  opacity: 1 !important;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(255, 255, 255, 0.36) 0%, rgba(164, 244, 253, 0.46) 7%, rgba(0, 210, 255, 0.28) 16%, rgba(11, 37, 81, 0.2) 34%, transparent 62%),
    radial-gradient(ellipse at 78% 16%, rgba(255, 255, 255, 0.3) 0%, rgba(164, 244, 253, 0.4) 7%, rgba(0, 210, 255, 0.24) 17%, rgba(11, 37, 81, 0.18) 38%, transparent 66%),
    linear-gradient(112deg, transparent 0%, transparent 33%, rgba(0, 210, 255, 0.22) 43%, rgba(255, 255, 255, 0.36) 49%, rgba(164, 244, 253, 0.28) 55%, rgba(11, 37, 81, 0.18) 64%, transparent 76%, transparent 100%) !important;
}

.aura-background.is-soft-resetting .aura-background-dim {
  background:
    radial-gradient(980px circle at 34% 18%, rgba(164, 244, 253, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.06), rgba(12, 12, 12, 0.28) 58%, rgba(12, 12, 12, 0.78) 100%) !important;
}

/* Final loop fix: no video seek; the continuous beam now carries the motion. */
:root {
  --aura-sync-duration: 22s;
}

.aura-background.is-video-held .aura-bg-video.is-active {
  opacity: 0.74 !important;
}

.aura-blue-beam {
  opacity: 0.7 !important;
  background-size: 136% 136%, 132% 132%, 118% 118% !important;
  background-position: 0% 72%, 100% 12%, 50% 50% !important;
  animation: aura-continuous-beam var(--aura-sync-duration) cubic-bezier(.45, 0, .25, 1) infinite !important;
}

@keyframes aura-continuous-beam {
  0%,
  100% {
    opacity: 0.54;
    background-position: 0% 74%, 100% 14%, 46% 50%;
    filter: brightness(0.98) saturate(1.08);
  }

  34% {
    opacity: 0.76;
    background-position: 18% 66%, 82% 22%, 52% 50%;
    filter: brightness(1.08) saturate(1.22);
  }

  68% {
    opacity: 0.64;
    background-position: 36% 78%, 66% 12%, 58% 50%;
    filter: brightness(1.02) saturate(1.14);
  }
}

.aura-continuous-glow {
  position: absolute;
  z-index: 4;
  left: 38%;
  top: -8vh;
  width: min(1460px, 114vw);
  height: min(1080px, 112vh);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: translateX(-45%) rotate(-18deg) scale(1);
  transform-origin: center;
  background:
    radial-gradient(ellipse at 20% 72%, rgba(255, 255, 255, 0.28) 0%, rgba(164, 244, 253, 0.42) 7%, rgba(0, 210, 255, 0.24) 18%, rgba(11, 37, 81, 0.14) 38%, transparent 66%),
    radial-gradient(ellipse at 78% 16%, rgba(255, 255, 255, 0.2) 0%, rgba(164, 244, 253, 0.34) 8%, rgba(0, 210, 255, 0.22) 19%, rgba(11, 37, 81, 0.14) 42%, transparent 70%),
    linear-gradient(112deg, transparent 0%, transparent 33%, rgba(0, 210, 255, 0.18) 43%, rgba(255, 255, 255, 0.3) 49%, rgba(164, 244, 253, 0.24) 55%, rgba(11, 37, 81, 0.14) 65%, transparent 78%, transparent 100%);
  background-size: 136% 136%, 132% 132%, 118% 118%;
  background-position: 0% 74%, 100% 14%, 46% 50%;
  filter: brightness(1.02) saturate(1.16);
  animation: aura-continuous-glow var(--aura-sync-duration) cubic-bezier(.45, 0, .25, 1) infinite;
  will-change: opacity, transform, background-position;
}

@keyframes aura-continuous-glow {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-45%) rotate(-18deg) scale(0.99);
    background-position: 0% 74%, 100% 14%, 46% 50%;
  }

  34% {
    opacity: 0.72;
    transform: translateX(-43%) rotate(-17deg) scale(1.03);
    background-position: 18% 66%, 82% 22%, 52% 50%;
  }

  68% {
    opacity: 0.56;
    transform: translateX(-47%) rotate(-19deg) scale(1.01);
    background-position: 36% 78%, 66% 12%, 58% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aura-continuous-glow {
    animation: none;
  }
}

/* Motion continuity fix: keep the background moving even after the video stops. */
.aura-bg-video.is-active {
  transform-origin: 48% 28% !important;
  animation: aura-video-drift 34s ease-in-out infinite alternate !important;
  will-change: transform !important;
}

.aura-background.is-video-held .aura-bg-video.is-active {
  opacity: 0.78 !important;
  animation: aura-video-drift 34s ease-in-out infinite alternate !important;
}

.aura-continuous-glow {
  opacity: 0.68;
  animation: aura-continuous-glow 18s cubic-bezier(.45, 0, .25, 1) infinite !important;
}

@keyframes aura-video-drift {
  0% {
    transform: scale(1.045) translate3d(0, 0, 0);
  }

  45% {
    transform: scale(1.07) translate3d(-2.2%, 1.2%, 0);
  }

  100% {
    transform: scale(1.055) translate3d(1.1%, -0.8%, 0);
  }
}

@keyframes aura-continuous-glow {
  0%,
  100% {
    opacity: 0.48;
    transform: translateX(-45%) rotate(-18deg) scale(1);
    background-position: 0% 74%, 100% 14%, 46% 50%;
  }

  34% {
    opacity: 0.82;
    transform: translateX(-42.5%) rotate(-17deg) scale(1.05);
    background-position: 18% 66%, 82% 22%, 52% 50%;
  }

  68% {
    opacity: 0.62;
    transform: translateX(-47.5%) rotate(-19deg) scale(1.02);
    background-position: 36% 78%, 66% 12%, 58% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aura-bg-video.is-active {
    animation: none !important;
    transform: scale(1.045) !important;
  }
}

/* Beam shape correction: remove the broad cyan block and keep a narrow soft light ribbon. */
.aura-background-dim {
  background:
    radial-gradient(760px circle at 58% 18%, rgba(164, 244, 253, 0.09), transparent 58%),
    radial-gradient(620px circle at 24% 42%, rgba(0, 210, 255, 0.035), transparent 68%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.12), rgba(12, 12, 12, 0.5) 76%, rgba(12, 12, 12, 0.88)) !important;
}

.aura-continuous-glow {
  left: 58% !important;
  top: -16vh !important;
  width: min(980px, 70vw) !important;
  height: min(1080px, 104vh) !important;
  opacity: 0.34 !important;
  mix-blend-mode: screen !important;
  transform: translateX(-42%) rotate(-18deg) scale(1) !important;
  background:
    radial-gradient(ellipse at 44% 68%, rgba(255, 255, 255, 0.24) 0%, rgba(164, 244, 253, 0.34) 6%, rgba(0, 210, 255, 0.2) 16%, rgba(11, 37, 81, 0.11) 34%, transparent 58%),
    radial-gradient(ellipse at 72% 20%, rgba(164, 244, 253, 0.22) 0%, rgba(0, 210, 255, 0.16) 16%, rgba(11, 37, 81, 0.1) 38%, transparent 64%),
    linear-gradient(112deg, transparent 0%, transparent 42%, rgba(0, 210, 255, 0.12) 47%, rgba(255, 255, 255, 0.2) 50%, rgba(164, 244, 253, 0.16) 54%, rgba(11, 37, 81, 0.08) 62%, transparent 72%, transparent 100%) !important;
  -webkit-mask-image:
    radial-gradient(ellipse at 48% 56%, #000 0 30%, rgba(0, 0, 0, 0.72) 42%, transparent 70%),
    linear-gradient(112deg, transparent 0%, #000 38%, #000 64%, transparent 82%) !important;
  mask-image:
    radial-gradient(ellipse at 48% 56%, #000 0 30%, rgba(0, 0, 0, 0.72) 42%, transparent 70%),
    linear-gradient(112deg, transparent 0%, #000 38%, #000 64%, transparent 82%) !important;
  animation: aura-ribbon-glow 22s cubic-bezier(.45, 0, .25, 1) infinite !important;
}

.aura-blue-beam {
  left: 56% !important;
  top: -13vh !important;
  width: min(920px, 72vw) !important;
  height: min(980px, 98vh) !important;
  opacity: 0.28 !important;
  mix-blend-mode: screen !important;
  background:
    radial-gradient(ellipse at 42% 66%, rgba(255, 255, 255, 0.26) 0%, rgba(164, 244, 253, 0.32) 7%, rgba(0, 210, 255, 0.18) 17%, rgba(11, 37, 81, 0.1) 34%, transparent 58%),
    linear-gradient(112deg, transparent 0%, transparent 42%, rgba(0, 210, 255, 0.1) 47%, rgba(255, 255, 255, 0.16) 50%, rgba(164, 244, 253, 0.12) 54%, transparent 70%, transparent 100%) !important;
  -webkit-mask-image:
    radial-gradient(ellipse at 46% 56%, #000 0 28%, rgba(0, 0, 0, 0.62) 40%, transparent 68%),
    linear-gradient(112deg, transparent 0%, #000 40%, #000 62%, transparent 80%) !important;
  mask-image:
    radial-gradient(ellipse at 46% 56%, #000 0 28%, rgba(0, 0, 0, 0.62) 40%, transparent 68%),
    linear-gradient(112deg, transparent 0%, #000 40%, #000 62%, transparent 80%) !important;
  animation: aura-ribbon-base 28s ease-in-out infinite !important;
}

@keyframes aura-ribbon-base {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(-44%) rotate(-18deg) scale(0.99);
  }

  50% {
    opacity: 0.34;
    transform: translateX(-41%) rotate(-17.4deg) scale(1.035);
  }
}

@keyframes aura-ribbon-glow {
  0%,
  100% {
    opacity: 0.24;
    transform: translateX(-43%) rotate(-18deg) scale(0.99);
    background-position: 0% 74%, 100% 14%, 46% 50%;
  }

  42% {
    opacity: 0.46;
    transform: translateX(-40%) rotate(-17.4deg) scale(1.035);
    background-position: 12% 66%, 88% 20%, 52% 50%;
  }

  72% {
    opacity: 0.32;
    transform: translateX(-45%) rotate(-18.8deg) scale(1.01);
    background-position: 28% 76%, 72% 12%, 58% 50%;
  }
}

/* Seamless A/B video handoff: preload the next video and crossfade before the active one ends. */
.aura-background {
  isolation: isolate;
}

.aura-background .aura-bg-video {
  z-index: 1 !important;
  opacity: 0 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
  transition: opacity 900ms cubic-bezier(.22, 1, .36, 1) !important;
  will-change: opacity !important;
}

.aura-background .aura-bg-video.is-active {
  opacity: 0.86 !important;
  transform: none !important;
  animation: none !important;
}

.aura-background .aura-bg-video.is-warming {
  opacity: 0 !important;
}

.aura-background .aura-bg-video.is-fading-out {
  opacity: 0 !important;
}

.aura-background.is-video-crossfading .aura-background-dim {
  background:
    radial-gradient(760px circle at 58% 18%, rgba(164, 244, 253, 0.08), transparent 58%),
    radial-gradient(620px circle at 24% 42%, rgba(0, 210, 255, 0.03), transparent 68%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.18), rgba(12, 12, 12, 0.54) 76%, rgba(12, 12, 12, 0.9)) !important;
}

.aura-continuous-glow,
.aura-blue-beam {
  z-index: 4 !important;
}

/* Report summary numbers should stay neutral white on the cinematic report page. */
.report-summary-grid strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
