:root {
  --navy-950: #071126;
  --navy-900: #0b1734;
  --navy-850: #101f42;
  --navy-800: #16284d;
  --blue-700: #1e58c7;
  --blue-600: #2869e8;
  --blue-500: #4b82ee;
  --blue-100: #eaf1ff;
  --blue-50: #f4f7ff;
  --ink-950: #111827;
  --ink-800: #26334a;
  --ink-700: #3e4b61;
  --ink-500: #718096;
  --ink-400: #95a0b2;
  --line: #e4e8ef;
  --line-soft: #edf0f5;
  --surface: #ffffff;
  --canvas: #f5f6f9;
  --green: #15966a;
  --green-soft: #e8f7f1;
  --amber: #ae7412;
  --amber-soft: #fff4db;
  --red: #c94747;
  --red-soft: #fff0ef;
  --gold: #cba461;
  --gold-soft: #f7edda;
  --map-series-1: #2869e8;
  --map-series-2: #15966a;
  --map-series-3: #b7791f;
  --map-series-4: #805ad5;
  --map-series-5: #d05278;
  --map-series-6: #0f8c9d;
  --map-series-7: #d76432;
  --map-series-8: #60718c;
  --sidebar-width: 252px;
  --topbar-height: 82px;
  --shadow-xs: 0 1px 2px rgba(10, 24, 53, 0.05);
  --shadow-sm: 0 8px 30px rgba(21, 34, 58, 0.08);
  --shadow-lg: 0 28px 70px rgba(8, 20, 44, 0.16);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink-950);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink-950);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 105, 232, 0.26);
  outline-offset: 2px;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-900);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 11px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 15px;
  letter-spacing: -0.5px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand strong {
  font-family: "PT Serif", Georgia, serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.2px;
}

.brand small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1.2;
}

.brand--light {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #8db2ff;
}

/* Phone authentication */

.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(480px, 1.1fr) minmax(440px, 0.9fr);
  background: var(--surface);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 42px clamp(48px, 6vw, 100px);
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgba(68, 116, 218, 0.23), transparent 27%),
    radial-gradient(circle at 6% 84%, rgba(23, 65, 141, 0.34), transparent 32%),
    linear-gradient(145deg, #08142d 0%, #0c1c3d 55%, #102750 100%);
  color: #fff;
}

.auth-story::before,
.auth-story::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.auth-story::before {
  width: 620px;
  height: 620px;
  right: -380px;
  top: 18%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
}

.auth-story::after {
  inset: 0;
  opacity: 0.35;
  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: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 35%, black 70%, transparent);
}

.auth-story > * {
  position: relative;
  z-index: 1;
}

.auth-story__content {
  width: min(620px, 100%);
  margin: auto 0;
  padding: 70px 0 60px;
}

.auth-story__content h1 {
  margin: 20px 0 22px;
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(42px, 4.3vw, 66px);
  font-weight: 700;
  letter-spacing: -2.1px;
  line-height: 1.04;
}

.auth-story__content > p {
  max-width: 570px;
  margin: 0;
  color: #b8c4d9;
  font-size: 16px;
  line-height: 1.8;
}

.auth-features {
  display: grid;
  max-width: 560px;
  margin-top: 52px;
  gap: 9px;
}

.auth-features article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
}

.auth-features__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  background: rgba(77, 129, 238, 0.18);
  color: #9bbcff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-features div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-features strong {
  font-size: 13px;
  font-weight: 700;
}

.auth-features small {
  color: #99a9c3;
  font-size: 11px;
}

.auth-story__foot {
  margin: 0;
  color: #667795;
  font-size: 9px;
  letter-spacing: 0.2px;
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  padding: 40px clamp(42px, 7vw, 112px);
  place-items: center;
  background: #fbfbfc;
}

.auth-card {
  width: min(410px, 100%);
}

.auth-card__mobile-brand {
  display: none;
}

.auth-card h2 {
  margin: 14px 0 12px;
  color: var(--navy-900);
  font-family: "PT Serif", Georgia, serif;
  font-size: 38px;
  letter-spacing: -0.8px;
  line-height: 1.12;
}

.auth-card__lead {
  margin: 0 0 35px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form label {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 700;
}

.email-field {
  display: flex;
  min-height: 54px;
  align-items: center;
  border: 1px solid #d7dce6;
  border-radius: 9px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.email-field:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(40, 105, 232, 0.1);
}

.email-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 15px;
  background: transparent;
  color: var(--ink-950);
  font-size: 14px;
}

.email-field input::placeholder {
  color: #a7afbd;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button--wide {
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
}

.button--primary {
  background: var(--blue-600);
  box-shadow: 0 8px 18px rgba(40, 105, 232, 0.19);
  color: #fff;
}

.button--primary:hover {
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(40, 105, 232, 0.25);
}

.button--secondary {
  border: 1px solid #dce1e9;
  background: #fff;
  color: var(--ink-800);
}

.button--secondary:hover {
  border-color: #bdc6d6;
  background: #fafbfc;
}

.button--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

.code-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.code-heading > div {
  display: grid;
  gap: 4px;
}

.code-heading small {
  color: var(--ink-500);
  font-size: 10px;
}

.text-button {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 700;
}

.text-button:disabled {
  cursor: default;
  color: var(--ink-400);
}

.auth-resend-row {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-resend-row small {
  color: var(--ink-500);
  font-size: 10px;
}

.code-input {
  width: 100%;
  height: 58px;
  border: 1px solid #d7dce6;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--navy-900);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 12px;
  text-align: center;
}

.code-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(40, 105, 232, 0.1);
}

.form-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 10px;
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--green);
}

.auth-help {
  display: flex;
  gap: 11px;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #f1f4f9;
  color: var(--ink-500);
}

.auth-help > span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid #aeb8c8;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
}

.auth-help p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.6;
}

.auth-legal {
  margin: 24px 0 0;
  color: #9aa3b2;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

/* Main desktop shell */

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  min-height: 100vh;
  padding: 26px 18px 18px;
  flex-direction: column;
  background:
    radial-gradient(circle at 25% 0%, rgba(47, 93, 184, 0.2), transparent 24%),
    linear-gradient(180deg, var(--navy-900), #08142d);
  box-shadow: 5px 0 25px rgba(8, 20, 44, 0.08);
  color: #fff;
}

.sidebar__top {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.sidebar-close,
.menu-button {
  display: none;
}

.sidebar-nav {
  display: flex;
  margin-top: 34px;
  flex-direction: column;
  gap: 4px;
}

.sidebar-label {
  margin: 0 11px 9px;
  color: #60708e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.sidebar-label--spaced {
  margin-top: 22px;
}

.nav-item {
  display: grid;
  width: 100%;
  min-height: 45px;
  padding: 0 11px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  background: transparent;
  color: #8898b4;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #d6deec;
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(48, 104, 221, 0.3), rgba(48, 104, 221, 0.14));
  color: #fff;
  box-shadow: inset 2px 0 0 #4b82ee;
}

.nav-item__icon {
  display: grid;
  place-items: center;
}

.nav-item__icon svg {
  width: 17px;
  height: 17px;
}

.nav-count {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #7f8da8;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.nav-item.is-active .nav-count {
  background: rgba(255, 255, 255, 0.1);
  color: #b7c9ec;
}

.nav-count--accent {
  color: #9ebafa;
}

.pro-badge {
  padding: 3px 6px;
  border: 1px solid rgba(219, 181, 112, 0.28);
  border-radius: 5px;
  background: rgba(203, 164, 97, 0.1);
  color: #d6b478;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.sidebar__bottom {
  position: relative;
  display: grid;
  margin-top: auto;
  gap: 10px;
}

.data-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 8px 3px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #45ce9a;
  box-shadow: 0 0 0 4px rgba(69, 206, 154, 0.08);
}

.data-status div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.data-status strong {
  color: #aab6ca;
  font-size: 8.5px;
  font-weight: 700;
}

.data-status small {
  color: #5f708d;
  font-size: 7.5px;
}

.profile-card {
  display: grid;
  width: 100%;
  min-height: 54px;
  padding: 7px 9px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  text-align: left;
}

.profile-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.profile-card__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(139, 174, 244, 0.2);
  border-radius: 9px;
  background: #182d58;
  color: #b8ccf6;
  font-size: 9px;
  font-weight: 800;
}

.profile-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.profile-card__copy strong,
.profile-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__copy strong {
  color: #dbe3f0;
  font-size: 9px;
  font-weight: 700;
}

.profile-card__copy small {
  color: #657694;
  font-size: 7.5px;
}

.profile-card__more {
  color: #60708c;
  font-size: 9px;
  letter-spacing: 1px;
}

.profile-menu {
  position: absolute;
  right: 0;
  bottom: 62px;
  left: 0;
  z-index: 3;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: #122143;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.profile-menu button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: #d9e1ef;
  font-size: 9px;
  text-align: left;
}

.profile-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.workspace {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  padding: 15px 30px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

.topbar__title p {
  margin: 0 0 4px;
  color: var(--ink-400);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.topbar__title h1 {
  margin: 0;
  color: var(--navy-900);
  font-family: "PT Serif", Georgia, serif;
  font-size: 20px;
  letter-spacing: -0.25px;
  line-height: 1.15;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-search {
  display: flex;
  width: clamp(280px, 30vw, 430px);
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #e1e5ec;
  border-radius: 9px;
  background: #f8f9fb;
  color: var(--ink-400);
  transition: border-color 150ms ease, background 150ms ease;
}

.global-search:focus-within {
  border-color: #b7c7e8;
  background: #fff;
}

.global-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-800);
  font-size: 10px;
}

.global-search input::placeholder {
  color: #9aa5b6;
}

.global-search kbd {
  padding: 3px 6px;
  border: 1px solid #dde2ea;
  border-radius: 5px;
  background: #fff;
  color: #a0a9b7;
  font-family: inherit;
  font-size: 7px;
  box-shadow: var(--shadow-xs);
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e1e5ec;
  border-radius: 9px;
  cursor: pointer;
  background: #fff;
  color: var(--ink-500);
}

.icon-button {
  display: grid;
}

.icon-button:hover,
.menu-button:hover {
  background: #f8f9fb;
  color: var(--blue-600);
}

.icon-button.is-spinning svg {
  animation: spin 700ms linear infinite;
}

.workspace-content {
  min-height: calc(100vh - var(--topbar-height));
  padding: 22px 30px 40px;
}

.loading-state {
  display: grid;
  min-height: 52vh;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--ink-500);
}

.loading-state p {
  margin: 0;
  font-size: 11px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #dbe3f0;
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

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

/* Reusable workspace components */

.view-stack {
  display: grid;
  min-width: 0;
  gap: 16px;
}

#view-content,
.catalog-layout > *,
.ratings-layout > *,
.panel {
  min-width: 0;
  max-width: 100%;
}

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

.stat-card {
  position: relative;
  min-height: 82px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.stat-card::after {
  position: absolute;
  width: 70px;
  height: 70px;
  right: -27px;
  bottom: -40px;
  border: 12px solid rgba(40, 105, 232, 0.035);
  border-radius: 50%;
  content: "";
}

.stat-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-500);
  font-size: 8.5px;
  font-weight: 600;
}

.stat-card__label svg {
  width: 14px;
  height: 14px;
  color: #a7b2c3;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-900);
  font-family: "PT Serif", Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

.stat-card strong small {
  margin-left: 3px;
  color: var(--ink-500);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 600;
}

.stat-card__trend {
  margin-left: 6px;
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.panel-heading {
  display: flex;
  min-height: 58px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: "PT Serif", Georgia, serif;
  font-size: 16px;
}

.panel-heading p {
  margin: 3px 0 0;
  color: var(--ink-400);
  font-size: 8px;
}

.data-date-banner {
  display: flex;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  background: linear-gradient(90deg, #f7faff 0%, #fff 72%);
  color: var(--ink-500);
  font-size: 9px;
}

.data-date-banner > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.data-date-banner__icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-100);
  color: var(--blue-600);
}

.data-date-banner__icon svg {
  width: 13px;
  height: 13px;
}

.data-date-banner strong {
  color: var(--ink-950);
  font-size: 10px;
}

.data-date-banner small {
  color: var(--ink-400);
  font-size: 8px;
}

.catalog-heading {
  align-items: flex-start;
  flex-direction: column;
}

.catalog-heading .toolbar {
  width: 100%;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-select {
  height: 34px;
  min-width: 110px;
  border: 1px solid #dfe4eb;
  border-radius: 7px;
  outline: 0;
  padding: 0 28px 0 10px;
  background: #fff;
  color: var(--ink-700);
  font-size: 9px;
  font-weight: 600;
}

.filter-select:focus {
  border-color: var(--blue-500);
}

.filter-reset {
  height: 34px;
  border: 0;
  padding: 0 9px;
  cursor: pointer;
  background: transparent;
  color: var(--blue-600);
  font-size: 8.5px;
  font-weight: 700;
}

.check-filter {
  position: relative;
  min-width: 110px;
  color: var(--ink-700);
  font-size: 9px;
  font-weight: 600;
}

.check-filter[open] {
  z-index: 40;
}

.check-filter > summary {
  display: flex;
  height: 34px;
  padding: 0 28px 0 10px;
  align-items: center;
  border: 1px solid #dfe4eb;
  border-radius: 7px;
  cursor: pointer;
  background: #fff;
  list-style: none;
  white-space: nowrap;
}

.check-filter > summary::-webkit-details-marker {
  display: none;
}

.check-filter > summary::after {
  position: absolute;
  right: 10px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.check-filter[open] > summary {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(40, 105, 232, 0.08);
}

.check-filter__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 210px;
  max-width: 300px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.check-filter__options {
  max-height: 245px;
  overflow-y: auto;
}

.check-filter__all-option {
  display: grid;
  width: 100%;
  min-height: 31px;
  padding: 0 7px;
  align-items: center;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 6px;
  cursor: pointer;
  background: #f6f8ff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.check-filter__all-option:hover {
  background: var(--blue-50);
}

.check-filter__all-option:disabled {
  cursor: default;
  opacity: 1;
}

.check-filter__all-box {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid #8793a7;
  border-radius: 3px;
  background: #fff;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.check-filter__all-option.is-selected .check-filter__all-box {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.check-filter__all-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.check-filter__all-option small {
  color: var(--ink-400);
  font-size: 7.5px;
}

.check-filter__search {
  display: block;
  margin-bottom: 7px;
}

.check-filter__search input {
  width: 100%;
  height: 34px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  padding: 0 10px;
  outline: 0;
  color: var(--ink-800);
  background: #fff;
  font: inherit;
  font-size: 9px;
}

.check-filter__search input:focus {
  border-color: #3e82ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.1);
}

.check-filter__empty {
  padding: 14px 8px 10px;
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}

.check-filter__options label {
  display: grid;
  min-height: 31px;
  padding: 0 7px;
  align-items: center;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 7px;
  border-radius: 6px;
  cursor: pointer;
}

.check-filter__options label[hidden],
.check-filter__empty[hidden] {
  display: none;
}

.check-filter__options label:hover {
  background: var(--blue-50);
}

.check-filter__options input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue-600);
}

.check-filter__options span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-filter__options small {
  color: var(--ink-400);
  font-size: 7.5px;
}

.check-filter__menu > button {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  padding: 8px 5px 2px;
  cursor: pointer;
  background: transparent;
  color: var(--blue-600);
  font-size: 8px;
  font-weight: 700;
  text-align: left;
}

.check-filter__menu > button:disabled {
  cursor: default;
  color: var(--ink-300);
}

.duration-filter__menu {
  display: grid;
  min-width: 230px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.duration-filter__menu label {
  display: grid;
  gap: 5px;
  color: var(--ink-400);
  font-size: 8px;
}

.duration-filter__menu input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  padding: 0 8px;
  color: var(--ink-800);
  font: 600 9px "Manrope", sans-serif;
}

.duration-filter__menu input:focus {
  border-color: var(--blue-500);
}

.duration-filter__menu > button {
  grid-column: 1 / -1;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.catalog-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 0 10px;
  text-align: right;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  text-align: center;
}

.data-table th {
  height: 39px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  color: #7d889a;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.info-tip {
  position: relative;
  display: inline-grid;
  width: 14px;
  height: 14px;
  margin-left: 3px;
  place-items: center;
  border: 1px solid #aeb9c9;
  border-radius: 50%;
  cursor: help;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.info-tip__bubble {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: -8px;
  bottom: auto;
  width: 230px;
  padding: 9px 10px;
  border-radius: 7px;
  pointer-events: none;
  background: var(--navy-900);
  color: #fff;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  opacity: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.info-tip:hover .info-tip__bubble,
.info-tip:focus .info-tip__bubble,
.info-tip:focus-visible .info-tip__bubble {
  opacity: 1;
  transform: translateY(0);
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.data-table tbody tr:hover {
  background: #f8faff;
}

.data-table tbody tr.is-selected {
  background: var(--blue-50);
  box-shadow: inset 2px 0 0 var(--blue-600);
}

.data-table td {
  height: 55px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-700);
  font-size: 9px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.favorite-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  background: transparent;
  color: #bdc4cf;
}

.favorite-button:hover {
  background: #fff;
  color: var(--gold);
}

.favorite-button.is-active {
  color: var(--gold);
}

.favorite-button svg {
  width: 15px;
  height: 15px;
}

.favorite-button.is-active svg {
  fill: currentColor;
}

.instrument-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.data-table--portfolio tr.is-cash-row td:first-child {
  text-align: center;
}

.data-table--portfolio tr.is-cash-row .instrument-cell {
  justify-content: center;
  text-align: center;
}

.instrument-cell .favorite-button {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}

.instrument-logo {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 8px;
  background: #edf2fb;
  color: #526b9b;
  font-size: 8px;
  font-weight: 800;
}

.instrument-cell > div {
  min-width: 0;
}

.instrument-cell strong,
.instrument-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instrument-cell strong {
  color: var(--ink-950);
  font-size: 9px;
  font-weight: 700;
}

.instrument-cell small {
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 7.5px;
}

.instrument-kind {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  background: #f0f3f8;
  color: #6f7b8e;
  font-size: 7.5px;
  font-weight: 700;
}

.metric-positive {
  color: var(--green);
  font-weight: 700;
}

.metric-strong {
  color: var(--ink-950);
  font-weight: 700;
}

.coupon-cell {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.coupon-type-badge {
  display: inline-flex;
  min-width: 42px;
  height: 18px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}

.coupon-type-badge--fixed {
  background: linear-gradient(180deg, #18a253 0%, #07843e 100%);
  box-shadow: 0 3px 8px rgba(8, 132, 62, 0.16);
}

.coupon-type-badge--floater {
  background: linear-gradient(180deg, #7838ff 0%, #4e10dc 100%);
  box-shadow: 0 3px 8px rgba(91, 28, 226, 0.18);
}

.coupon-cell__value {
  color: var(--ink-950);
  font-size: 9px;
  font-weight: 750;
}

.quantity-input {
  width: 56px;
  height: 30px;
  border: 1px solid #dfe4eb;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink-800);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.quantity-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(40, 105, 232, 0.09);
}

.rating-badge {
  display: inline-flex;
  min-width: 38px;
  height: 21px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 7.5px;
  font-weight: 800;
}

.rating-badge--medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.rating-badge--muted {
  background: #eff1f5;
  color: #778397;
}

.offer-badge {
  display: inline-flex;
  min-width: 38px;
  height: 21px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 7.5px;
  font-weight: 800;
}

.offer-badge--muted {
  background: #eff1f5;
  color: #778397;
}

.offer-cell {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.offer-maturity-heading {
  display: inline-block;
  line-height: 1.2;
}

.offer-kind-label {
  color: var(--ink-400);
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
}

.offer-badge--put {
  background: linear-gradient(180deg, #169df5 0%, #2860e8 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(28, 104, 232, 0.2);
}

.offer-badge--call {
  background: linear-gradient(180deg, #ffad45 0%, #ee742d 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(238, 116, 45, 0.2);
}

.offer-badge--other {
  background: linear-gradient(180deg, #14b8a6 0%, #0f8f83 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(15, 143, 131, 0.18);
}

.table-footer {
  display: flex;
  min-height: 47px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-400);
  font-size: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination button {
  min-width: 27px;
  height: 27px;
  border: 1px solid #e0e4eb;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  color: var(--ink-500);
  font-size: 8px;
}

.pagination button.is-active {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
}

.detail-panel {
  overflow: hidden;
}

.detail-panel--drawer {
  position: fixed;
  z-index: 60;
  top: calc(var(--topbar-height) + 18px);
  right: 24px;
  width: min(620px, calc(100vw - 48px));
  max-height: calc(100vh - var(--topbar-height) - 42px);
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  box-shadow: var(--shadow-lg);
  animation: detail-drawer-in 160ms ease-out;
}

@keyframes detail-drawer-in {
  from { transform: translateX(18px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.detail-hero {
  padding: 19px 18px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-hero__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.detail-hero__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.detail-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  background: #fff;
  color: var(--ink-500);
  font: 500 20px/1 "Manrope", sans-serif;
}

.detail-close:hover,
.detail-close:focus-visible {
  border-color: var(--blue-500);
  outline: 0;
  color: var(--blue-600);
}

.detail-hero__issuer {
  margin: 0;
  color: var(--ink-400);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.detail-hero h2 {
  margin: 7px 0 5px;
  color: var(--navy-900);
  font-family: "PT Serif", Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
}

.detail-hero__isin {
  margin: 0;
  color: var(--ink-400);
  font-size: 8px;
}

.detail-tags {
  display: flex;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 5px;
}

.detail-tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f2f4f8;
  color: var(--ink-500);
  font-size: 7px;
  font-weight: 700;
}

.detail-metrics {
  display: grid;
  padding: 4px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-metric {
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.detail-metric:nth-child(odd) {
  padding-right: 12px;
  border-right: 1px solid var(--line-soft);
}

.detail-metric:nth-child(even) {
  padding-left: 12px;
}

.detail-metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-metric span,
.detail-metric strong {
  display: block;
}

.detail-metric span {
  margin-bottom: 5px;
  color: var(--ink-400);
  font-size: 7.5px;
}

.detail-metric strong {
  overflow: hidden;
  color: var(--ink-950);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: grid;
  padding: 15px 18px 18px;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  background: #fafbfc;
}

.detail-content {
  display: grid;
  padding: 4px 18px 18px;
  gap: 12px;
}

.detail-section {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fff;
}

.detail-section h3 {
  margin: 0;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft);
  background: #fafbfc;
  color: var(--navy-900);
  font-size: 12px;
}

.detail-section--tone-0 h3 {
  border-bottom-color: #cddcff;
  background: linear-gradient(100deg, #e8f1ff, #f2f6ff);
  color: #174fb4;
}

.detail-section--tone-1 h3 {
  border-bottom-color: #c7eadc;
  background: linear-gradient(100deg, #e4f7ef, #f0fbf6);
  color: #117453;
}

.detail-section--tone-2 h3 {
  border-bottom-color: #dccfff;
  background: linear-gradient(100deg, #eee8ff, #f7f4ff);
  color: #6031bd;
}

.detail-section--tone-3 h3 {
  border-bottom-color: #f4dfad;
  background: linear-gradient(100deg, #fff3d5, #fff9eb);
  color: #96620b;
}

.detail-section--tone-4 h3 {
  border-bottom-color: #c4e8ed;
  background: linear-gradient(100deg, #e2f5f7, #f1fafb);
  color: #0f7280;
}

.detail-section--tone-5 h3 {
  border-bottom-color: #f2d0dc;
  background: linear-gradient(100deg, #fceaf1, #fff5f8);
  color: #a43c64;
}

.detail-section dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-section dl > div {
  display: grid;
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px;
  align-content: center;
  gap: 3px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-section dl > div:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.detail-section dl > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-section dt {
  overflow: hidden;
  color: var(--ink-400);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 700;
}

.detail-section--comment {
  padding: 11px;
  border-color: #dfe7f7;
  background: #f8faff;
}

.detail-section--comment h3 {
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-section--comment p {
  margin: 7px 0 0;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.detail-actions .button:last-child {
  width: 39px;
  padding: 0;
}

.detail-empty {
  display: grid;
  min-height: 360px;
  padding: 28px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.detail-empty__icon,
.empty-state__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-500);
}

.detail-empty h3,
.empty-state h3 {
  margin: 15px 0 6px;
  color: var(--navy-900);
  font-family: "PT Serif", Georgia, serif;
  font-size: 15px;
}

.detail-empty p,
.empty-state p {
  max-width: 260px;
  margin: 0;
  color: var(--ink-400);
  font-size: 8.5px;
  line-height: 1.6;
}

.empty-state {
  display: grid;
  min-height: 330px;
  padding: 30px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state .button {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: "PT Serif", Georgia, serif;
  font-size: 19px;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 9px;
}

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-tab {
  height: 34px;
  border: 1px solid #dfe4eb;
  border-radius: 7px;
  padding: 0 12px;
  cursor: pointer;
  background: #fff;
  color: var(--ink-500);
  font-size: 8.5px;
  font-weight: 700;
}

.portfolio-tab.is-active {
  border-color: #bed0f2;
  background: var(--blue-100);
  color: var(--blue-700);
}

.portfolio-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(120px, 0.6fr));
  overflow: hidden;
}

.portfolio-value {
  padding: 22px;
  background: linear-gradient(135deg, #0d1e40, #152e5d);
  color: #fff;
}

.portfolio-value span,
.portfolio-metric span {
  display: block;
  margin-bottom: 8px;
  font-size: 8px;
  font-weight: 600;
}

.portfolio-value span {
  color: #8fa1be;
}

.portfolio-value strong {
  font-family: "PT Serif", Georgia, serif;
  font-size: 27px;
}

.portfolio-value small {
  display: block;
  margin-top: 9px;
  color: #7f92b1;
  font-size: 8px;
}

.portfolio-metric {
  padding: 22px 18px;
  border-right: 1px solid var(--line-soft);
}

.portfolio-metric:last-child {
  border-right: 0;
}

.portfolio-metric span {
  color: var(--ink-400);
}

.portfolio-metric strong {
  color: var(--navy-900);
  font-size: 16px;
}

.allocation-bar {
  display: flex;
  width: 100%;
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8ebf0;
}

.allocation-bar span:nth-child(1) { background: #2869e8; }
.allocation-bar span:nth-child(2) { background: #6d91db; }
.allocation-bar span:nth-child(3) { background: #c5d3ee; }

.ratings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.rating-list {
  display: grid;
}

.rating-row {
  display: grid;
  min-height: 61px;
  padding: 10px 16px;
  grid-template-columns: minmax(0, 1.4fr) 70px 74px 74px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 8.5px;
}

.rating-row:last-child {
  border-bottom: 0;
}

.rating-row__issuer strong,
.rating-row__issuer small {
  display: block;
}

.rating-row__issuer strong {
  color: var(--ink-950);
  font-size: 9px;
}

.rating-row__issuer small {
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 7.5px;
}

.rating-distribution {
  display: grid;
  padding: 17px;
  gap: 14px;
}

.distribution-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 9px;
  color: var(--ink-500);
  font-size: 8px;
}

.distribution-track {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf0f4;
}

.distribution-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
}

.pro-hero {
  position: relative;
  min-height: 340px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid #203962;
  border-radius: 13px;
  background:
    radial-gradient(circle at 77% 25%, rgba(203, 164, 97, 0.16), transparent 25%),
    linear-gradient(140deg, #09152d 0%, #10264c 100%);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.pro-hero::after {
  position: absolute;
  width: 370px;
  height: 370px;
  right: -100px;
  bottom: -190px;
  border: 1px solid rgba(218, 181, 111, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(218, 181, 111, 0.035), 0 0 0 110px rgba(218, 181, 111, 0.02);
  content: "";
}

.pro-hero > * {
  position: relative;
  z-index: 1;
}

.pro-hero__badge {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid rgba(218, 181, 111, 0.32);
  border-radius: 5px;
  background: rgba(218, 181, 111, 0.09);
  color: #dfbd80;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.pro-hero h2 {
  max-width: 580px;
  margin: 19px 0 14px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 35px;
  letter-spacing: -0.7px;
  line-height: 1.15;
}

.pro-hero p {
  max-width: 580px;
  margin: 0;
  color: #a9b6cb;
  font-size: 11px;
  line-height: 1.75;
}

.pro-feature-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pro-feature {
  min-height: 100px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.pro-feature strong,
.pro-feature small {
  display: block;
}

.pro-feature strong {
  margin-bottom: 7px;
  color: #e7ebf3;
  font-size: 10px;
}

.pro-feature small {
  color: #8191ac;
  font-size: 8px;
  line-height: 1.5;
}

.notice-card {
  display: flex;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #eadbbb;
  border-radius: 10px;
  background: #fffaf0;
}

.notice-card strong,
.notice-card small {
  display: block;
}

.notice-card strong {
  color: #725322;
  font-size: 10px;
}

.notice-card small {
  margin-top: 4px;
  color: #987a49;
  font-size: 8px;
}

/* Market maps */

.market-map-view {
  gap: 14px;
}

.market-map-presets {
  display: flex;
  min-width: 0;
  padding: 5px;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  scrollbar-width: thin;
}

.market-map-preset {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 12px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.market-map-preset:hover {
  background: var(--canvas);
  color: var(--ink-800);
}

.market-map-preset small {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-400);
  font-size: 8px;
}

.market-map-preset.is-active {
  background: linear-gradient(135deg, var(--blue-600), #681cff);
  box-shadow: 0 5px 14px rgba(60, 75, 238, 0.2);
  color: #fff;
}

.market-map-preset.is-active small {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.market-map-toolbar {
  display: grid;
  min-width: 0;
  padding: 15px 16px 16px;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.market-map-toolbar__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.market-map-toolbar__heading > div {
  display: grid;
  gap: 3px;
}

.market-map-toolbar__heading strong {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.15;
}

.market-map-toolbar__heading span {
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 600;
}

.market-map-filters {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 9px;
}

.market-map-select {
  min-width: 145px;
}

.market-map-options {
  display: flex;
  min-height: 54px;
  padding: 8px 12px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.market-metric-control,
.market-portfolio-select {
  display: flex;
  align-items: center;
  gap: 9px;
}

.market-metric-control > span,
.market-portfolio-select > span {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
}

.market-metric-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 7px;
  background: var(--canvas);
}

.market-metric-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 800;
}

.market-metric-switch button.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--blue-700);
}

.market-portfolio-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.market-portfolio-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue-600);
}

.market-portfolio-select .filter-select {
  min-width: 190px;
}

.market-portfolio-hint {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-size: 10px;
}

.market-portfolio-hint i,
.market-portfolio-legend {
  width: 11px !important;
  height: 11px !important;
  border: 2px solid var(--gold) !important;
  border-radius: 50%;
  background: transparent !important;
}

.market-map-panel {
  overflow: hidden;
}

.market-map-heading {
  min-height: 68px;
  padding-right: 20px;
  padding-left: 20px;
}

.market-map-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
}

.market-chart-wrap {
  position: relative;
  min-width: 0;
  padding: 6px 18px 18px;
}

.market-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 390px;
  overflow: visible;
}

.market-grid-line {
  stroke: #e9edf3;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.market-axis-line {
  stroke: #9da9ba;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.market-axis-tick {
  fill: #758196;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.market-axis-title {
  fill: var(--ink-700);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.market-chart text {
  stroke: none;
}

.market-point {
  cursor: pointer;
  outline: none;
}

.market-point .market-mark {
  fill: var(--market-point-color, var(--map-series-8));
  stroke: var(--surface);
  stroke-width: 2.5;
  opacity: 0.88;
  vector-effect: non-scaling-stroke;
  transition: opacity 150ms ease, stroke-width 150ms ease;
}

.market-point:hover .market-mark,
.market-point:focus .market-mark {
  stroke: var(--navy-900);
  stroke-width: 3;
  opacity: 1;
}

.market-point.is-selected .market-mark {
  stroke: var(--navy-900);
  stroke-width: 4;
  opacity: 1;
}

.market-point-label {
  pointer-events: none;
}

.market-point-label div {
  overflow: hidden;
  padding: 1px 4px;
  border: 1px solid rgba(157, 169, 186, 0.45);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 1px 4px rgba(10, 24, 53, 0.07);
  color: var(--ink-700);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-portfolio-ring {
  fill: rgba(203, 164, 97, 0.08);
  stroke: var(--gold);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.map-series-0 .market-mark,
.market-legend .map-series-0 { fill: var(--map-series-1); background: var(--map-series-1); }
.map-series-1 .market-mark,
.market-legend .map-series-1 { fill: var(--map-series-2); background: var(--map-series-2); }
.map-series-2 .market-mark,
.market-legend .map-series-2 { fill: var(--map-series-3); background: var(--map-series-3); }
.map-series-3 .market-mark,
.market-legend .map-series-3 { fill: var(--map-series-4); background: var(--map-series-4); }
.map-series-4 .market-mark,
.market-legend .map-series-4 { fill: var(--map-series-5); background: var(--map-series-5); }
.map-series-5 .market-mark,
.market-legend .map-series-5 { fill: var(--map-series-6); background: var(--map-series-6); }
.map-series-6 .market-mark,
.market-legend .map-series-6 { fill: var(--map-series-7); background: var(--map-series-7); }
.map-series-7 .market-mark,
.market-legend .map-series-7 { fill: var(--map-series-8); background: var(--map-series-8); }

.market-legend {
  display: flex;
  padding: 3px 20px 0 56px;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--ink-700);
  font-size: 10px;
}

.market-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-legend i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.market-legend small {
  color: var(--ink-400);
  font-size: 9px;
}

.market-shape-legend {
  display: flex;
  padding: 5px 20px 1px 56px;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-700);
  font-size: 10px;
}

.market-shape-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.market-shape-legend svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: var(--ink-500);
  stroke: var(--surface);
  stroke-width: 1.5;
}

.market-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  width: max-content;
  max-width: 250px;
  padding: 10px 12px;
  transform: translate(-50%, -100%);
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--navy-900);
  box-shadow: 0 12px 28px rgba(7, 17, 38, 0.22);
  color: #fff;
  font-size: 10px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.market-tooltip.is-visible {
  opacity: 1;
}

.market-tooltip strong,
.market-tooltip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-tooltip span {
  color: #aebbd0;
  font-size: 9px;
}

.market-selection {
  display: grid;
  min-height: 78px;
  padding: 13px 16px;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(76px, 0.55fr)) auto;
  align-items: center;
  gap: 14px;
}

.market-selection__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.market-selection__identity > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.market-selection__identity strong,
.market-selection__identity span,
.market-selection__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-selection__identity strong {
  color: var(--ink-950);
  font-size: 12px;
}

.market-selection__identity small,
.market-selection__identity span {
  color: var(--ink-400);
  font-size: 9px;
}

.market-selection__metric {
  display: grid;
  gap: 6px;
  border-left: 1px solid var(--line-soft);
  padding-left: 14px;
}

.market-selection__metric > span:first-child {
  color: var(--ink-400);
  font-size: 9px;
}

.market-selection__metric > strong {
  color: var(--ink-950);
  font-size: 12px;
}

.market-map-empty {
  min-height: 430px;
}

/* KBD comparison */

.kbd-view {
  gap: 14px;
}

.kbd-loading {
  display: flex;
  min-height: 180px;
  padding: 28px;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.kbd-loading h2,
.kbd-loading p {
  margin: 0;
}

.kbd-loading h2 {
  font-family: "PT Serif", Georgia, serif;
  font-size: 20px;
}

.kbd-loading p {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 12px;
}

.kbd-controls {
  display: grid;
  min-height: 92px;
  padding: 15px 18px;
  grid-template-columns: minmax(230px, 1fr) minmax(190px, 0.6fr) minmax(190px, 0.6fr) auto;
  align-items: center;
  gap: 18px;
}

.kbd-controls__intro {
  display: grid;
  gap: 3px;
}

.kbd-controls__intro > span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kbd-controls__intro strong {
  color: var(--ink-950);
  font-family: "PT Serif", Georgia, serif;
  font-size: 18px;
}

.kbd-controls__intro small {
  max-width: 390px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.45;
}

.kbd-date-field {
  display: grid;
  gap: 6px;
}

.kbd-date-field > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 800;
}

.kbd-date-field i,
.kbd-legend i {
  width: 19px;
  height: 3px;
  flex: 0 0 19px;
  border-radius: 2px;
}

.kbd-date-field--a i,
.kbd-legend .kbd-series-1 {
  background: var(--blue-600);
}

.kbd-date-field--b i,
.kbd-legend .kbd-series-2 {
  background: var(--green);
}

.kbd-date-field .filter-select {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.kbd-date-input {
  padding-right: 12px;
  cursor: text;
  font-family: inherit;
}

.kbd-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

.kbd-data-status {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.kbd-data-status > div {
  display: grid;
  gap: 2px;
}

.kbd-data-status strong {
  color: var(--ink-800);
  font-size: 11px;
}

.kbd-data-status small {
  color: var(--ink-400);
  font-size: 9px;
}

.kbd-chart-panel {
  overflow: hidden;
}

.kbd-chart-heading {
  min-height: 68px;
  padding-right: 20px;
  padding-left: 20px;
}

.kbd-chart-wrap {
  position: relative;
  min-width: 0;
  padding: 4px 18px 0;
}

.kbd-legend {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 32px;
  display: flex;
  padding: 7px 9px;
  gap: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 700;
}

.kbd-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kbd-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 390px;
  overflow: visible;
}

.kbd-grid-line {
  stroke: #e9edf3;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kbd-axis-line {
  stroke: #9da9ba;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.kbd-axis-tick,
.kbd-axis-title {
  stroke: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.kbd-axis-tick {
  fill: #758196;
  font-size: 12px;
  font-weight: 600;
}

.kbd-axis-title {
  fill: var(--ink-700);
  font-size: 13px;
  font-weight: 800;
}

.kbd-curve {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kbd-curve.kbd-series-1,
.kbd-anchor.kbd-series-1 {
  stroke: var(--blue-600);
}

.kbd-curve.kbd-series-2,
.kbd-anchor.kbd-series-2 {
  stroke: var(--green);
}

.kbd-anchor {
  fill: var(--surface);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.kbd-source {
  margin: -3px 26px 17px 72px;
  color: var(--ink-400);
  font-size: 9px;
  line-height: 1.45;
}

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

.kbd-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.kbd-table th,
.kbd-table td {
  height: 44px;
  padding: 0 18px;
  border-top: 1px solid var(--line-soft);
  text-align: right;
  font-size: 11px;
}

.kbd-table th {
  height: 38px;
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kbd-table th:first-child,
.kbd-table td:first-child {
  text-align: left;
}

.kbd-delta--up {
  color: var(--red);
  font-weight: 800;
}

.kbd-delta--down {
  color: var(--green);
  font-weight: 800;
}

/* Desktop legibility */

.sidebar-label { font-size: 9px; }
.nav-item { font-size: 13px; }
.nav-count { font-size: 10px; }
.pro-badge { font-size: 8px; }
.data-status strong { font-size: 10px; }
.data-status small { font-size: 9px; }
.profile-card__copy strong { font-size: 11px; }
.profile-card__copy small { font-size: 9px; }
.topbar__title p { font-size: 10px; }
.topbar__title h1 { font-size: 24px; }
.global-search input { font-size: 12px; }
.global-search kbd { font-size: 9px; }
.loading-state p { font-size: 13px; }
.stat-card__label { font-size: 10px; }
.stat-card strong { font-size: 27px; }
.stat-card strong small { font-size: 11px; }
.panel-heading h2 { font-size: 19px; }
.panel-heading p { font-size: 10px; }
.filter-select { font-size: 11px; }
.filter-reset { font-size: 10px; }
.data-table th { font-size: 9px; }
.data-table td { font-size: 11px; }
.instrument-logo { font-size: 10px; }
.instrument-cell strong { font-size: 11px; }
.instrument-cell small { font-size: 9px; }
.instrument-kind,
.rating-badge { font-size: 9px; }
.coupon-type-badge { height: 20px; font-size: 9px; }
.coupon-cell__value { font-size: 11px; }
.quantity-input { font-size: 11px; }
.table-footer,
.pagination button { font-size: 10px; }
.detail-hero__issuer,
.detail-hero__isin { font-size: 10px; }
.detail-hero h2 { font-size: 21px; }
.detail-tag { font-size: 9px; }
.detail-metric span { font-size: 9px; }
.detail-metric strong { font-size: 12px; }
.detail-empty h3,
.empty-state h3 { font-size: 18px; }
.detail-empty p,
.empty-state p { font-size: 10px; }
.section-heading h2 { font-size: 23px; }
.section-heading p { font-size: 11px; }
.portfolio-tab { font-size: 10px; }
.rating-row,
.distribution-item { font-size: 10px; }
.rating-row__issuer strong { font-size: 11px; }
.rating-row__issuer small { font-size: 9px; }
.portfolio-value span,
.portfolio-metric span { font-size: 10px; }
.portfolio-value small { font-size: 10px; }
.notice-card strong { font-size: 12px; }
.notice-card small { font-size: 10px; }
.button { font-size: 13px; }
.button--small { font-size: 11px; }

/* 2026 visual system: crisp data tables, bright market accents */

:root {
  --navy-950: #03102f;
  --navy-900: #07163d;
  --navy-850: #0b1d49;
  --navy-800: #10285d;
  --blue-700: #1158e7;
  --blue-600: #1769ff;
  --blue-500: #2898f4;
  --blue-100: #e7f1ff;
  --blue-50: #f1f6ff;
  --ink-950: #071333;
  --ink-800: #1f2c49;
  --ink-700: #3c4a67;
  --ink-500: #6f7f9e;
  --ink-400: #98a6bd;
  --line: #dce5f2;
  --line-soft: #e9eff7;
  --canvas: #f3f7fd;
  --green: #087d43;
  --green-soft: #e8f8ef;
  --sidebar-width: 264px;
  --topbar-height: 92px;
  --shadow-xs: 0 4px 14px rgba(21, 54, 110, 0.055);
  --shadow-sm: 0 14px 38px rgba(24, 61, 123, 0.09);
  --shadow-lg: 0 28px 70px rgba(4, 20, 58, 0.2);
}

body {
  background:
    radial-gradient(circle at 72% 0%, rgba(70, 156, 255, 0.08), transparent 32%),
    var(--canvas);
}

.brand__logo-image {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(39, 83, 242, 0.24));
}

.brand--sidebar {
  gap: 12px;
}

.brand--sidebar .brand__mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.brand--sidebar .brand__name {
  gap: 0;
}

.brand--sidebar .brand__name strong {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.65px;
}

.brand--sidebar .brand__name small {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.info-tip--wide .info-tip__bubble {
  width: min(430px, 72vw);
}

.sidebar {
  padding: 24px 18px 18px;
  background:
    radial-gradient(circle at 5% 3%, rgba(37, 102, 255, 0.31), transparent 28%),
    radial-gradient(circle at 100% 46%, rgba(94, 29, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #07163e 0%, #06122f 100%);
  box-shadow: 12px 0 34px rgba(2, 16, 48, 0.13);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.app-shell {
  transition: grid-template-columns 220ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  transform: translateX(-105%);
  box-shadow: none;
}

.menu-button {
  display: grid;
}

.sidebar__top {
  min-height: 58px;
  padding: 0 8px;
}

.sidebar-nav {
  margin-top: 38px;
  gap: 7px;
}

.sidebar-label {
  margin: 0 12px 10px;
  color: #7184aa;
  font-size: 9px;
  letter-spacing: 1.45px;
}

.sidebar-label--spaced {
  margin-top: 25px;
}

.nav-item {
  min-height: 49px;
  padding: 0 13px;
  border-radius: 13px;
  color: #91a2c4;
  font-size: 13px;
  font-weight: 650;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #eff5ff;
}

.nav-item.is-active {
  background: linear-gradient(100deg, rgba(19, 117, 255, 0.86), rgba(99, 30, 255, 0.76));
  box-shadow: 0 13px 30px rgba(30, 72, 212, 0.25), inset 3px 0 0 #35c8ff;
}

.nav-item__icon svg {
  width: 19px;
  height: 19px;
}

.nav-count,
.nav-item.is-active .nav-count {
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #d7e5ff;
}

.data-status {
  margin-inline: 7px;
  padding: 14px 10px;
}

.data-status strong,
.profile-card__copy strong {
  color: #dce7fb;
}

.profile-card {
  min-height: 64px;
  padding: 9px 11px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  border-color: rgba(144, 173, 225, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1d3978, #253c83);
}

.topbar {
  min-height: var(--topbar-height);
  padding: 17px 32px;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 25px rgba(23, 56, 111, 0.065);
}

.topbar__title p {
  margin-bottom: 5px;
  color: var(--blue-600);
  font-size: 9px;
  letter-spacing: 1.25px;
}

.topbar__title h1 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.85px;
}

.global-search {
  width: clamp(300px, 34vw, 520px);
  height: 48px;
  padding: 0 14px;
  border-color: #dbe5f2;
  border-radius: 14px;
  background: #f8faff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.global-search:focus-within {
  border-color: #5796ff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.1);
}

.global-search input {
  font-size: 13px;
}

.icon-button,
.menu-button {
  width: 48px;
  height: 48px;
  border-color: #dbe5f2;
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
}

.workspace-content {
  padding: 26px 32px 48px;
}

.view-stack {
  gap: 18px;
}

.panel {
  overflow: visible;
  border-color: #dce6f3;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.data-date-banner {
  position: relative;
  min-height: 58px;
  overflow: hidden;
  padding: 0 20px 0 24px;
  border: 1px solid #dce6f4;
  border-radius: 16px;
  background: linear-gradient(100deg, #f6f9ff 0%, #fff 58%, #f6f4ff 100%);
  box-shadow: var(--shadow-xs);
  font-size: 12px;
}

.data-date-banner::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #05baf6, #214cff 58%, #7a18ff);
  content: "";
}

.data-date-banner__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e6f5ff, #ede9ff);
}

.data-date-banner strong {
  font-size: 13px;
}

.data-date-banner small {
  font-size: 10px;
}

.catalog-heading {
  min-height: 0;
  padding: 23px 24px 20px;
  gap: 18px;
}

.panel-heading h2,
.section-heading h2 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.65px;
}

.panel-heading h2 {
  font-size: 25px;
}

.panel-heading p {
  margin-top: 5px;
  font-size: 11px;
}

.toolbar {
  gap: 9px;
}

.filter-select,
.check-filter > summary {
  height: 43px;
  border: 1.5px solid #dce5f2;
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

.filter-select {
  min-width: 132px;
  padding-inline: 13px 32px;
}

.check-filter {
  min-width: 132px;
  font-size: 11px;
}

.check-filter > summary {
  padding: 0 34px 0 13px;
}

.check-filter[open] > summary {
  border-color: #3e82ff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.1);
}

.check-filter__menu {
  top: calc(100% + 9px);
  min-width: 245px;
  padding: 10px;
  border-color: #dce5f2;
  border-radius: 14px;
  box-shadow: 0 24px 58px rgba(7, 26, 69, 0.2);
}

.check-filter__options label {
  min-height: 38px;
  padding-inline: 9px;
  border-radius: 9px;
}

.check-filter__all-option {
  min-height: 38px;
  padding-inline: 9px;
  border-radius: 9px;
}

.check-filter__options input {
  width: 17px;
  height: 17px;
}

.check-filter__all-box {
  width: 17px;
  height: 17px;
}

.check-filter__search input {
  height: 38px;
  border-radius: 9px;
  font-size: 11px;
}

.check-filter__empty {
  font-size: 10px;
}

.check-filter__options small,
.check-filter__all-option small,
.check-filter__menu > button,
.duration-filter__menu label {
  font-size: 10px;
}

.duration-filter__menu input {
  height: 38px;
  border-radius: 9px;
  font-size: 11px;
}

.filter-reset {
  height: 43px;
  padding-inline: 12px;
  font-size: 11px;
}

.catalog-table-wrap {
  overflow-x: auto;
  border-radius: 0 0 18px 18px;
}

.catalog-table-shell {
  position: relative;
}

.catalog-table-header {
  position: sticky;
  z-index: 24;
  top: var(--topbar-height);
  overflow: hidden;
  background: linear-gradient(102deg, #0799f7 0%, #1358ff 56%, #7117ff 100%);
  box-shadow: 0 8px 18px rgba(18, 57, 134, 0.14);
}

.catalog-table-header .data-table {
  will-change: transform;
}

.catalog-table-header .data-table th {
  text-align: center;
}

.data-table {
  min-width: 1066px;
}

.data-table th,
.data-table td {
  padding-inline: 11px;
}

.data-table thead {
  position: static;
  background: linear-gradient(102deg, #0799f7 0%, #1358ff 56%, #7117ff 100%);
}

.data-table th {
  height: 60px;
  border-bottom: 0;
  background: transparent;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.data-table th + th {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.15);
}

.info-tip {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.info-tip__bubble {
  width: 250px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #07183e;
  font-size: 10px;
  box-shadow: var(--shadow-lg);
}

.catalog-table-header .info-tip__bubble {
  top: 50%;
  right: calc(100% + 10px);
  bottom: auto;
  transform: translate(-3px, -50%);
}

.catalog-table-header .info-tip:hover .info-tip__bubble,
.catalog-table-header .info-tip:focus .info-tip__bubble,
.catalog-table-header .info-tip:focus-visible .info-tip__bubble {
  transform: translate(0, -50%);
}

.data-table tbody tr {
  background: #fff;
}

.data-table tbody tr:hover,
.data-table tbody tr.is-selected {
  background: #f2f7ff;
}

.data-table tbody tr.is-selected {
  box-shadow: inset 4px 0 0 #1769ff;
}

.data-table td {
  height: 78px;
  border-bottom-color: #e6edf7;
  color: #344260;
  font-size: 12px;
}

.instrument-cell {
  gap: 8px;
}

.instrument-logo {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8f5ff, #edf0ff);
  color: #335fbb;
  font-size: 11px;
}

.instrument-cell strong {
  font-size: 13px;
  font-weight: 800;
}

.instrument-cell small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 650;
}

.data-table tbody td:nth-child(6),
.data-table tbody td:nth-child(7) {
  color: var(--ink-800);
  font-size: 13.5px;
  font-weight: 750;
}

.data-table tbody td:nth-child(9) {
  color: var(--ink-800);
  font-weight: 650;
}

.coupon-type-badge {
  min-width: 54px;
  height: 22px;
  font-size: 9px;
}

.coupon-cell__value {
  font-size: 12px;
}

.metric-strong {
  font-size: 13px;
}

.cy-value {
  color: #1761ca;
  font-size: 13px;
  font-weight: 800;
}

.offer-date-cell {
  color: var(--ink-800);
  font-size: 11.5px;
  font-weight: 750;
}

.offer-kind-label {
  font-size: 9px;
}

.yield-chip {
  display: inline-block;
  min-width: 66px;
  padding: 9px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e5f7ec, #f1fbf5);
  font-size: 13px;
  text-align: center;
}

.rating-badge,
.offer-badge {
  min-width: 46px;
  height: 27px;
  border-radius: 8px;
  font-size: 10px;
}

.table-footer {
  min-height: 58px;
  padding-inline: 22px;
  border-radius: 0 0 18px 18px;
  font-size: 11px;
}

.pagination button {
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 11px;
}

.pagination button.is-active,
.button--primary {
  border-color: transparent;
  background: linear-gradient(105deg, #0b96f5 0%, #1457ff 55%, #681cff 100%);
  box-shadow: 0 12px 24px rgba(31, 77, 232, 0.22);
}

.detail-backdrop {
  position: fixed;
  z-index: 55;
  inset: 0;
  border: 0;
  cursor: default;
  background: rgba(4, 17, 48, 0.2);
  backdrop-filter: blur(2px);
}

.detail-panel--drawer {
  top: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  width: min(720px, calc(100vw - 36px));
  max-height: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(3, 19, 54, 0.28);
}

.detail-hero {
  padding: 24px 24px 19px;
  background: linear-gradient(120deg, #f8fbff, #f8f5ff);
}

.detail-hero h2 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.detail-hero__issuer,
.detail-hero__isin,
.detail-tag,
.detail-metric span {
  font-size: 10px;
}

.detail-metric strong {
  font-size: 13px;
}

.detail-metrics,
.detail-content {
  padding-inline: 24px;
}

.detail-hero,
.detail-metrics,
.detail-actions {
  flex: 0 0 auto;
}

.detail-content {
  flex: 1 1 0;
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 24px;
  grid-auto-rows: max-content;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.detail-content::-webkit-scrollbar {
  width: 10px;
}

.detail-content::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 999px;
  background: #c5d2e5;
}

.detail-section {
  border-radius: 12px;
}

.detail-section h3 {
  padding: 12px 14px;
  font-size: 13px;
}

.detail-section dl > div {
  min-height: 60px;
  padding: 11px 14px;
}

.detail-actions {
  position: static;
  padding: 16px 24px 20px;
  background: rgba(250, 252, 255, 0.96);
}

.stat-card,
.notice-card,
.portfolio-tab,
.portfolio-card {
  border-radius: 16px;
}

.has-app-dialog {
  overflow: hidden;
}

.app-dialog {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.app-dialog__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 39, 0.56);
  backdrop-filter: blur(7px);
}

.app-dialog__card {
  position: relative;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(203, 218, 241, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(4, 20, 56, 0.3);
}

.app-dialog__header {
  display: flex;
  padding: 24px 24px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e8eef7;
  background: linear-gradient(145deg, #f9fbff, #f1f5ff);
}

.app-dialog__header h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 20px;
  line-height: 1.2;
}

.app-dialog__header p {
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.5;
}

.app-dialog__close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-600);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.app-dialog__fields {
  display: grid;
  padding: 22px 24px;
  gap: 16px;
}

.app-dialog__fields:empty {
  display: none;
}

.app-dialog__field {
  display: grid;
  gap: 7px;
}

.app-dialog__field > span {
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 800;
}

.app-dialog__field input,
.app-dialog__field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #cfdbea;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink-950);
  font: inherit;
  font-size: 16px;
}

.app-dialog__field input:focus,
.app-dialog__field select:focus {
  border-color: #1769ff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12);
}

.app-dialog__field small {
  color: var(--ink-400);
  font-size: 11px;
  line-height: 1.4;
}

.app-dialog__footer {
  display: flex;
  padding: 16px 24px 22px;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #edf1f7;
}

.app-dialog__footer .button {
  min-width: 120px;
  font-size: 13px;
}

.toast {
  border-radius: 12px;
  background: #07183e;
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 12px 16px;
  transform: translateY(20px);
  border-radius: 8px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-size: 9px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

@media (max-width: 1180px) {
  :root { --sidebar-width: 224px; }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar,
  .workspace-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .global-search {
    width: 300px;
  }

  .portfolio-summary {
    grid-template-columns: 1.3fr repeat(3, 0.7fr);
  }

  .market-selection {
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(68px, 0.5fr));
  }

  .market-selection > .button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 980px) {
  .auth-screen {
    grid-template-columns: minmax(370px, 0.9fr) minmax(390px, 1.1fr);
  }

  .auth-story {
    padding: 35px;
  }

  .auth-features {
    margin-top: 35px;
  }

  .auth-panel {
    padding: 35px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 252px;
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    color: #a8b5ca;
    font-size: 20px;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block !important;
    background: rgba(4, 12, 28, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    grid-column: 1;
  }

  .menu-button {
    display: grid;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

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

  .portfolio-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-value {
    grid-column: 1 / -1;
  }

  .kbd-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kbd-controls__intro,
  .kbd-data-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-screen {
    display: block;
  }

  .detail-panel--drawer {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: none;
  }

  .auth-story {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 30px 22px;
  }

  .auth-card__mobile-brand {
    display: flex;
    margin-bottom: 55px;
    align-items: center;
    gap: 10px;
    color: var(--navy-900);
  }

  .auth-card__mobile-brand .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .auth-card__mobile-brand strong {
    font-family: "PT Serif", Georgia, serif;
    font-size: 18px;
  }

  .topbar {
    min-height: 70px;
    padding: 11px 15px;
  }

  .catalog-table-header {
    top: 70px;
  }

  .topbar__title h1 {
    font-size: 17px;
  }

  .topbar__title p,
  .global-search kbd,
  .icon-button {
    display: none;
  }

  .global-search {
    width: 42px;
    height: 42px;
    cursor: pointer;
    overflow: hidden;
  }

  .global-search:focus-within {
    position: absolute;
    right: 15px;
    left: 15px;
    z-index: 5;
    width: auto;
  }

  .workspace-content {
    padding: 15px 15px 32px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    min-height: 78px;
    padding: 14px;
  }

  .catalog-layout,
  .ratings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading {
    padding: 14px;
  }

  .toolbar {
    width: 100%;
  }

  .filter-select {
    min-width: 0;
    flex: 1;
  }

  .data-table {
    min-width: 1066px;
  }

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

  .portfolio-value {
    grid-column: auto;
  }

  .portfolio-metric {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .rating-row {
    grid-template-columns: minmax(0, 1fr) 52px 58px;
  }

  .rating-row > :last-child {
    display: none;
  }

  .pro-hero {
    padding: 30px 23px;
  }

  .pro-hero h2 {
    font-size: 28px;
  }

  .pro-feature-grid {
    grid-template-columns: 1fr;
  }

  .notice-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-map-toolbar {
    align-items: stretch;
  }

  .market-map-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .market-map-filters > .check-filter,
  .market-map-select {
    flex: 1 1 180px;
    min-width: 0;
  }

  .market-map-options {
    align-items: stretch;
  }

  .market-portfolio-hint {
    width: 100%;
    margin-left: 0;
  }

  .market-chart-wrap {
    padding-right: 8px;
    padding-left: 8px;
  }

  .market-chart {
    min-height: 290px;
  }

  .market-legend {
    padding-right: 10px;
    padding-left: 44px;
  }

  .market-shape-legend {
    padding-right: 10px;
    padding-left: 44px;
  }

  .market-selection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-selection__identity,
  .market-selection > .button {
    grid-column: 1 / -1;
  }

  .market-selection > .button {
    width: 100%;
  }

  .kbd-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kbd-controls__intro,
  .kbd-data-status {
    grid-column: 1 / -1;
  }

  .kbd-chart-wrap {
    padding-right: 6px;
    padding-left: 6px;
  }

  .kbd-chart {
    min-height: 300px;
  }

  .kbd-legend {
    position: static;
    margin: 4px 12px -8px 58px;
    flex-wrap: wrap;
  }

  .kbd-source {
    margin-right: 15px;
    margin-left: 46px;
  }
}

@media (max-width: 440px) {
  .auth-card h2 {
    font-size: 33px;
  }

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

  .sidebar {
    width: min(88vw, 300px);
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  .market-map-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .market-map-presets {
    margin-right: -2px;
    margin-left: -2px;
  }

  .market-map-preset {
    min-height: 40px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .market-map-toolbar__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-map-toolbar__heading .filter-reset,
  .market-map-filters > .check-filter,
  .market-map-filters > .check-filter > summary,
  .market-map-select {
    width: 100%;
  }

  .market-map-options,
  .market-metric-control,
  .market-portfolio-select {
    align-items: stretch;
    flex-direction: column;
  }

  .market-metric-switch,
  .market-metric-switch button,
  .market-portfolio-select .filter-select {
    width: 100%;
  }

  .market-metric-switch button {
    flex: 1;
  }

  .market-chart {
    min-height: 250px;
  }

  .market-selection {
    grid-template-columns: 1fr;
  }

  .market-selection__identity,
  .market-selection > .button {
    grid-column: auto;
  }

  .kbd-controls {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .kbd-controls__intro,
  .kbd-data-status {
    grid-column: auto;
  }

  .kbd-chart {
    min-height: 250px;
  }

  .kbd-legend {
    margin-left: 44px;
  }
}

.data-table {
  min-width: 1110px;
}

.data-table--portfolio {
  min-width: 1410px;
}

.data-table--portfolio th {
  font-size: 12px;
}

.data-table--portfolio .instrument-cell strong {
  font-size: 13px;
}

.data-table--portfolio .instrument-cell small {
  font-size: 10px;
}

.detail-actions {
  grid-template-columns: 1fr auto auto;
}

.calculation-type-cell {
  display: inline-block;
  max-width: 100px;
  color: var(--ink-800);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
}

.data-table--portfolio .quantity-input,
.position-value,
.position-share {
  color: var(--ink-900);
  font-size: 13px;
  white-space: nowrap;
}

.button--danger {
  border: 1px solid #f1c8ce;
  background: #fff6f7;
  color: #b42336;
}

.button--danger:hover {
  border-color: #e79aa5;
  background: #ffeaed;
}

.portfolio-actions,
.credit-limit-summary,
.primary-filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-tab {
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.portfolio-pane-switch {
  display: grid;
  width: min(100%, 620px);
  padding: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid #dce6f3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 40, 85, 0.06);
}

.portfolio-pane-switch button {
  display: grid;
  min-height: 70px;
  padding: 13px 20px;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-600);
  cursor: pointer;
  text-align: left;
}

.portfolio-pane-switch button span {
  font-size: 16px;
  font-weight: 850;
}

.portfolio-pane-switch button small {
  color: var(--ink-400);
  font-size: 11px;
}

.portfolio-pane-switch button.is-active {
  background: linear-gradient(105deg, #0b96f5 0%, #1457ff 58%, #681cff 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(38, 80, 226, 0.22);
}

.portfolio-pane-switch button.is-active small {
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-sort-select {
  width: 210px;
  min-width: 210px;
}

.portfolio-pdf-button {
  min-width: 54px;
  border-color: #c9d8ef;
  background: linear-gradient(145deg, #f7fbff, #eef3ff);
  color: #225ec6;
  font-weight: 850;
  letter-spacing: .04em;
}

.button-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 700ms linear infinite;
}

.primary-loading-banner {
  display: flex;
  max-width: 520px;
  margin-top: 14px;
  padding: 12px 14px;
  align-items: center;
  gap: 11px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}

.primary-loading-banner > span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #1769ff;
  box-shadow: 0 0 0 6px rgba(23, 105, 255, .12);
  animation: pulse 1.1s ease-in-out infinite;
}

.primary-loading-banner strong,
.primary-loading-banner small {
  display: block;
}

.primary-loading-banner strong {
  color: var(--ink-900);
  font-size: 11px;
}

.primary-loading-banner small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

@keyframes pulse {
  50% { opacity: .45; transform: scale(.82); }
}

.portfolio-overview {
  padding-bottom: 14px;
}

.portfolio-overview > .panel-heading h2 {
  font-size: 24px;
}

.portfolio-overview > .panel-heading p {
  font-size: 13px;
}

.portfolio-overview-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 10px;
  padding: 0 20px;
}

.portfolio-metric-groups {
  display: grid;
  padding: 0 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portfolio-metric-group {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #e0e8f3;
  border-radius: 14px;
  background: #f9fbfe;
}

.portfolio-metric-group::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #4388ef;
  content: "";
}

.portfolio-metric-group--currency::before { background: #7556e8; }
.portfolio-metric-group--coupon::before { background: #16a879; }
.portfolio-metric-group--risk::before { background: #eea833; }

.portfolio-metric-group > header {
  margin-bottom: 9px;
}

.portfolio-metric-group h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.2;
}

.portfolio-metric-group header p {
  margin: 3px 0 0;
  color: var(--ink-400);
  font-size: 11px;
  line-height: 1.25;
}

.portfolio-metric-group__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.portfolio-overview-card {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e3ebf6;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f7faff);
}

.portfolio-metric-group--structure .portfolio-overview-card:first-child {
  background: linear-gradient(135deg, #e8f5ff, #f1edff);
  border-color: #cfe0ff;
}

.portfolio-overview-card span,
.portfolio-overview-card small {
  display: block;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
}

.portfolio-overview-card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-overview-card small {
  margin-top: 3px;
  color: #1761ca;
  font-size: 11px;
}

.portfolio-overview-card--filter {
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portfolio-overview-card--filter:hover {
  border-color: #9ebcf4;
  box-shadow: 0 9px 22px rgba(27, 79, 169, 0.11);
  transform: translateY(-1px);
}

.portfolio-overview-card--filter:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.25);
  outline-offset: 2px;
}

.portfolio-overview-card--filter.is-active {
  border-color: #1769ff;
  background: linear-gradient(135deg, #e5f2ff, #ede9ff);
  box-shadow: 0 10px 26px rgba(23, 105, 255, 0.18);
}

.portfolio-fx-panel {
  overflow: hidden;
}

.portfolio-fx-panel__date {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #225ec6;
  font-size: 11px;
  font-weight: 800;
}

.portfolio-fx-grid {
  display: grid;
  padding: 0 20px 20px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.portfolio-fx-grid article {
  padding: 14px 15px;
  border: 1px solid #e0e8f3;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f6f9ff);
}

.portfolio-fx-grid span,
.portfolio-fx-grid strong {
  display: block;
}

.portfolio-fx-grid span {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 750;
}

.portfolio-fx-grid strong {
  margin-top: 6px;
  color: var(--ink-900);
  font-size: 18px;
}

.portfolio-fx-grid small {
  display: block;
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 10px;
  white-space: nowrap;
}

.favorite-lists-panel {
  overflow: hidden;
}

.favorite-lists-panel__header {
  display: flex;
  padding: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e8eef6;
}

.favorite-lists-panel__header h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: 20px;
}

.favorite-lists-panel__header p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.45;
}

.favorite-lists-actions,
.empty-state__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.favorite-list-tabs {
  display: flex;
  padding: 14px 20px 18px;
  gap: 9px;
  overflow-x: auto;
}

.favorite-list-tab {
  display: inline-flex;
  min-height: 44px;
  padding: 0 15px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce6f3;
  border-radius: 11px;
  background: #f8faff;
  color: var(--ink-700);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.favorite-list-tab small {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #e7eef8;
  color: var(--ink-600);
  font-size: 10px;
}

.favorite-list-tab.is-active {
  border-color: transparent;
  background: linear-gradient(105deg, #0b96f5, #1457ff 58%, #681cff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(38, 80, 226, 0.2);
}

.favorite-list-tab.is-active small {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

.portfolio-warning {
  margin: 14px 20px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7dd;
  color: #8b6100;
  font-size: 11px;
}

.portfolio-warning--error {
  background: #fff0f2;
  color: #a82135;
}

.credit-limits-panel {
  overflow: hidden;
}

.credit-limit-summary button {
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f1f5fa;
  color: var(--ink-600);
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
}

.credit-limit-summary button:hover,
.credit-limit-summary button:focus-visible {
  border-color: #90b8ff;
  outline: 0;
}

.credit-limit-summary button.is-active {
  border-color: #1769ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

.credit-limit-summary button.is-danger { background: #ffe8ec; color: #b42336; }
.credit-limit-summary button.is-warning { background: #fff5d7; color: #8b6100; }

.check-filter__actions {
  display: grid;
  margin-top: 6px;
  padding-top: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  border-top: 1px solid var(--line-soft);
}

.check-filter__actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.check-filter__actions button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  background: #eef4ff;
  color: var(--blue-600);
  font: 700 9px/1 "Manrope", sans-serif;
}

.check-filter__actions button:hover {
  background: #e1ebff;
}

.check-filter__actions button:disabled {
  cursor: default;
  background: #f5f7fa;
  color: var(--ink-300);
}

.instrument-name-line {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
}

.instrument-comment-tip {
  position: relative;
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid #b9cdf2;
  border-radius: 50%;
  background: #eef4ff;
  color: #225ec6;
  font-size: 10px;
  font-weight: 850;
  cursor: help;
}

.instrument-comment-tip > span {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, 42vw);
  padding: 10px 12px;
  border: 1px solid #d8e3f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(9, 31, 72, 0.18);
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.instrument-comment-tip:hover > span,
.instrument-comment-tip:focus > span,
.instrument-comment-tip:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.catalog-rating-cell {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 5px;
}

.catalog-rating-cell small {
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.catalog-detail-page {
  width: 100%;
}

.detail-panel--page {
  width: 100%;
  overflow: hidden;
  outline: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.detail-page-back {
  display: inline-flex;
  min-height: 38px;
  margin: 0;
  padding: 0 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-700);
  cursor: pointer;
  font: 800 12px/1 "Manrope", sans-serif;
}

.detail-page-toolbar {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.detail-page-actions .button:first-child {
  min-width: 210px;
}

.detail-page-actions .button:last-child {
  width: 42px;
  padding-inline: 0;
}

.detail-page-back svg {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-page-back:hover,
.detail-page-back:focus-visible {
  border-color: var(--blue-500);
  outline: 0;
  background: var(--blue-50);
}

.detail-panel--page .detail-hero {
  padding: 24px 28px 20px;
}

.detail-panel--page .detail-hero h2 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 30px;
}

.detail-panel--page .detail-metrics {
  padding: 8px 28px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-panel--page .detail-metric {
  padding: 16px 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 0;
}

.detail-panel--page .detail-metric:first-child {
  padding-left: 0;
}

.detail-panel--page .detail-metric:last-child {
  border-right: 0;
}

.detail-panel--page .detail-metric span {
  font-size: 11px;
}

.detail-panel--page .detail-metric strong {
  font-size: 16px;
}

.detail-panel--page .detail-content {
  display: grid;
  padding: 20px 28px 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  overflow: visible;
}

.detail-panel--page .detail-actions {
  position: static;
  padding: 18px 28px 22px;
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

@media (max-width: 1320px) {
  .portfolio-fx-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-panel--page .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel--page .detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portfolio-fx-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel--page .detail-content,
  .detail-panel--page .detail-metrics {
    grid-template-columns: 1fr;
  }

  .detail-panel--page .detail-metric {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .detail-panel--page .detail-content {
    padding-inline: 16px;
  }

  .detail-panel--page .detail-hero,
  .detail-panel--page .detail-actions {
    padding-inline: 16px;
  }

  .detail-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-page-actions {
    justify-content: stretch;
  }

  .detail-page-actions .button:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }
}

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

.credit-limit-table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
}

.credit-limit-table th,
.credit-limit-table td {
  padding: 13px 16px;
  border-top: 1px solid #e6edf7;
  color: var(--ink-700);
  font-size: 11px;
  text-align: left;
}

.credit-limit-table th {
  color: var(--ink-500);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.credit-limit-table td:first-child strong {
  color: var(--ink-900);
  font-size: 12px;
}

.issuer-limit-input {
  width: 84px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d7e1ef;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
}

.credit-utilization {
  min-width: 105px;
}

.credit-utilization strong {
  display: block;
  margin-bottom: 5px;
}

.credit-utilization span {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef6;
}

.credit-utilization i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1dca8a;
}

.credit-limit-row--warning .credit-utilization i { background: #f3b726; }
.credit-limit-row--danger .credit-utilization i { background: #ef5265; }

.credit-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.credit-status--ok { background: #e8f8f1; color: #16845f; }
.credit-status--warning { background: #fff5d7; color: #956600; }
.credit-status--danger { background: #ffe8ec; color: #b42336; }

.analytics-hero {
  padding: 28px;
  background: linear-gradient(135deg, #f7fbff, #f5f1ff);
}

.analytics-hero__eyebrow {
  color: #1769ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.analytics-hero h2 {
  margin: 7px 0 6px;
  color: var(--ink-900);
  font-size: 25px;
}

.analytics-hero > p {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.65;
}

.analytics-status {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eaf3ff;
  color: #1761ca;
  font-size: 11px;
}

.analytics-status.is-error { background: #fff0f2; color: #a82135; }
.analytics-status.is-warning { background: #fff7dd; color: #8b6100; }

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}

.analytics-summary--primary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.primary-sort-select {
  width: auto;
  min-width: 220px;
}

.analytics-summary > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #e6edf7;
}

.analytics-summary > div:last-child { border-right: 0; }
.analytics-summary span { display: block; color: var(--ink-500); font-size: 10px; }
.analytics-summary strong { display: block; margin-top: 7px; overflow: hidden; color: var(--ink-900); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.rps-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rps-form input {
  width: min(320px, 100%);
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d8e2f0;
  border-radius: 11px;
  background: #fff;
  color: var(--ink-900);
  font: 750 13px "Manrope", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.analytics-panel { overflow: hidden; }

.rps-board-list,
.rps-chart,
.rps-trades {
  padding: 0 20px 20px;
}

.rps-board-row,
.rps-chart-row,
.rps-trades > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 150px 110px;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border-top: 1px solid #edf1f7;
  color: var(--ink-700);
  font-size: 11px;
}

.rps-board-row:first-child,
.rps-trades > div:first-child { border-top: 0; }
.rps-board-row span { display: flex; align-items: center; gap: 8px; }
.rps-board-row i { width: 9px; height: 9px; border-radius: 50%; }
.rps-board-row em,
.rps-chart-row em,
.rps-trades em { font-style: normal; text-align: right; }

.rps-chart-row { grid-template-columns: 90px minmax(220px, 1fr) 130px; }
.rps-chart-bar { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: #edf1f7; }
.rps-chart-bar span { min-width: 2px; height: 100%; }

.rps-trades__head { color: var(--ink-500) !important; font-size: 9px !important; font-weight: 800; text-transform: uppercase; }
.rps-trades__head em { font-style: normal; }

.placement-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}

.placement-title h2 { margin: 0; color: var(--ink-900); }
.placement-title p { margin: 5px 0 0; color: var(--ink-500); font-size: 10px; }
.placement-title > strong { color: #16845f; font-size: 22px; }
.placement-progress { padding: 0 22px 18px; }
.placement-progress > div { height: 12px; overflow: hidden; border-radius: 999px; background: #e7edf6; }
.placement-progress > div span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0799f7, #681cff); }
.placement-progress p { margin: 8px 0 0; color: var(--ink-700); font-size: 11px; }
.placement-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e6edf7; border-bottom: 1px solid #e6edf7; }
.placement-metrics > div { padding: 16px 22px; border-right: 1px solid #e6edf7; }
.placement-metrics > div:last-child { border-right: 0; }
.placement-metrics span { display: block; color: var(--ink-500); font-size: 10px; }
.placement-metrics strong { display: block; margin-top: 6px; color: var(--ink-900); font-size: 13px; }
.placement-subsection { padding: 20px 22px; }
.placement-subsection h3 { margin: 0 0 12px; color: var(--ink-900); font-size: 14px; }
.placement-buckets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.placement-buckets > div { padding: 13px; border: 1px solid #e3ebf6; border-radius: 11px; }
.placement-buckets span,
.placement-buckets em { display: block; color: var(--ink-500); font-size: 9px; font-style: normal; }
.placement-buckets strong { display: block; margin: 5px 0; color: var(--ink-900); }

.primary-filter-panel {
  justify-content: flex-end;
  padding: 2px 4px;
}

.primary-filter-panel span { color: var(--ink-500); font-size: 11px; }
.primary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.primary-card { padding: 20px; border: 1px solid #dfe7f2; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.primary-card.is-done { border-color: #bfe7d7; }
.primary-card.is-error { border-color: #f2c5cc; }
.primary-card header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.primary-card h3 { margin: 0; color: var(--ink-900); font-size: 15px; }
.primary-card header p { margin: 5px 0 0; color: var(--ink-500); font-size: 9px; }
.primary-card header > strong { color: #16845f; font-size: 18px; }
.primary-progress { height: 8px; margin: 15px 0; overflow: hidden; border-radius: 999px; background: #e9eef6; }
.primary-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #11bc83, #1769ff); }
.primary-card__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-500); font-size: 9px; }
.primary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.primary-metrics div { padding: 10px; border-radius: 10px; background: #f6f8fc; }
.primary-metrics span { display: block; color: var(--ink-500); font-size: 8px; }
.primary-metrics strong { display: block; margin-top: 4px; overflow: hidden; color: var(--ink-900); font-size: 11px; text-overflow: ellipsis; }

.rating-review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rating-review-card { min-height: 0; padding: 10px 12px; }
.rating-review-card header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.rating-review-card header > div { min-width: 0; }
.rating-review-card h2 { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink-900); font-size: 14px; line-height: 1.15; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rating-review-card header p { margin: 3px 0 0; color: var(--ink-500); font-size: 9px; line-height: 1.2; }
.rating-review-card header > strong { color: #1761ca; font-size: 11px; white-space: nowrap; }
.rating-review-card > div { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.rating-review-card .rating-pill,
.rating-review-card .rating-badge { min-height: 22px; padding: 0 8px; font-size: 8px; }
.rating-issues-link { padding: 0; border: 0; background: transparent; color: #1761ca; font: inherit; font-weight: 800; cursor: pointer; }
.rating-issues-link:hover { text-decoration: underline; }
.rating-issues-link:focus-visible { border-radius: 3px; outline: 2px solid #4c7dff; outline-offset: 2px; }
.rating-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border-radius: 999px; background: #eef3fa; color: var(--ink-700); font-size: 9px; font-weight: 800; }
.rating-pill--negative { background: #ffe8ec; color: #b42336; }
.rating-pill--positive { background: #e8f8f1; color: #16845f; }
.rating-pill--stable { background: #eef2f7; color: #566176; }
.rating-pill--developing { background: #fff0dc; color: #b25a00; }

.issuer-ratings-panel {
  overflow: hidden;
}

.issuer-ratings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.issuer-ratings-toolbar > span {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.issuer-ratings-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(480px, 100%);
}

.issuer-ratings-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #f8faff;
  color: var(--ink-900);
  font: inherit;
  font-size: 14px;
}

.issuer-ratings-search input:focus {
  border-color: #4c7dff;
  box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.14);
}

.issuer-ratings-suggestions {
  position: absolute;
  z-index: 45;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.issuer-ratings-suggestions[hidden],
.issuer-ratings-suggestions button[hidden] {
  display: none;
}

.issuer-ratings-suggestions button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-800);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.issuer-ratings-suggestions button:hover,
.issuer-ratings-suggestions button:focus-visible {
  outline: none;
  background: #eef4ff;
  color: #1761ca;
}

.issuer-ratings-table-wrap {
  overflow: auto;
}

.issuer-ratings-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.issuer-ratings-table th,
.issuer-ratings-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.issuer-ratings-table th:last-child,
.issuer-ratings-table td:last-child {
  border-right: 0;
}

.issuer-ratings-table th {
  padding: 12px 12px;
  background: linear-gradient(135deg, #3e91ed, #5b22f6);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.issuer-ratings-table th:first-child,
.issuer-ratings-table td:first-child {
  width: 30%;
  text-align: left;
}

.issuer-ratings-table td {
  padding: 8px 12px;
  background: #fff;
  text-align: center;
  vertical-align: middle;
}

.issuer-ratings-table tbody tr:hover td {
  background: #f7faff;
}

.issuer-rating-name {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  text-align: left;
}

.issuer-rating-name:hover {
  color: #1761ca;
}

.issuer-rating-issues {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.issuer-rating-cell {
  display: grid;
  min-height: 50px;
  align-content: center;
  justify-items: center;
  gap: 4px;
}

.issuer-rating-cell strong {
  color: var(--ink-900);
  font-size: 17px;
  line-height: 1;
}

.issuer-rating-cell small {
  color: var(--ink-500);
  font-size: 11px;
}

.issuer-rating-cell .rating-pill {
  min-height: 28px;
  padding: 0 11px;
  font-size: 11px;
}

.issuer-rating-cell--empty {
  color: var(--ink-300);
  font-size: 20px;
}

.issuer-ratings-empty {
  padding: 32px 20px;
  color: var(--ink-500);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1480px) {
  .portfolio-metric-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1260px) {
  .portfolio-overview-grid { grid-template-columns: repeat(4, minmax(128px, 1fr)); }
  .analytics-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-summary > div:nth-child(3n) { border-right: 0; }
  .rating-review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .portfolio-metric-groups { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-dialog { padding: 14px; align-items: end; }
  .app-dialog__card { border-radius: 20px 20px 14px 14px; }
  .app-dialog__header,
  .app-dialog__fields { padding-right: 18px; padding-left: 18px; }
  .app-dialog__footer { padding: 14px 18px 18px; }
  .app-dialog__footer .button { min-width: 0; flex: 1; }
  .portfolio-actions { width: 100%; }
  .portfolio-actions .button { flex: 1; }
  .portfolio-fx-grid { padding: 0 14px 16px; grid-template-columns: 1fr; }
  .favorite-lists-panel__header { align-items: stretch; flex-direction: column; }
  .favorite-lists-actions { width: 100%; }
  .favorite-lists-actions .button { flex: 1 1 calc(50% - 8px); }
  .issuer-ratings-toolbar { align-items: stretch; flex-direction: column; padding: 14px; }
  .issuer-ratings-toolbar > span { padding-left: 2px; }
  .issuer-ratings-search { width: 100%; }
  .favorite-list-tabs { padding-right: 14px; padding-left: 14px; }
  .portfolio-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px; }
  .portfolio-pane-switch { width: 100%; }
  .portfolio-metric-groups { padding: 0 14px; }
  .portfolio-table-actions { width: 100%; justify-content: stretch; }
  .portfolio-sort-select,
  .portfolio-table-actions .button { width: 100%; min-width: 0; }
  .analytics-hero { padding: 20px; }
  .analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-summary > div:nth-child(3n) { border-right: 1px solid #e6edf7; }
  .analytics-summary > div:nth-child(2n) { border-right: 0; }
  .rps-form { align-items: stretch; flex-direction: column; }
  .rps-form input,
  .rps-form .button { width: 100%; }
  .primary-list,
  .rating-review-list { grid-template-columns: 1fr; }
  .placement-metrics,
  .primary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .placement-buckets { grid-template-columns: 1fr; }
}

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

/* Owner-only instrument registry */
.admin-view {
  gap: 18px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(53, 90, 160, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 16%, rgba(70, 122, 237, 0.2), transparent 28%),
    linear-gradient(135deg, #0b1734 0%, #142c5b 100%);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.admin-hero h2,
.admin-section-head h3,
.admin-ratings-note h3 {
  margin: 5px 0 0;
}

.admin-hero p {
  max-width: 720px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.admin-hero .eyebrow {
  color: #99bafa;
}

.admin-hero__actions,
.admin-form__actions,
.admin-table__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-hero__actions {
  flex: 0 0 auto;
}

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

.admin-stats article {
  display: flex;
  min-height: 94px;
  padding: 18px 20px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.admin-stats span {
  color: var(--ink-500);
  font-size: 12px;
}

.admin-stats strong {
  color: var(--navy-900);
  font-size: 27px;
  line-height: 1;
}

.admin-stats article.is-error {
  border-color: #efc9c5;
  background: var(--red-soft);
}

.admin-stats article.is-error strong {
  color: var(--red);
}

.admin-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.admin-tabs button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  white-space: nowrap;
}

.admin-tabs button:hover,
.admin-tabs button.is-active {
  background: var(--blue-50);
  color: var(--blue-700);
}

.admin-tabs button.is-active {
  font-weight: 700;
}

.admin-tabs button span,
.admin-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 800;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-candidate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.admin-candidate {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(260px, 1.6fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.admin-candidate > div,
.admin-table td,
.admin-history article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.admin-candidate > div span,
.admin-table td small,
.admin-history small {
  color: var(--ink-500);
  font-size: 11px;
}

.admin-calculation {
  margin-top: 3px;
}

.admin-calculation--active {
  color: var(--green) !important;
}

.admin-calculation--pending {
  color: var(--amber) !important;
}

.admin-calculation--error,
.admin-calculation-error {
  color: var(--red) !important;
}

.admin-calculation-error {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-candidate dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-candidate dl div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-candidate dt {
  color: var(--ink-400);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-candidate dd {
  margin: 0;
  color: var(--ink-700);
  font-size: 12px;
}

.admin-editor {
  overflow: hidden;
}

.admin-alert {
  margin: 18px 24px 0;
  padding: 12px 14px;
  border: 1px solid #f1c9c5;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
}

.admin-form {
  padding: 22px 24px 26px;
}

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

.admin-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.admin-field--wide {
  grid-column: 1 / -1;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #dce2ec;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 500;
  resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(75, 130, 238, 0.12);
}

.admin-field input[readonly] {
  background: var(--line-soft);
  color: var(--ink-500);
}

.admin-field__hint {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 500;
}

.admin-field__hint[data-state="found"] {
  color: #126b50;
}

.admin-field__hint[data-state="new"],
.admin-field__hint[data-state="error"] {
  color: var(--red);
}

.admin-form__subsection {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dce6fa;
  border-radius: 15px;
  background: var(--blue-50);
}

.admin-form__subsection > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--navy-800);
  font-size: 13px;
}

.admin-support-section {
  background: #f8faff;
}

.admin-support-section__head,
.admin-support-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-support-section__head > div,
.admin-support-card__head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.admin-support-section__head strong,
.admin-support-card__head strong {
  color: var(--navy-800);
  font-size: 13px;
}

.admin-support-section__head span,
.admin-support-card__head span,
.admin-support-empty {
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.45;
}

.admin-support-list {
  display: grid;
  margin-top: 14px;
  gap: 12px;
}

.admin-support-card {
  padding: 16px;
  border: 1px solid #d8e3f5;
  border-radius: 13px;
  background: #fff;
}

.admin-support-card__head {
  margin-bottom: 14px;
}

.admin-support-empty {
  padding: 14px;
  border: 1px dashed #cbd6e6;
  border-radius: 11px;
  background: #fff;
}

.admin-support-parity {
  display: flex;
  padding: 12px 14px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #cfeadd;
  border-radius: 11px;
  background: var(--green-soft);
  color: #126b50;
  cursor: pointer;
}

.admin-support-parity input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: 0 0 17px;
  accent-color: var(--green);
}

.admin-support-parity span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-support-parity strong {
  font-size: 12px;
}

.admin-support-parity small {
  color: #4d7e6d;
  font-size: 10px;
}

.admin-auto-note {
  display: flex;
  margin: 18px 0;
  padding: 14px 16px;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #cfeadd;
  border-radius: 13px;
  background: var(--green-soft);
  color: #126b50;
  font-size: 12px;
}

.admin-auto-note span {
  color: #4d7e6d;
}

.admin-forced-offer-date {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #efd8a2;
  border-radius: 12px;
  background: #fffaf0;
}

.admin-offer-override {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  padding: 0 7px;
  align-items: center;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
}

.admin-offers-panel {
  overflow: hidden;
}

.admin-offers-panel__head {
  align-items: center;
}

.admin-offers-panel__head p {
  max-width: 900px;
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.55;
}

.admin-registry-panel {
  overflow: hidden;
}

.admin-registry-panel .admin-section-head {
  align-items: center;
}

.admin-registry-panel .admin-section-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.55;
}

.admin-table-toolbar {
  display: flex;
  padding: 0 24px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-table-search {
  width: min(480px, 100%);
}

.admin-registry-table {
  min-width: 980px;
  table-layout: fixed;
}

.admin-registry-table th:nth-child(1) { width: 155px; }
.admin-registry-table th:nth-child(2) { width: 260px; }
.admin-registry-table th:nth-child(3) { width: 135px; }
.admin-registry-table th:nth-child(4) { width: 160px; }
.admin-registry-table th:nth-child(5) { width: 140px; }
.admin-registry-table th:last-child { width: 205px; }

.admin-table.admin-registry-table td {
  display: table-cell;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.admin-registry-table td strong,
.admin-registry-table td small {
  display: block;
}

.admin-registry-table td small {
  margin-top: 4px;
}

.admin-registry-table .admin-table__actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.admin-offers-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
}

.admin-offers-table th:nth-child(1) { width: 135px; }
.admin-offers-table th:nth-child(2) { width: 190px; }
.admin-offers-table th:nth-child(3) { width: 125px; }
.admin-offers-table th:nth-child(4) { width: 82px; }
.admin-offers-table th:nth-child(5) { width: 145px; }
.admin-offers-table th:nth-child(6) { width: 130px; }
.admin-offers-table th:nth-child(7) { width: 145px; }
.admin-offers-table th:last-child { width: 132px; }

.admin-offers-table th {
  line-height: 1.25;
  white-space: normal;
}

.admin-offers-table th span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.admin-table.admin-offers-table td {
  display: table-cell;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table.admin-offers-table td:nth-child(1),
.admin-table.admin-offers-table td:nth-child(3) {
  white-space: nowrap;
}

.admin-offer-date-input,
.admin-offer-type-select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--navy-900);
  font: 700 12px/1.2 "Manrope", sans-serif;
}

.admin-offer-date-input:focus,
.admin-offer-type-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(75, 130, 238, 0.12);
}

.admin-offer-date-input:disabled {
  background: var(--line-soft);
  color: var(--ink-400);
  cursor: not-allowed;
}

.admin-offer-type {
  display: inline-flex;
  min-width: 54px;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 850;
}

.admin-offer-type--put {
  background: var(--blue-100);
  color: var(--blue-700);
}

.admin-offer-type--call {
  background: var(--amber-soft);
  color: var(--amber);
}

.admin-offer-type--none {
  background: var(--green-soft);
  color: var(--green);
}

.admin-offers-table .admin-table__actions {
  min-width: 0;
  text-align: right;
}

.admin-offers-table .admin-table__actions .button {
  width: 100%;
  padding-inline: 10px;
  white-space: nowrap;
}

.admin-offer-saved {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 9px;
  line-height: 1.35;
}

.admin-form__actions {
  margin-top: 20px;
  padding-top: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
}

.admin-form__actions small {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 11px;
}

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

.admin-collapsible {
  overflow: hidden;
}

.admin-collapsible__toggle {
  display: flex;
  width: 100%;
  min-height: 92px;
  padding: 18px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-collapsible__toggle:hover {
  background: #fafcff;
}

.admin-collapsible__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.admin-collapsible__copy strong {
  color: var(--navy-900);
  font-size: 17px;
}

.admin-collapsible__copy small {
  max-width: 760px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.45;
}

.admin-collapsible__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.admin-collapsible__chevron {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

.admin-collapsible.is-open .admin-collapsible__chevron {
  transform: rotate(180deg);
}

.admin-collapsible__body {
  border-top: 1px solid var(--line-soft);
}

.admin-collapsible__empty {
  padding: 20px 22px;
  color: var(--ink-500);
  font-size: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #fafbfd;
  color: var(--ink-500);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table__actions {
  flex-direction: row !important;
  justify-content: flex-end;
}

.admin-status {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 800;
}

.admin-status--published {
  background: var(--green-soft);
  color: var(--green);
}

.admin-status--draft {
  background: var(--amber-soft);
  color: var(--amber);
}

.admin-status--needs_review {
  background: var(--red-soft);
  color: var(--red);
}

.admin-history {
  padding: 6px 24px 20px;
}

.admin-history article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.admin-history article:last-child {
  border-bottom: 0;
}

.admin-history__dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.admin-ratings-note {
  display: flex;
  padding: 28px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-ratings-note p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.65;
}

.admin-issuer-lights {
  overflow: hidden;
}

.admin-issuer-lights__head {
  align-items: center;
}

.admin-issuer-lights__head p {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.admin-issuer-lights__summary {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.admin-issuer-lights__summary strong {
  margin-right: 5px;
  color: var(--navy-900);
  font-size: 13px;
}

.admin-issuer-lights__toolbar {
  display: flex;
  padding: 0 24px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-issuer-lights__toolbar > span {
  color: var(--ink-500);
  font-size: 12px;
  white-space: nowrap;
}

.admin-issuer-lights__search {
  width: min(480px, 100%);
}

.admin-issuer-lights__table td {
  display: table-cell;
  vertical-align: middle;
}

.admin-issuer-lights__table td strong,
.admin-issuer-lights__table td small {
  display: block;
}

.admin-issuer-lights__table td small {
  margin-top: 4px;
}

.admin-issuer-lights__table .admin-table__actions {
  text-align: right;
}

.admin-issuer-inn-input {
  width: 100%;
  min-width: 130px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--navy-900);
  font: 700 12px/1.2 "Manrope", sans-serif;
}

.admin-issuer-inn-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(75, 130, 238, 0.12);
}

.admin-light-select {
  display: inline-flex;
  min-width: 160px;
  padding: 0 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-light-select select {
  width: 100%;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy-900);
  font: inherit;
  font-size: 13px;
}

.admin-light-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

.admin-light-dot--green {
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.14);
}

.admin-light-dot--yellow {
  background: #e2a527;
  box-shadow: 0 0 0 3px rgba(226, 165, 39, 0.16);
}

.admin-light-dot--red {
  background: #dc5a5a;
  box-shadow: 0 0 0 3px rgba(220, 90, 90, 0.14);
}

.admin-light-dot--none {
  background: #cbd5e1;
}

.admin-ratings-note--compact {
  margin: 18px 24px 24px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface-soft);
}

.admin-ratings-note--compact p {
  margin-top: 5px;
}

.admin-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.admin-loading div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-loading small {
  color: var(--ink-500);
}

@media (max-width: 1220px) {
  .admin-candidate-list { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-hero { align-items: stretch; flex-direction: column; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-candidate { grid-template-columns: 1fr; }
  .admin-form__grid { grid-template-columns: 1fr; }
  .admin-field--wide { grid-column: auto; }
  .admin-form__actions small { width: 100%; margin-left: 0; }
  .admin-ratings-note { flex-direction: column; }
  .admin-issuer-lights__head,
  .admin-issuer-lights__toolbar { align-items: stretch; flex-direction: column; }
  .admin-issuer-lights__summary { align-self: flex-start; }
  .admin-issuer-lights__toolbar > span { white-space: normal; }
  .admin-support-section__head,
  .admin-support-card__head { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .admin-hero { padding: 22px; }
  .admin-hero__actions { align-items: stretch; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-section-head { padding: 18px; }
  .admin-candidate-list { padding: 12px; }
  .admin-candidate dl { grid-template-columns: 1fr; }
  .admin-form { padding: 18px; }
  .admin-collapsible__toggle { min-height: 84px; padding: 16px 18px; }
  .admin-collapsible__copy small { max-width: 230px; }
}
