/*
 * Aether Horizon visual layer
 * Reference: style4.html, adapted to the production registry without Tailwind.
 * This file contains presentation only. Remove its <link> from index.html to roll back.
 */

:root {
  --ink: #0f172a;
  --ink-soft: #64748b;
  --registry: #4f46e5;
  --signal: #818cf8;
  --paper: #fafbfc;
  --white: #fff;
  --line: rgba(148, 163, 184, .24);
  --active: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 16px 38px -22px rgba(15, 23, 42, .22), 0 2px 8px -4px rgba(15, 23, 42, .08);
  --body: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --data: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --aether-indigo-50: #f5f3ff;
  --aether-indigo-100: #ede9fe;
  --aether-indigo-500: #6366f1;
  --aether-indigo-600: #4f46e5;
  --aether-slate-50: #f8fafc;
  --aether-slate-100: #f1f5f9;
  --aether-card-shadow: 0 10px 30px -18px rgba(15, 23, 42, .14), 0 0 0 1px rgba(15, 23, 42, .025);
  --aether-hover-shadow: 0 22px 44px -24px rgba(79, 70, 229, .25), 0 0 0 1px rgba(99, 102, 241, .16);
}

html { background: var(--paper); }
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 4%, rgba(199, 210, 254, .26), transparent 31rem),
    radial-gradient(circle at 92% 44%, rgba(204, 251, 241, .18), transparent 36rem),
    var(--paper);
  color: var(--ink);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--aether-indigo-100); color: #312e81; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 999px; background: #dbe2ea; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

button, input, select { border-radius: 11px; }
.table-doc-link { border: 0; border-radius: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, .document-card:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .22);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  padding-inline: max(clamp(1.2rem, 4vw, 5rem), calc((100vw - 1280px) / 2));
  border-color: rgba(226, 232, 240, .7);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: padding-inline 180ms cubic-bezier(.22,1,.36,1), transform 180ms ease, opacity 180ms ease;
}
body.table-view-active .site-header { padding-inline: clamp(18px, 2.5vw, 46px); }
.brand { gap: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #7c3aed, #4f46e5 58%, #6366f1);
  box-shadow: 0 9px 22px -10px rgba(79, 70, 229, .65);
}
.brand-mark.brand-logo {
  background: #fff url("/Logo.png?v=20260722-1") center / 225% no-repeat;
}
.brand-mark::after { content: none; }
.brand-mark i { display: none; }
.brand-monogram {
  position: relative;
  z-index: 1;
  color: #fff;
  font: 700 1.05rem/1 var(--data);
  letter-spacing: -.09em;
  transform: translateX(-1px);
}
.brand strong {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
}
.brand small {
  margin-top: 6px;
  color: #94a3b8;
  font-family: var(--body);
  font-size: .65rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.header-meta {
  padding: 9px 14px;
  border: 1px solid rgba(226, 232, 240, .85);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 2px 8px -5px rgba(15,23,42,.22);
  font-size: .7rem;
  font-weight: 650;
}
.live-dot { background: #10b981; box-shadow: 0 0 0 5px rgba(16,185,129,.1); }

.search-stage {
  min-height: 390px;
  padding-top: 52px;
  padding-bottom: 52px;
  border-bottom-color: rgba(226,232,240,.7);
  background: rgba(255,255,255,.56);
  text-align: center;
}
.search-stage::before {
  content: "";
  position: absolute;
  top: -270px;
  right: 3vw;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,231,255,.46) 0 42%, rgba(245,243,255,.24) 43% 59%, transparent 60%);
  filter: blur(1px);
  pointer-events: none;
}
.search-stage::after {
  right: -115px;
  top: -210px;
  width: 570px;
  height: 570px;
  border-color: rgba(99,102,241,.11);
  box-shadow: 0 0 0 74px rgba(99,102,241,.018), 0 0 0 148px rgba(45,212,191,.016);
}
.registry-index { display: none; }
.search-stage > .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin: 0 auto 23px;
  padding: 5px 14px;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  background: rgba(245,243,255,.8);
  color: #4f46e5;
  font-size: .6rem;
  letter-spacing: .09em;
}
.search-stage h1 {
  max-width: 1060px;
  margin-inline: auto;
  font-size: clamp(2rem, 3.25vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.search-stage .lead {
  max-width: 680px;
  margin: 20px auto 31px;
  color: #64748b;
  font-size: .87rem;
  line-height: 1.62;
}
.search-form { max-width: 820px; margin-inline: auto; }
.search-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.search-control {
  height: 64px;
  padding: 7px 7px 7px 21px;
  border-color: rgba(148,163,184,.42);
  border-radius: 22px;
  box-shadow: 0 18px 44px -24px rgba(15,23,42,.28), 0 3px 10px -7px rgba(15,23,42,.18);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.search-control:focus-within {
  border-color: #6366f1;
  box-shadow: 0 22px 48px -25px rgba(79,70,229,.33), 0 0 0 3px rgba(99,102,241,.09);
}
.search-control input { font-size: 1.05rem; font-weight: 500; }
.search-control input:focus, .search-control input:focus-visible { outline: none; outline-offset: 0; box-shadow: none; }
.search-control input::placeholder { color: #94a3b8; font-weight: 450; }
.search-control button {
  min-width: 112px;
  border-radius: 15px;
  background: #111827;
  box-shadow: 0 8px 20px -12px rgba(15,23,42,.75);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.search-control button:hover { background: #4f46e5; box-shadow: 0 11px 24px -12px rgba(79,70,229,.7); transform: translateY(-1px); }
.search-control button:active { transform: scale(.98); }
.search-submit-label { display: block; }
.search-control .search-reset {
  min-width: 96px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  box-shadow: none;
}
.search-control .search-reset:hover { border-color: #c7d2fe; background: #f5f3ff; color: #4f46e5; box-shadow: none; }
.search-glyph svg { stroke: #6366f1; transform: translateY(1px); }
.search-control.search-loading .search-glyph {
  width: 20px;
  height: 20px;
  border: 2px solid #c7d2fe;
  border-radius: 50%;
  border-color: #c7d2fe;
  border-top-color: #4f46e5;
  animation: search-spinner .7s linear infinite;
}
.search-control.search-loading .search-glyph svg { opacity: 0; transform: none; }
@keyframes search-spinner { to { transform: rotate(360deg); } }
.search-hint { color: #94a3b8; text-align: center; }

.catalog-shell {
  width: 100%;
  gap: 34px;
  padding-top: 38px;
  transition: max-width 180ms cubic-bezier(.22,1,.36,1), grid-template-columns 180ms cubic-bezier(.22,1,.36,1), gap 180ms cubic-bezier(.22,1,.36,1), padding-inline 180ms cubic-bezier(.22,1,.36,1);
}
.catalog-shell > .filters {
  min-width: 0;
  overflow: hidden;
  transform-origin: left top;
  transition: opacity 130ms ease, transform 180ms cubic-bezier(.22,1,.36,1), visibility 0s linear 180ms;
}
.catalog-shell.table-mode {
  max-width: 100%;
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
}
.catalog-shell.table-mode > .filters,
.catalog-shell.hold-filters-hidden > .filters {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-14px) scale(.98);
  pointer-events: none;
}
.catalog-shell:not(.table-mode):not(.hold-filters-hidden) > .filters {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.filters {
  top: 92px;
  padding: 24px;
  border-color: rgba(226,232,240,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--aether-card-shadow);
  backdrop-filter: blur(14px);
}
.filter-heading { padding-bottom: 15px; margin-bottom: 23px; border-bottom: 1px solid rgba(226,232,240,.72); }
.filter-heading h2 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.text-button { border-bottom-color: rgba(99,102,241,.24); color: #4f46e5; font-weight: 650; }
legend, .select-field > span, .date-pair > span { color: #64748b; font-size: .62rem; letter-spacing: .095em; }
.country-grid { gap: 8px; }
.country-button {
  border-color: rgba(226,232,240,.95);
  border-radius: 10px;
  color: #334155;
  font-size: .69rem;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.country-button:hover { border-color: #c7d2fe; background: #f8f7ff; transform: translateY(-1px); }
.country-button.selected { border-color: #4f46e5; background: #4f46e5; box-shadow: 0 8px 16px -12px rgba(79,70,229,.8); }
.country-button.selected small { color: #e0e7ff; }
.select-field select, .date-pair input {
  border-color: rgba(226,232,240,.95);
  border-radius: 11px;
  background: rgba(248,250,252,.85);
  color: #334155;
}
.select-field select:hover, .date-pair input:hover { border-color: #cbd5e1; background: #fff; }
.secondary-button {
  border-color: #4f46e5;
  border-radius: 11px;
  color: #4f46e5;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.secondary-button:hover { background: #4f46e5; box-shadow: 0 10px 20px -13px rgba(79,70,229,.75); }

.results-control-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  margin-bottom: 20px;
  padding: 10px 14px 10px 20px;
  border: 1px solid rgba(226,232,240,.72);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--aether-card-shadow);
  backdrop-filter: blur(15px);
}
.results-toolbar { position: relative; min-height: 44px; margin: 0; padding-left: 18px; align-items: center; }
.results-toolbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  box-shadow: 0 0 18px rgba(99,102,241,.2);
}
.results-toolbar .eyebrow { margin-bottom: 2px; color: #94a3b8; font-size: .55rem; letter-spacing: .08em; }
.results-toolbar h2 { color: #0f172a; font-size: 1.08rem; font-weight: 800; letter-spacing: -.025em; }
.results-toolbar h2 #result-total { color: #6366f1; }
.results-toolbar h2 #search-countdown b { color: #6366f1; font: inherit; }
.view-toolbar { flex: 0 0 auto; min-height: 0; margin: 0; }
.reset-all-filters {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(226,232,240,.82);
  border-radius: 11px;
  background: rgba(248,250,252,.78);
  color: #64748b;
}
.reset-all-filters[hidden] { display: none; }
.reset-all-filters > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reset-all-filters:hover, .reset-all-filters:focus-visible { border-color: #c7d2fe; background: #f8f7ff; color: #4f46e5; outline: none; }
.reset-all-filters .toolbar-tooltip { width: max-content; max-width: 190px; white-space: nowrap; }
.reset-all-filters:hover .toolbar-tooltip { opacity: 1; transform: none; visibility: visible; }
.page-size-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(226,232,240,.82);
  border-radius: 11px;
  background: rgba(248,250,252,.78);
  color: #64748b;
  white-space: nowrap;
  font-size: .66rem;
  font-weight: 550;
}
.page-size-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font: 700 .72rem/1 var(--data);
}
.page-size-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 25px;
  min-width: 58px;
  padding: 0 7px 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: #334155;
  font-size: .67rem;
  font-weight: 550;
  cursor: pointer;
}
.page-size-button:hover { border-color: #c7d2fe; color: #4338ca; }
.page-size-button:focus-visible, .page-size-control.open .page-size-button { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.09); }
.page-size-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.page-size-control.open .page-size-button svg { transform: rotate(180deg); }
.page-size-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 8px;
  z-index: 90;
  width: 78px;
  padding: 5px;
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 42px -20px rgba(15,23,42,.48);
}
.page-size-menu[hidden] { display: none; }
.page-size-menu button {
  display: block;
  width: 100%;
  min-height: 31px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  text-align: left;
  font: 550 .7rem/1.2 var(--body);
  cursor: pointer;
}
.page-size-menu button:hover, .page-size-menu button:focus-visible { background: #f5f3ff; color: #4338ca; outline: none; }
.page-size-menu button.selected { background: #eef2ff; color: #4338ca; font-weight: 700; }
.page-size-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 70;
  width: 260px;
  padding: 9px 11px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 15px 35px -18px rgba(15,23,42,.65);
  white-space: normal;
  font: 450 .66rem/1.45 var(--body);
  opacity: 0;
  transform: translateY(3px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.page-size-control:hover .page-size-tooltip { opacity: 1; transform: none; visibility: visible; }
.page-size-control.open .page-size-tooltip { opacity: 0; transform: translateY(3px); visibility: hidden; }
.row-height-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(226,232,240,.82);
  border-radius: 11px;
  background: rgba(248,250,252,.78);
  color: #64748b;
}
.row-height-control[hidden] { display: none; }
.row-height-control > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row-height-input-wrap { position: relative; display: inline-flex; }
.row-height-input-wrap input {
  width: 50px;
  height: 25px;
  padding: 0 4px 0 7px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: #334155;
  font-size: .67rem;
  font-weight: 550;
}
.row-height-input-wrap input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.09); }
.row-height-unit { font-size: .6rem; font-weight: 550; }
.row-height-control > [role="tooltip"] {
  position: absolute;
  right: -22px;
  bottom: calc(100% + 9px);
  z-index: 70;
  width: 245px;
  padding: 9px 11px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 15px 35px -18px rgba(15,23,42,.65);
  font: 450 .66rem/1.45 var(--body);
  opacity: 0;
  transform: translateY(3px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.row-height-control:hover > [role="tooltip"] { opacity: 1; transform: none; visibility: visible; }
.table-layout-switch {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(226,232,240,.82);
  border-radius: 12px;
  background: rgba(241,245,249,.72);
}
.table-layout-switch[hidden] { display: none; }
.table-layout-switch button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: .63rem;
  font-weight: 700;
}
.table-layout-switch button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.table-layout-switch button.selected { background: #fff; color: #0f172a; box-shadow: 0 4px 12px -8px rgba(15,23,42,.45); }
.view-switch {
  position: relative;
  isolation: isolate;
  padding: 4px;
  border-color: rgba(226,232,240,.9);
  border-radius: 12px;
  background: rgba(241,245,249,.72);
}
.view-switch-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px -8px rgba(15,23,42,.45);
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(.22,1,.36,1), box-shadow 180ms ease;
  pointer-events: none;
}
.view-switch[data-active-view="table"] .view-switch-indicator { transform: translateX(100%); }
.view-switch button {
  position: relative;
  z-index: 1;
  min-width: 82px;
  padding: 7px 11px;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
  font-size: .66rem;
  transition: color 180ms ease, transform 180ms ease;
}
.view-switch button:hover { color: #334155; }
.view-switch button:active { transform: scale(.97); }
.view-switch button.selected { background: transparent; color: #0f172a; box-shadow: none; }

.results { transition: opacity 100ms ease, transform 100ms ease; }
.results.view-leaving { opacity: 0; transform: translateY(5px); pointer-events: none; }
.results.view-entering { animation: view-enter 220ms cubic-bezier(.22,1,.36,1) both; }
@keyframes view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.columns-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 13px;
  border-color: rgba(226,232,240,.82);
  border-radius: 11px;
  background: rgba(248,250,252,.78);
  color: #475569;
  font-size: .69rem;
  font-weight: 700;
}
.columns-button[hidden] { display: none; }
.columns-button:hover { border-color: #c7d2fe; background: #f8f7ff; }
.columns-button .columns-button-label { margin: 0; color: inherit; }
.columns-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.table-settings-control { position: relative; display: inline-flex; }
.table-settings-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(226,232,240,.82);
  border-radius: 11px;
  background: rgba(248,250,252,.78);
  color: #475569;
}
.table-settings-button:hover, .table-settings-control.open .table-settings-button { border-color: #c7d2fe; background: #f8f7ff; color: #4f46e5; }
.table-settings-button > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.table-settings-button:hover .toolbar-tooltip { opacity: 1; transform: none; visibility: visible; }
.table-settings-control.open .table-settings-button .toolbar-tooltip { opacity: 0; transform: translateY(3px); visibility: hidden; }
.table-settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 95;
  display: grid;
  gap: 8px;
  width: 144px;
  padding: 10px;
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 50px -24px rgba(15,23,42,.48);
}
.table-settings-menu[hidden] { display: none; }
.table-settings-menu .page-size-control,
.table-settings-menu .row-height-control,
.table-settings-menu .table-layout-switch {
  position: relative;
  width: 124px;
  min-width: 124px;
  height: 36px;
  min-height: 36px;
}
.table-settings-menu .page-size-control,
.table-settings-menu .row-height-control { justify-content: space-between; }
.table-settings-menu .page-size-button { width: 76px; min-width: 76px; }
.table-settings-menu .table-layout-switch button { width: 57px; min-width: 57px; }
.table-settings-menu .page-size-tooltip,
.table-settings-menu .row-height-control > [role="tooltip"],
.table-settings-menu .table-layout-switch > .toolbar-tooltip {
  top: 50%;
  right: calc(100% + 18px);
  bottom: auto;
  transform: translate(3px, -50%);
}
.table-settings-menu .page-size-control:hover .page-size-tooltip,
.table-settings-menu .row-height-control:hover > [role="tooltip"],
.table-settings-menu .table-layout-switch:hover > .toolbar-tooltip {
  transform: translate(0, -50%);
}
.toolbar-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 80;
  width: 260px;
  padding: 9px 11px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 15px 35px -18px rgba(15,23,42,.65);
  white-space: normal;
  text-align: left;
  font: 450 .66rem/1.45 var(--body);
  opacity: 0;
  transform: translateY(3px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.columns-button .toolbar-tooltip { margin-left: 0; color: #fff; }
.view-switch:hover .toolbar-tooltip,
.table-layout-switch:hover .toolbar-tooltip,
.columns-button:hover .toolbar-tooltip { opacity: 1; transform: none; visibility: visible; }
.results-control-bar .table-filter-note { display: none; }
.results-control-bar + .active-filters { margin: -8px 4px 18px; }
.filter-chip { border: 1px solid #e0e7ff; border-radius: 999px; background: #f5f3ff; color: #4338ca; }

.results:not(.table-results) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.document-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 306px;
  overflow: hidden;
  padding: 28px 30px 24px;
  border-color: rgba(226,232,240,.92);
  border-radius: 24px;
  box-shadow: 0 8px 24px -21px rgba(15,23,42,.4);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.document-card:hover { border-color: #c7d2fe; box-shadow: var(--aether-hover-shadow); transform: translateY(-2px); }
.document-card .card-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 23px; }
.status { display: inline-flex; align-items: center; width: fit-content; border: 1px solid transparent; border-radius: 999px; background: #f1f5f9; white-space: nowrap; }
.status.active { color: #047857; border-color: #d1fae5; background: #ecfdf5; }
.status.suspended { color: #b45309; border-color: #fef3c7; background: #fffbeb; }
.status.terminated { color: #b91c1c; border-color: #fee2e2; background: #fef2f2; }
.status.extended { color: #5b21b6; border-color: #ede9fe; background: #f5f3ff; }
.status.resumed { color: #0f766e; border-color: #ccfbf1; background: #f0fdfa; }
.status.archived { color: #475569; border-color: #e2e8f0; background: #f1f5f9; }
.status.unknown { color: #64748b; border-color: #e2e8f0; background: #f8fafc; }
.document-card .doc-number {
  min-width: 0;
  overflow: hidden;
  padding: 7px 12px;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  background: #f8f7ff;
  color: #4f46e5;
  font-size: .72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-card .card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 0; }
.card-document-kind { margin-bottom: 7px; color: #94a3b8; font: 750 .64rem/1.25 var(--data); letter-spacing: .075em; text-transform: uppercase; }
.document-card .product {
  min-height: 3.1em;
  margin: 0 0 23px;
  color: #1e293b;
  font-size: .89rem;
  font-weight: 750;
  line-height: 1.5;
}
.card-parties { display: grid; gap: 10px; margin: auto 0 0; padding: 18px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.card-parties div { display: grid; grid-template-columns: minmax(90px, .55fr) minmax(0, 1fr); gap: 14px; }
.card-parties dt { color: #64748b; font-size: .72rem; }
.card-parties dd { margin: 0; overflow: hidden; color: #334155; font-size: .72rem; font-weight: 700; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.document-card .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 0; margin-top: 18px; padding: 0; border: 0; background: transparent; backdrop-filter: none; }
.document-card .doc-date { color: #94a3b8; font-size: .67rem; font-weight: 650; }
.card-details { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: #4f46e5; font-size: .74rem; font-weight: 800; }
.card-details svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.card-details:hover { color: #4338ca; }
.card-details:hover svg { transform: translateX(3px); }
.load-more, .message { border-color: rgba(226,232,240,.95); border-radius: 15px; box-shadow: var(--aether-card-shadow); }
.load-more:hover { border-color: #c7d2fe; background: #f8f7ff; color: #4338ca; }
.load-more-spinner {
  display: none;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border: 2px solid #c7d2fe;
  border-top-color: #4f46e5;
  border-radius: 50%;
  vertical-align: -2px;
  animation: load-more-spin .7s linear infinite;
}
.load-more.loading { cursor: wait; color: #4338ca; }
.load-more.loading .load-more-spinner { display: inline-block; }
.load-more.loading .load-more-arrow { display: none; }
.load-more-arrow { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.load-more:disabled { opacity: .78; }
@keyframes load-more-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .load-more-spinner { animation-duration: 1.5s; } }
.message { border-left: 3px solid #6366f1; }
.search-timeout-message { border-left-color: #f59e0b; background: #fffbeb; color: #475569; }
.search-timeout-message strong { display: block; margin-bottom: 6px; color: #92400e; font-size: .82rem; }
.search-timeout-message p { margin: 5px 0; font-size: .74rem; line-height: 1.5; }
.search-timeout-message small { display: block; margin-top: 8px; color: #64748b; font-size: .66rem; }
.search-timeout-message b { color: #334155; font-weight: 650; }

.catalog-shell.table-mode { padding-top: 38px; }
.registry-table-wrap {
  border-color: rgba(203,213,225,.72);
  border-radius: 18px;
  box-shadow: 0 18px 44px -30px rgba(15,23,42,.3);
}
body.table-page-layout .site-header {
  transition: padding-inline 180ms cubic-bezier(.22,1,.36,1);
}
body.table-page-layout.table-header-pushing .site-header {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(calc(var(--table-header-push, 0) * -100%));
}
body.table-page-layout.table-sticky-active .site-header {
  transform: translateY(-100%);
  pointer-events: none;
}
body.table-page-layout .registry-table-wrap {
  max-height: none;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
}
body.table-page-layout .registry-table th { top: 0; }
.page-sticky-header {
  position: fixed;
  top: 0;
  z-index: 45;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(203,213,225,.8);
  border-top: 0;
  background: #f8fafc;
  box-shadow: 0 10px 25px -16px rgba(15,23,42,.34);
}
.page-sticky-header.visible { display: block; }
.page-sticky-header .registry-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.page-sticky-header .registry-table th { position: sticky; top: 0; }
.page-sticky-header::-webkit-scrollbar { display: none; }
.page-sticky-header { scrollbar-width: none; }
.back-to-top {
  position: fixed;
  left: var(--table-edge-left, 22px);
  bottom: 18px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: #252b36;
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(15,23,42,.62);
  opacity: 0;
  transform: translate(-50%, 12px) scale(.92);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 200ms cubic-bezier(.22,1,.36,1), visibility 0s linear 200ms, background 150ms ease;
}
.back-to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover { background: #111827; transform: translate(-50%, -2px) scale(1); }
.back-to-top:active { transform: translate(-50%, 0) scale(.96); }
body.table-page-layout.table-sticky-active .back-to-top {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.registry-table th {
  border-right-color: rgba(226,232,240,.82);
  border-bottom-color: rgba(203,213,225,.75);
  background: rgba(248,250,252,.97);
  color: #0f172a;
  backdrop-filter: blur(12px);
}
.registry-table th > .column-heading { color: #334155; font-size: .62rem; letter-spacing: .075em; }
.column-group { color: #94a3b8; }
.registry-table th input, .registry-link-filter, .period-filter-button, .multi-filter-button, .text-filter-button {
  height: 25px;
  padding-right: 7px;
  padding-left: 7px;
  border-color: #e2e8f0;
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  color: #475569;
  font-family: var(--body);
  font-size: .68rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.registry-table th input::placeholder {
  color: #475569;
  font-family: var(--body);
  font-size: .68rem;
  font-weight: 400;
  opacity: 1;
}
.registry-table th input:focus, .registry-link-filter:focus, .period-filter-button:focus, .multi-filter-button:focus, .text-filter-button:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99,102,241,.09);
}
.period-filter-button:hover, .period-filter-button.active, .multi-filter-button:hover, .multi-filter-button.active, .text-filter-button:hover, .text-filter-button.active { border-color: #818cf8; background: #f5f3ff; color: #4f46e5; }
.column-filter-loading { color: #4f46e5; }
.column-filter-loading i { border-color: #c7d2fe; border-top-color: #4f46e5; }
.registry-table td { border-right-color: rgba(226,232,240,.82); border-bottom-color: rgba(226,232,240,.92); color: #334155; }
.registry-table tbody tr, .registry-table tbody td { height: var(--registry-current-row-height, var(--registry-row-height, 95px)); }
.registry-table .table-cell-content { max-height: max(12px, calc(var(--registry-current-row-height, var(--registry-row-height, 95px)) - 12px)); overflow: hidden; }
.registry-table tbody tr:last-child .row-resizer::after { bottom: 1px; }
body.row-resizing .registry-table-wrap { scroll-behavior: auto; }
.row-resize-tooltip {
  position: fixed;
  z-index: 100;
  min-width: 48px;
  padding: 6px 9px;
  border: 1px solid rgba(51,65,85,.82);
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(15,23,42,.7);
  text-align: center;
  font: 650 .68rem/1.2 var(--body);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.row-resize-tooltip[hidden] { display: none; }
.registry-table .cell-expand:not(.adaptive-expand):not([open]) summary > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--cell-preview-lines, 1);
}
.registry-table .table-cell-content:has(.cell-expand[open]) { overflow: auto; }
.registry-table [data-column-key="__row_number"] { text-align: center; }
.registry-table .row-number { color: #64748b; font-size: .7rem; font-variant-numeric: tabular-nums; }
.numero-sign { font-family: var(--body); font-style: normal; font-variant: normal; font-feature-settings: normal; letter-spacing: 0; }
.table-doc-link .numero-sign { display: inline-block; margin: 0 .025em; font-size: .82em; font-weight: 700; line-height: 1; transform: translateY(-.02em); }
.row-number-heading .numero-sign { font-size: .88em; font-weight: 650; }
.row-number-heading { text-align: center; }
.registry-table tbody tr { transition: box-shadow .15s ease; }
.registry-table tr:hover td { background: #fafaff; }
.registry-table th.pinned-column { background: #f8fafc; }
.registry-table .pinned-edge { box-shadow: none; }
.table-column-actions { border-radius: 0 16px 0 8px; background: transparent; }
.table-column-actions button { border-radius: 5px; color: #94a3b8; }
.table-column-actions button:hover, .table-column-actions button:focus-visible { background: #ede9fe; color: #4f46e5; }
.column-lock.locked { background: #ede9fe; color: #4f46e5; }
.registry-table th.column-drop-before { box-shadow: inset 3px 0 0 #6366f1; }
.registry-table th.column-drop-after { box-shadow: inset -3px 0 0 #6366f1; }
.table-doc-link, .registry-external-link, .cell-expand summary b { color: #4f46e5; text-decoration-color: #c7d2fe; }
.registry-table tr:not(.adaptive-ready) .cell-expand summary b { visibility: hidden; }
.table-doc-link:hover, .registry-external-link:hover, .cell-expand summary b:hover { color: #4338ca; }
.adaptive-preview .adaptive-item, .adaptive-full-list .adaptive-item, .cell-expand > div span {
  border-color: #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}
.registry-table .table-cell-content > .adaptive-item {
  display: block;
  padding: 4px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}
.registry-table .tnved-code {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: normal;
}
.registry-link-button { border-radius: 9px; }
.registry-table td .status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 25px;
  min-height: 25px;
  padding: 4px 7px;
  border-radius: 9px;
  font: 700 .68rem/1.45 var(--data);
  text-align: center;
  white-space: normal;
}
.registry-table td .registry-link-button {
  height: 25px;
  min-height: 25px;
  border-radius: 9px;
}
.registry-table td[data-column-key="__regulations"] .adaptive-item,
.registry-table td[data-column-key="__tnved"] .adaptive-item {
  display: flex;
  align-items: center;
  height: 25px;
  min-height: 25px;
  border-radius: 9px;
}
.registry-link-button.eaeu { border-color: #312e81; background: #312e81; }
.registry-link-button.eaeu:hover { background: #4338ca; }
.registry-link-button.national { border-color: #818cf8; background: #f5f3ff; color: #4f46e5; }
.registry-link-button.national:hover { border-color: #6366f1; background: #ede9fe; color: #4338ca; }
.registry-link-menu {
  overflow: hidden;
  border-color: rgba(203,213,225,.85);
  border-radius: 13px;
  box-shadow: 0 22px 50px -24px rgba(15,23,42,.42);
}
.registry-link-menu button { border-radius: 8px; color: #475569; }
.registry-link-menu button:hover, .registry-link-menu button:focus-visible { background: #f5f3ff; color: #4338ca; }
.registry-link-menu button.selected { background: #eef2ff; color: #4338ca; }
.row-action-menu, .column-multi-menu, .column-text-menu {
  overflow: hidden;
  border-color: rgba(203,213,225,.85);
  border-radius: 13px;
  box-shadow: 0 22px 50px -24px rgba(15,23,42,.42);
}
.row-action-menu button:hover, .row-action-menu button:focus-visible, .column-multi-options label:hover { background: #f5f3ff; color: #4338ca; }

.columns-dropdown {
  position: fixed;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 24px));
  overflow: hidden;
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 14px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 24px 60px -22px rgba(15,23,42,.48);
}
.columns-dropdown[hidden] { display: none; }
.columns-dropdown-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.columns-dropdown-head strong { font-size: .76rem; font-weight: 650; }
.columns-dropdown-head button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  line-height: 0;
}
.columns-dropdown-head .close-icon, .column-multi-head .close-icon { width: 16px; height: 16px; }
.columns-dropdown-head button:hover { background: #f1f5f9; color: #4338ca; }
.column-multi-head button { display: grid; place-items: center; padding: 0; line-height: 0; }
.columns-dropdown .columns-dialog-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 10px; background: #f8fafc; }
.columns-dropdown .columns-dialog-body > p { margin: 0 2px 9px; color: #64748b; font-size: .66rem; }
.columns-dropdown .column-list { flex: 1 1 auto; min-height: 100px; max-height: min(52vh, 470px); overflow: auto; border-radius: 9px; box-shadow: none; }
.columns-dropdown .column-item {
  position: relative;
  grid-template-columns: 20px 18px minmax(0,1fr);
  gap: 7px;
  min-height: 36px;
  padding: 5px 9px;
  font-size: .7rem;
}
.columns-dropdown .column-item:active { cursor: grabbing; }
.columns-dropdown .column-item.dragging { opacity: .35; }
.columns-dropdown .column-item.drop-before::before,
.columns-dropdown .column-item.drop-after::after {
  content: "";
  position: absolute;
  right: 5px;
  left: 5px;
  z-index: 2;
  height: 2px;
  border-radius: 2px;
  background: #6366f1;
  pointer-events: none;
}
.columns-dropdown .column-item.drop-before::before { top: -1px; }
.columns-dropdown .column-item.drop-after::after { bottom: -1px; }
.columns-dropdown .drag-handle { color: #6366f1; font-size: .9rem; cursor: grab; }
.columns-dropdown .column-visible { width: 14px; height: 14px; cursor: pointer; }
.columns-dropdown .column-name { min-width: 0; line-height: 1.25; }
.columns-dropdown .column-actions { gap: 10px; margin-top: 10px; }
.columns-dropdown .column-actions .text-button { font-size: .66rem; }
.columns-dropdown .column-actions .secondary-button { min-width: 100px; padding: 8px 12px; border-radius: 8px; font-size: .68rem; }

.columns-dialog, .period-dialog {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 34px 90px -25px rgba(15,23,42,.48);
}
.document-dialog {
  width: min(760px, calc(100vw - 24px));
  height: 100vh;
  max-height: 100vh;
  margin: 0 0 0 auto;
  overflow: auto;
  border-radius: 24px 0 0 24px;
  box-shadow: -18px 0 70px -30px rgba(15,23,42,.42);
}
.document-dialog[open] { animation: aether-drawer-in .38s cubic-bezier(.16,1,.3,1); }
.document-dialog::backdrop, .columns-dialog::backdrop, .period-dialog::backdrop {
  background: rgba(15,23,42,.26);
  backdrop-filter: blur(8px);
}
.dialog-head { padding: 22px 26px; border-bottom-color: rgba(226,232,240,.82); background: rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.dialog-head button { border-color: #e2e8f0; border-radius: 50%; color: #64748b; }
.close-icon { transform: translateY(-.5px); }
.dialog-head button:hover { border-color: #c7d2fe; background: #f5f3ff; color: #4338ca; }
.dialog-content, .columns-dialog-body, .period-dialog-body { background: #fafbfc; }
.detail, .period-filter-group, .column-list { border-color: #e2e8f0; border-radius: 13px; box-shadow: 0 6px 16px -16px rgba(15,23,42,.4); }
.detail dt { color: #64748b; }
.column-item:hover { background: #fafaff; }
.column-multi-head, .column-multi-actions, .column-multi-search { border-color: #e2e8f0; background: #f8fafc; }
.column-multi-search input { border-color: #e2e8f0; border-radius: 9px; }
.column-multi-search input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.09); }
.column-multi-options input, .invalid-date-option input { accent-color: #4f46e5; }
.column-multi-actions > button:last-child { border-color: #4f46e5; border-radius: 9px; background: #4f46e5; }

footer { border-top-color: rgba(226,232,240,.7); background: rgba(255,255,255,.45); backdrop-filter: blur(12px); }

@keyframes aether-drawer-in {
  from { opacity: .5; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .filters { top: auto; }
  .catalog-shell { gap: 26px; }
  .results:not(.table-results) { grid-template-columns: 1fr; }
  .results-control-bar { border-radius: 21px; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; }
  .brand-mark { width: 35px; height: 35px; }
  .search-stage { min-height: 380px; padding-top: 39px; }
  .search-stage h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .search-control { border-radius: 18px; }
  .search-control button { border-radius: 12px; }
  .results-control-bar { align-items: stretch; flex-direction: column; gap: 13px; padding: 17px; }
  .results-toolbar { min-height: 48px; }
  .view-toolbar { width: 100%; }
  .view-toolbar .view-switch { flex: 1; }
  .view-toolbar .columns-button { flex: 0 0 auto; }
  .document-card { min-height: 280px; padding: 23px 21px 20px; border-radius: 19px; }
  .card-parties div { grid-template-columns: 95px minmax(0,1fr); }
  .document-dialog { width: 100vw; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .document-dialog[open] { animation: none; }
}
