@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

:root, [data-ov-theme-scope="dark"] {
  color-scheme: dark;
  --ov-bg: #000000;
  --ov-surface: #111111;
  --ov-surface-raised: #202020;
  --ov-active: #303030;
  --ov-border: #292929;
  --ov-border-strong: #3b3b3b;
  --ov-text: #dcdcdc;
  --ov-muted: #b9b9b9;
  --ov-accent: #f3f3f3;
  --ov-accent-text: #000000;
  --ov-danger: #ef9a9a;
  --ov-warning-text: #e7cc82;
  --ov-success-text: #38d970;
  --ov-success-muted: #aeeec0;
  --ov-success-bg: rgba(20, 131, 61, .2);
  --ov-success-border: rgba(56, 217, 112, .48);
  --ov-success-dot: #22c55e;
  --ov-info-surface: #0c1119;
  --ov-info-border: #3e4d67;
  --ov-info-icon: #8fb5ef;
  --ov-warning-surface: #1b160b;
  --ov-warning-border: #6b5932;
  --ov-warning-icon: #e7cc82;
  --ov-danger-surface: #190c0c;
  --ov-danger-border: #673535;
  --ov-danger-icon: #ef9a9a;
  --ov-header-bg: rgba(0, 0, 0, 0.96);
  --ov-sidebar-shadow: 20px 0 42px rgba(0, 0, 0, .42);
  --ov-sidebar-width: 64px;
  --ov-sidebar-expanded-width: 208px;
  --ov-content-max: 1820px;
  --ov-header-height: 64px;
  --ov-radius-sm: 9px;
  --ov-radius-md: 14px;
  --ov-radius-lg: 18px;
  --ov-space-1: 6px;
  --ov-space-2: 10px;
  --ov-space-3: 14px;
  --ov-space-4: 18px;
  --ov-space-5: 24px;
  --ov-space-6: 32px;
  --ov-block-gap: var(--ov-space-4);
  --ov-section-gap: var(--ov-space-5);
  --ov-panel-padding: var(--ov-space-4);
}

html[data-ov-theme="light"], [data-ov-theme-scope="light"] {
  color-scheme: light;
  --ov-bg: #f5f5f2;
  --ov-surface: #ffffff;
  --ov-surface-raised: #ededeb;
  --ov-active: #dfdfdc;
  --ov-border: #d4d4ce;
  --ov-border-strong: #b8b8b0;
  --ov-text: #171717;
  --ov-muted: #60605a;
  --ov-accent: #111111;
  --ov-accent-text: #ffffff;
  --ov-danger: #b42318;
  --ov-warning-text: #8a6400;
  --ov-success-text: #087f35;
  --ov-success-muted: #0b6f31;
  --ov-success-bg: #e2f6e9;
  --ov-success-border: #4da865;
  --ov-success-dot: #087f35;
  --ov-info-surface: #edf4ff;
  --ov-info-border: #89a0c3;
  --ov-info-icon: #294f83;
  --ov-warning-surface: #fff8df;
  --ov-warning-border: #b79a52;
  --ov-warning-icon: #755400;
  --ov-danger-surface: #fff0ef;
  --ov-danger-border: #d89a94;
  --ov-danger-icon: #a1281d;
  --ov-header-bg: rgba(245, 245, 242, 0.96);
  --ov-sidebar-shadow: 20px 0 42px rgba(24, 24, 20, .14);
}

.ov-segmented-control {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--ov-border);
  border-radius: 11px;
  background: var(--ov-surface);
}

.ov-segmented-control a,
.ov-segmented-control button {
  display: inline-flex;
  min-width: 42px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ov-muted);
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ov-segmented-control a:hover,
.ov-segmented-control button:hover {
  background: var(--ov-active);
  color: var(--ov-accent);
}

.ov-segmented-control .is-active {
  background: var(--ov-accent);
  color: var(--ov-accent-text);
}

html {
  background: var(--ov-bg);
}

body {
  min-height: 100vh;
  background: var(--ov-bg);
  color: var(--ov-text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

body,
button,
input,
select,
textarea {
  font-weight: 400;
}

a,
button,
input,
select,
textarea,
summary {
  outline-color: var(--ov-accent);
  outline-offset: 2px;
}

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

.ov-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ov-icon use {
  fill: none;
  stroke: currentColor;
}

.site-header {
  min-height: var(--ov-header-height);
  background: var(--ov-header-bg);
  border-bottom: 1px solid var(--ov-border);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: 100%;
  max-width: none;
  min-height: var(--ov-header-height);
  margin: 0;
  padding: 10px 22px;
  align-items: center;
  gap: 28px;
}

.site-header__topbar {
  flex: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ov-border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ov-accent);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: cover;
  object-position: center;
}

.brand-logo--light {
  display: none;
}

html[data-ov-theme="light"] .brand-logo--dark,
html[data-theme="light"] .brand-logo--dark {
  display: none;
}

html[data-ov-theme="light"] .brand-logo--light,
html[data-theme="light"] .brand-logo--light {
  display: block;
}

.brand-link:hover {
  background: var(--ov-active);
}

.site-header__panel {
  min-width: 0;
  flex: 1;
  gap: 18px;
}

.site-nav {
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-link,
.nav-trigger,
.nav-trigger__link {
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: var(--ov-radius-sm);
  color: var(--ov-text);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-split-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-trigger__toggle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ov-border-strong);
  border-radius: var(--ov-radius-sm);
  background: var(--ov-surface-raised);
  color: var(--ov-muted);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.nav-trigger__toggle .ov-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  transition: transform .16s ease;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-trigger__link:hover,
.nav-trigger__toggle:hover,
.nav-item:hover > .nav-trigger,
.nav-item.is-open > .nav-trigger {
  transform: none;
  background: var(--ov-active);
  color: var(--ov-accent);
}

.nav-link.is-active,
.nav-trigger.is-active,
.nav-trigger__link.is-active {
  transform: none;
  background: var(--ov-accent);
  color: var(--ov-accent-text);
}

.nav-item.is-open .nav-trigger__toggle {
  border-color: #6a6a6a;
  background: var(--ov-active);
  color: var(--ov-accent);
}

.nav-item.is-open .nav-trigger__toggle .ov-icon {
  transform: rotate(180deg);
}

.nav-trigger::after {
  width: 6px;
  height: 6px;
  border-width: 1px;
}

.nav-dropdown {
  top: 100%;
  z-index: 40;
  min-width: 290px;
  padding: 13px 7px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-dropdown::before {
  position: absolute;
  z-index: -1;
  top: 6px;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid var(--ov-border-strong);
  border-radius: 12px;
  background: var(--ov-surface-raised);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
  content: "";
}

.nav-dropdown a {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ov-text);
}

.nav-dropdown a:hover {
  background: var(--ov-active);
  color: var(--ov-accent);
}

.site-header__right {
  flex-wrap: nowrap;
  margin-left: auto;
}

.header-breadcrumbs {
  position: relative;
  display: flex;
  flex: 0 1 auto;
  justify-content: flex-end;
  min-width: 0;
  max-width: min(260px, 28vw);
}

.header-breadcrumbs__current {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--ov-border);
  border-radius: 999px;
  background: var(--ov-surface);
  color: var(--ov-accent);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}

.header-breadcrumbs__current span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-breadcrumbs__current-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: var(--ov-muted);
  transition: transform .16s ease, color .16s ease;
}

.header-breadcrumbs:hover .header-breadcrumbs__current,
.header-breadcrumbs:focus-within .header-breadcrumbs__current {
  border-color: var(--ov-border-strong);
  background: var(--ov-active);
}

.header-breadcrumbs:hover .header-breadcrumbs__current-icon,
.header-breadcrumbs:focus-within .header-breadcrumbs__current-icon {
  color: var(--ov-accent);
  transform: rotate(180deg);
}

.header-breadcrumbs__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: flex;
  min-width: 0;
  width: max-content;
  max-width: min(560px, calc(100vw - 40px));
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--ov-border-strong);
  border-radius: var(--ov-radius-md);
  background: var(--ov-surface-raised);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .46);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  visibility: hidden;
}

.header-breadcrumbs__panel::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 8px;
  content: "";
}

.header-breadcrumbs:hover .header-breadcrumbs__panel,
.header-breadcrumbs:focus-within .header-breadcrumbs__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.header-breadcrumbs li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: #777;
  font-size: 10.5px;
  white-space: nowrap;
}

.header-breadcrumbs__separator {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin: 0 7px;
  color: #555;
  transform: rotate(-90deg);
}

.header-breadcrumbs a,
.header-breadcrumbs span {
  display: block;
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-breadcrumbs a:hover {
  color: var(--ov-accent);
}

.header-breadcrumbs [aria-current="page"] {
  color: var(--ov-accent);
}

.support-pill,
.header-btn,
.header-btn-secondary,
.header-btn-ghost {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--ov-border-strong);
  border-radius: 999px;
  background: var(--ov-surface-raised);
  color: var(--ov-text);
  font-weight: 400;
}

.header-btn {
  border-color: var(--ov-accent);
  background: var(--ov-accent);
  color: var(--ov-accent-text);
}

.header-btn:hover {
  background: var(--ov-text);
}

.header-btn-secondary:hover,
.header-btn-ghost:hover,
.support-pill:hover {
  background: var(--ov-active);
}

.header-support-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--ov-border-strong);
  border-radius: 999px;
  color: var(--ov-muted);
  font-size: 10.5px;
  text-decoration: none;
}
.header-support-link:hover,
.header-support-link.is-active { border-color: var(--ov-accent); background: var(--ov-active); color: var(--ov-accent); }
.header-support-link .ov-icon { width: 15px; height: 15px; }
.header-support-link__status { width: 8px; height: 8px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 50%; background: #9f4f4f; box-shadow: 0 0 0 3px rgba(159, 79, 79, .18); }
.header-support-link__status.is-open { border-color: var(--ov-success-border); background: var(--ov-success-dot); box-shadow: 0 0 0 3px var(--ov-success-bg); }

.app-frame {
  width: 100%;
}

.app-sidebar {
  display: none;
}

body.ov-with-sidebar .app-frame {
  display: grid;
  grid-template-columns: var(--ov-sidebar-width) minmax(0, 1fr);
}

body.ov-with-sidebar .app-sidebar {
  position: sticky;
  top: var(--ov-header-height);
  display: flex;
  flex-direction: column;
  align-self: start;
  z-index: 45;
  width: var(--ov-sidebar-width);
  height: calc(100vh - var(--ov-header-height));
  padding: 18px 12px;
  overflow: hidden auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-right: 1px solid var(--ov-border);
  background: var(--ov-bg);
  transition: width .22s ease, box-shadow .22s ease;
}

body.ov-with-sidebar .app-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.ov-with-sidebar .app-sidebar:hover,
body.ov-with-sidebar .app-sidebar:focus-within {
  width: var(--ov-sidebar-expanded-width);
  box-shadow: var(--ov-sidebar-shadow);
}

.app-sidebar__section + .app-sidebar__section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ov-border);
}

.app-sidebar__section {
  display: grid;
  gap: 11px;
}

.app-sidebar__label {
  margin: 0 12px 5px;
  color: #777777;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s ease;
}

.app-sidebar__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.app-sidebar__label-row .app-sidebar__label {
  margin-bottom: 0;
}

.app-sidebar__label-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-sidebar__label-action {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: none;
  color: #777;
  opacity: 0;
  cursor: pointer;
  transition: opacity .12s ease;
}

.app-sidebar__label-action:hover {
  background: var(--ov-active);
  color: var(--ov-accent);
}

.app-sidebar__label-action .ov-icon {
  width: 14px;
  height: 14px;
}

.app-sidebar__link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: var(--ov-radius-sm);
  color: var(--ov-muted);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.app-sidebar__link > span:last-child,
.sidebar-notification-link > span:not(.sidebar-notification-count),
.sidebar-time-link > span,
.sidebar-profile__identity,
.sidebar-profile__chevron,
.app-sidebar__footer .portal-tour-launcher > span,
.sidebar-theme-toggle__body,
.sidebar-theme-toggle__switch {
  opacity: 0;
  min-width: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.app-sidebar:hover .app-sidebar__label,
.app-sidebar:focus-within .app-sidebar__label,
.app-sidebar:hover .app-sidebar__label-action,
.app-sidebar:focus-within .app-sidebar__label-action,
.app-sidebar:hover .app-sidebar__link > span:last-child,
.app-sidebar:focus-within .app-sidebar__link > span:last-child,
.app-sidebar:hover .sidebar-notification-link > span:not(.sidebar-notification-count),
.app-sidebar:focus-within .sidebar-notification-link > span:not(.sidebar-notification-count),
.app-sidebar:hover .sidebar-time-link > span,
.app-sidebar:focus-within .sidebar-time-link > span,
.app-sidebar:hover .sidebar-profile__identity,
.app-sidebar:focus-within .sidebar-profile__identity,
.app-sidebar:hover .sidebar-profile__chevron,
.app-sidebar:focus-within .sidebar-profile__chevron,
.app-sidebar:hover .app-sidebar__footer .portal-tour-launcher > span,
.app-sidebar:focus-within .app-sidebar__footer .portal-tour-launcher > span,
.app-sidebar:hover .sidebar-theme-toggle__body,
.app-sidebar:focus-within .sidebar-theme-toggle__body,
.app-sidebar:hover .sidebar-theme-toggle__switch,
.app-sidebar:focus-within .sidebar-theme-toggle__switch {
  opacity: 1;
  pointer-events: auto;
  transition-delay: .08s;
}

.app-sidebar__link,
.sidebar-notification-link,
.sidebar-time-link,
.app-sidebar__footer .portal-tour-launcher,
.sidebar-theme-toggle {
  padding-inline: 13px;
}

.app-sidebar__link:hover {
  background: var(--ov-active);
  color: var(--ov-accent);
}

.app-sidebar__link.is-active {
  background: var(--ov-accent);
  color: var(--ov-accent-text);
}

.app-sidebar__icon {
  display: block;
  height: 17px;
  width: 18px;
  flex: 0 0 18px;
  color: currentColor;
  stroke-width: 1.7;
}

.app-sidebar__footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.app-sidebar__notification-row {
  padding-bottom: 2px;
}

.sidebar-notification-link,
.sidebar-time-link {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--ov-radius-sm);
  background: transparent;
  color: var(--ov-text);
  font-size: 12.5px;
  text-decoration: none;
}

.sidebar-notification-link:hover,
.sidebar-time-link:hover {
  background: var(--ov-active);
  color: var(--ov-accent);
}

.sidebar-notification-link .ov-icon,
.sidebar-time-link .ov-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sidebar-notification-count {
  position: absolute;
  top: 1px;
  left: 22px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--ov-surface);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.app-sidebar__footer .portal-tour-launcher {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--ov-radius-sm);
  background: transparent;
  color: var(--ov-text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.app-sidebar__footer .portal-tour-launcher:hover {
  background: var(--ov-active);
  color: var(--ov-accent);
}

.app-sidebar__footer .portal-tour-launcher.is-missing,
.app-sidebar__footer .portal-tour-launcher.is-missing:disabled {
  border-color: #692929;
  background: #301313;
  color: #ff9c9c;
  cursor: not-allowed;
  opacity: 1;
}

.app-sidebar__footer .portal-tour-launcher .ov-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sidebar-theme-toggle {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) 34px;
  width: 100%;
  max-height: 0;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 11px;
  overflow: hidden;
  border: 0 solid transparent;
  border-radius: var(--ov-radius-sm);
  background: transparent;
  color: var(--ov-text);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: max-height .16s ease, min-height .16s ease, padding .16s ease, border-color .14s ease, background .14s ease, color .14s ease, opacity .12s ease;
}

.app-sidebar:hover .sidebar-theme-toggle,
.app-sidebar:focus-within .sidebar-theme-toggle {
  max-height: 40px;
  min-height: 40px;
  padding: 7px 11px;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
}

.sidebar-theme-toggle:hover {
  background: var(--ov-active);
  color: var(--ov-accent);
}

.sidebar-theme-toggle__icon {
  grid-column: 1;
  grid-row: 1;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sidebar-theme-toggle__icon--light,
html[data-ov-theme="light"] .sidebar-theme-toggle__icon--dark {
  opacity: 0;
}

html[data-ov-theme="light"] .sidebar-theme-toggle__icon--light {
  opacity: 1;
}

.sidebar-theme-toggle__body {
  display: block;
}

.sidebar-theme-toggle__body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-theme-toggle__body strong {
  color: var(--ov-accent);
  font-size: 12.5px;
  font-weight: 500;
}

.sidebar-theme-toggle__switch {
  position: relative;
  display: block;
  width: 34px;
  height: 20px;
  border: 1px solid var(--ov-border-strong);
  border-radius: 999px;
  background: var(--ov-surface-raised);
}

.sidebar-theme-toggle__switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ov-accent);
  transition: transform .16s ease, background .16s ease;
}

html[data-ov-theme="light"] .sidebar-theme-toggle__switch i {
  transform: translateX(14px);
}

.sidebar-dev-toggle[aria-pressed="true"] .sidebar-theme-toggle__switch i {
  transform: translateX(14px);
}

html[data-ov-dev-sidebar-hidden="true"] .app-sidebar__section--dev {
  display: none;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 28px;
  align-items: center;
  justify-content: center;
  place-items: center;
  justify-self: center;
  box-sizing: border-box;
  gap: 10px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--ov-border);
  border-radius: 12px;
  background: var(--ov-surface-raised);
  color: var(--ov-text);
  text-decoration: none;
  overflow: hidden;
}

.sidebar-profile:hover {
  border-color: var(--ov-border-strong);
  background: var(--ov-active);
  color: var(--ov-accent);
}

.sidebar-profile__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin: auto;
  place-items: center;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  background: var(--ov-active);
  color: var(--ov-accent);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}
.sidebar-profile__avatar img { width:100%;height:100%;border-radius:inherit;object-fit:cover; }
.sidebar-profile__avatar-icon { width:17px;height:17px; }

.sidebar-profile__identity {
  display: block;
  min-width: 0;
  flex: 1;
}

.sidebar-profile__name,
.sidebar-profile__hint {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile__name {
  color: var(--ov-accent);
  font-size: 13px;
  font-weight: 500;
}

.sidebar-profile__hint {
  margin-top: 2px;
  color: #898989;
  font-size: 11px;
}

.sidebar-profile__chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: var(--ov-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .header-profile {
  display: flex;
  width: auto;
  min-width: 164px;
  max-width: 220px;
  height: auto;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  place-items: initial;
  padding: 5px 7px;
  transform: none;
  transition: none;
}

.site-header .header-profile .sidebar-profile__avatar {
  margin: 0;
}

.site-header .header-profile .sidebar-profile__identity,
.site-header .header-profile .sidebar-profile__chevron {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.site-header .header-profile:hover,
.site-header .header-profile:active {
  border-color: var(--ov-border);
  background: var(--ov-surface-raised);
  color: var(--ov-text);
  transform: none;
}

.site-header .header-profile:focus-visible {
  border-color: var(--ov-border);
  background: var(--ov-surface-raised);
  color: var(--ov-text);
  outline: 2px solid var(--ov-accent);
  outline-offset: 2px;
}

.site-header .header-profile .sidebar-profile__chevron {
  align-self: center;
  margin-left: auto;
}

/* Multi-value picker: shared toolkit component for add/search menus. */
.ov-multi-picker { position:relative; }
.ov-multi-picker__control { display:flex;min-height:48px;align-items:center;flex-wrap:wrap;gap:8px;padding:7px;border:1px solid var(--ov-border-strong);border-radius:var(--ov-radius-sm);background:var(--ov-surface); }
.ov-multi-picker__add { display:grid!important;width:34px;height:34px;min-height:34px!important;padding:0!important;place-items:center;border:1px solid var(--ov-accent)!important;border-radius:9px!important;background:var(--ov-accent)!important;color:var(--ov-accent-text)!important; }
.ov-multi-picker__add .ov-icon { width:16px;height:16px; }
.ov-multi-picker__menu { position:absolute;z-index:60;top:calc(100% + 8px);left:0;width:min(480px,100%);overflow:hidden;border:1px solid var(--ov-border-strong);border-radius:var(--ov-radius-md);background:var(--ov-surface-raised);box-shadow:0 20px 48px rgba(0,0,0,.48); }

/* Shared page rhythm. Use these wrappers instead of local block margins. */
.ov-page-stack { display:grid;gap:var(--ov-section-gap);min-width:0; }
.ov-section-stack { display:grid;gap:var(--ov-block-gap);min-width:0; }
.ov-panel { min-width:0;padding:var(--ov-panel-padding);border:1px solid var(--ov-border);border-radius:var(--ov-radius-lg);background:var(--ov-surface); }
.ov-page-stack > *,.ov-section-stack > * { margin-block:0; }

/* Toolkit: consistent form footer and primary/secondary actions. */
.ov-form-actions { display:flex;align-items:center;justify-content:flex-end;gap:var(--ov-space-2);padding-top:var(--ov-space-4);border-top:1px solid var(--ov-border); }
.ov-action { display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:9px 15px;border:1px solid var(--ov-border-strong);border-radius:10px;background:var(--ov-surface-raised);color:var(--ov-text);font:inherit;font-size:12px;font-weight:500;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease,transform .14s ease; }
.ov-action .ov-icon { width:15px;height:15px;flex:0 0 15px; }
.ov-action:hover { border-color:#5a5a5a;background:var(--ov-active);color:var(--ov-accent); }
.ov-action:active { transform:translateY(1px); }
.ov-action:focus-visible { outline:3px solid rgba(243,243,243,.12);outline-offset:2px; }
.ov-action:disabled,.ov-action[aria-disabled="true"] { opacity:.42;cursor:not-allowed;pointer-events:none;transform:none; }
.ov-action--ghost { border-color:#686868;background:transparent;color:var(--ov-text); }
.ov-action--ghost:hover { border-color:#969696;background:rgba(243,243,243,.07);color:var(--ov-accent); }
.ov-action--primary { border-color:var(--ov-accent);background:var(--ov-accent);color:var(--ov-accent-text)!important; }
.ov-action--primary :where(span,.ov-icon) { color:var(--ov-accent-text)!important;stroke:currentColor; }
.ov-action--primary:hover { border-color:#d8d8d8;background:#d8d8d8;color:#000; }
.ov-action--primary:hover :where(span,.ov-icon) { color:#000!important;stroke:currentColor; }
.ov-action--danger { border-color:#673535;background:#190c0c;color:#ffaaaa; }
.ov-action--danger:hover { border-color:#8a4545;background:#261010;color:#ffc1c1; }
.ov-action-group { display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:var(--ov-space-2);flex-wrap:wrap; }
.ov-action-group--start { justify-content:flex-start; }
.ov-action-group--stretch { align-items:stretch; }
@media(max-width:620px){.ov-form-actions{align-items:stretch;flex-direction:column-reverse}.ov-form-actions .ov-action{width:100%}.ov-action-group{align-items:stretch;flex-direction:column}.ov-action-group .ov-action,.ov-action-group>form,.ov-action-group>form .ov-action{width:100%}}

/* Toolkit: page-level alerts and warnings. */
.ov-alert { display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--ov-border-strong);border-radius:var(--ov-radius-md);background:var(--ov-surface);color:var(--ov-text); }
.ov-alert > .ov-icon { width:18px;height:18px;flex:0 0 18px;margin-top:1px; }
.ov-alert__body { min-width:0;display:grid;gap:4px; }
.ov-alert__body strong { color:currentColor;font-size:12px;font-weight:500; }
.ov-alert__body span,.ov-alert__body p { margin:0;color:var(--ov-muted);font-size:10.5px;line-height:1.5; }
.ov-alert--with-action { align-items:center;justify-content:space-between; }
.ov-alert--with-action .ov-alert__body { flex:1; }
.ov-alert--neutral { border-color:var(--ov-border-strong);background:var(--ov-surface);color:var(--ov-text); }
.ov-alert--info { border-color:#3e4d67;background:#0c1119;color:#aebfdb; }
.ov-alert--info .ov-alert__body span,.ov-alert--info .ov-alert__body p { color:#8fa2c2; }
.ov-alert--success { border-color:var(--ov-success-border);background:var(--ov-success-bg);color:var(--ov-success-text); }
.ov-alert--success .ov-alert__body span,.ov-alert--success .ov-alert__body p { color:var(--ov-success-muted); }
.ov-alert--warning { border-color:#6b5932;background:#1b160b;color:var(--ov-warning-text); }
.ov-alert--warning :where(.ov-alert__body strong,.ov-alert__body span,.ov-alert__body p) { color:var(--ov-warning-text); }
.ov-alert--danger { border-color:#673535;background:#190c0c;color:#ffaaaa; }
.ov-alert--danger .ov-alert__body span,.ov-alert--danger .ov-alert__body p { color:#d88f8f; }
@media(max-width:620px){.ov-alert--with-action{align-items:stretch;flex-direction:column}.ov-alert--with-action .ov-action{width:100%;justify-content:center}}

/* Canonical notification surface: inline feedback and transient toasts. */
.ov-notification { --ov-notification-border:var(--ov-border-strong);--ov-notification-bg:var(--ov-surface);--ov-notification-icon:var(--ov-text);--ov-notification-title:var(--ov-accent);--ov-notification-copy:var(--ov-text);position:relative;display:grid;min-width:0;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:13px;padding:14px 50px 14px 16px;border:1px solid var(--ov-notification-border);border-radius:var(--ov-radius-md);background:var(--ov-notification-bg);color:var(--ov-text);box-shadow:0 14px 40px rgba(0,0,0,.22); }
.ov-notification__icon { display:grid;width:26px;height:26px;place-items:center;align-self:center;color:var(--ov-notification-icon); }
.ov-notification__icon .ov-icon { display:block;width:23px;height:23px;stroke-width:1.8; }
.ov-notification__body { min-width:0;display:grid;gap:4px; }
.ov-notification__title { color:var(--ov-notification-title);font-size:12px;font-weight:600;line-height:1.4; }
.ov-notification__text,.ov-notification__meta { margin:0;color:var(--ov-notification-copy);font-size:10.5px;line-height:1.5;overflow-wrap:anywhere; }
.ov-notification__meta { font-size:9.5px; }
.ov-notification__action { display:inline-flex;width:max-content;align-items:center;gap:6px;margin-top:4px;padding:0;border:0;border-bottom:1px solid currentColor;background:transparent;color:var(--ov-notification-title);font:inherit;font-size:10.5px;font-weight:600;text-decoration:none;cursor:pointer; }
.ov-notification__action .ov-icon { width:13px;height:13px; }
.ov-notification__close { position:absolute;top:50%;right:10px;display:grid;width:30px;height:30px;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:var(--ov-muted);cursor:pointer;transform:translateY(-50%);transform-origin:center;transition:width .14s ease,background .14s ease,color .14s ease; }
.ov-notification__close .ov-icon { display:block;width:18px;height:18px; }
.ov-notification__close:hover { width:38px;background:var(--ov-active);color:var(--ov-text); }
.ov-notification__close:focus-visible,.ov-notification__action:focus-visible { outline:2px solid currentColor;outline-offset:2px; }
.ov-notification--neutral { box-shadow:none; }
.ov-notification--info { --ov-notification-border:var(--ov-info-border);--ov-notification-bg:var(--ov-info-surface);--ov-notification-icon:var(--ov-info-icon); }
.ov-notification--success { --ov-notification-border:var(--ov-success-border);--ov-notification-bg:var(--ov-success-bg);--ov-notification-icon:var(--ov-success-text); }
.ov-notification--warning { --ov-notification-border:var(--ov-warning-border);--ov-notification-bg:var(--ov-warning-surface);--ov-notification-icon:var(--ov-warning-icon); }
.ov-notification--danger { --ov-notification-border:var(--ov-danger-border);--ov-notification-bg:var(--ov-danger-surface);--ov-notification-icon:var(--ov-danger-icon); }
.ov-toast-region { position:fixed;z-index:900;top:calc(var(--ov-header-height) + 16px);right:20px;display:grid;width:min(380px,calc(100vw - 32px));max-height:calc(100vh - var(--ov-header-height) - 32px);gap:10px;overflow-y:auto;pointer-events:none; }
.ov-notification--toast { pointer-events:auto;animation:ov-notification-enter .18s ease-out both; }
.ov-notification--toast.is-leaving { animation:ov-notification-leave .18s ease-in both; }
@keyframes ov-notification-enter { from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none} }
@keyframes ov-notification-leave { to{opacity:0;transform:translateY(-8px) scale(.98)} }
@media(max-width:620px){.ov-toast-region{top:calc(var(--ov-header-height) + 10px);right:16px;left:16px;width:auto;max-height:calc(100vh - var(--ov-header-height) - 20px)}.ov-notification{padding-left:14px}}
@media(prefers-reduced-motion:reduce){.ov-notification--toast,.ov-notification--toast.is-leaving{animation:none}}

.message-stack { display:grid;gap:10px;margin-bottom:16px; }

.app-content-frame {
  min-width: 0;
}

.site-shell {
  width: min(100%, var(--ov-content-max));
  max-width: var(--ov-content-max);
  margin: 0 auto;
  padding: 34px clamp(16px, 2vw, 38px) 54px;
}

.burger-btn {
  border-color: var(--ov-border-strong);
  background: var(--ov-surface-raised);
  color: #8a8a8a;
}

.burger-btn span {
  background: var(--ov-accent);
}

.burger-btn__icon {
  grid-area: 1 / 1;
  display: block;
  width: 21px;
  height: 21px;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .16s ease, transform .16s ease, color .16s ease;
}

.app-sidebar:hover .sidebar-profile,
.app-sidebar:focus-within .sidebar-profile {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 48px;
  padding: 7px 9px;
}

.burger-btn__icon--dots {
  stroke: none;
}

.burger-btn__icon--close {
  fill: none;
  opacity: 0;
  transform: scale(.74) rotate(-18deg);
}

.burger-btn.is-open {
  color: var(--ov-accent);
}

.burger-btn.is-open .burger-btn__icon--dots {
  opacity: 0;
  transform: scale(.74) rotate(18deg);
}

.burger-btn.is-open .burger-btn__icon--close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

@media (max-width: 1280px) {
  .nav-link,
  .nav-trigger {
    padding-inline: 9px;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    display: block;
    padding: 9px 14px;
  }

  .site-header__topbar {
    width: 100%;
  }

  .site-header__panel {
    margin-top: 9px;
    padding: 8px;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-md);
    background: var(--ov-surface);
  }

  .site-nav,
  .site-header__right {
    gap: 4px;
  }

  .site-header__right {
    margin-top: 8px;
  }

  .header-breadcrumbs {
    display: none;
  }

  .site-header .header-profile {
    width: 100%;
    max-width: none;
  }

  .nav-dropdown {
    min-width: 0;
    padding: 7px;
    border: 1px solid var(--ov-border-strong);
    border-radius: 10px;
    background: var(--ov-surface-raised);
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-split-trigger {
    width: 100%;
  }

  .nav-trigger__link {
    flex: 1;
    justify-content: flex-start;
  }

  .nav-trigger__toggle {
    width: 42px;
    height: 36px;
    flex: 0 0 42px;
  }

  body.ov-with-sidebar .app-sidebar { padding-inline: 12px; }

}

/* Toolkit: label, control, contextual info and validation as one field. */
.ov-field-block { display: grid; min-width: 0; gap: 7px; }
.ov-field-block__heading { display: flex; min-height: 20px; align-items: center; gap: 7px; }
.ov-field-block__heading label,
.ov-field-block__heading .ov-field-block__label { margin: 0; color: var(--ov-text); font-size: 12px; font-weight: 500; }
.ov-field-block__help { color: #858585; font-size: 10.5px; line-height: 1.4; }
.ov-field-info { position: relative; display: inline-grid !important; width: 18px !important; min-width: 18px !important; height: 18px !important; min-height: 18px !important; place-items: center; padding: 0 !important; border: 1px solid #505050 !important; border-radius: 50% !important; background: transparent !important; color: #999 !important; }
.ov-field-info .ov-icon { width: 11px !important; height: 11px !important; }
.ov-field-info:hover,
.ov-field-info:focus-visible { border-color: var(--ov-accent) !important; color: var(--ov-accent) !important; outline: none; }
.ov-field-info::after { position: absolute; z-index: 80; top: calc(100% + 8px); left: 50%; width: max-content; max-width: min(300px, 70vw); padding: 8px 10px; border: 1px solid var(--ov-border-strong); border-radius: var(--ov-radius-sm); background: var(--ov-surface-raised); color: var(--ov-text); box-shadow: 0 14px 36px rgba(0, 0, 0, .42); content: attr(data-tooltip); font-size: 10.5px; font-weight: 400; line-height: 1.4; opacity: 0; pointer-events: none; transform: translate(-50%, -3px); transition: opacity .14s ease, transform .14s ease; }
.ov-field-info:hover::after,
.ov-field-info:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.ov-field-errors,
.ov-field-errors ul { margin: 0; padding: 0; list-style: none; color: #ff9c9c; font-size: 10.5px; }

/* Toolkit: shared page heading, form layout, controls, chips and technical output. */
.ov-page-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ov-space-4); }
/* Standalone headings need separation; stack layouts already provide their own gap. */
:where(.ov-page-heading) { margin-block-end:var(--ov-section-gap); }
.ov-page-heading__eyebrow { margin:0 0 var(--ov-space-2);color:#777;font-size:10px;letter-spacing:.08em;text-transform:uppercase; }
.ov-page-heading h1 { margin:0;color:var(--ov-accent);font-size:clamp(25px,3.4vw,42px);font-weight:500;letter-spacing:-.045em; }
.ov-page-heading__meta { margin:var(--ov-space-2) 0 0;color:var(--ov-muted);font-size:11px;line-height:1.5; }
.ov-form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ov-space-5); }
.ov-form-grid__wide { grid-column:1/-1; }
.ov-control { width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--ov-border-strong);border-radius:var(--ov-radius-sm);background:var(--ov-surface);color:var(--ov-text);font:inherit;font-size:12px;outline:0; }
.ov-control:focus { border-color:#777;box-shadow:0 0 0 3px rgba(243,243,243,.07); }
.ov-control.is-error,.ov-control[aria-invalid="true"] { border-color:#854949;box-shadow:0 0 0 3px rgba(133,73,73,.15); }
textarea.ov-control { min-height:118px;resize:vertical; }
.ov-chip-list { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.ov-chip { display:inline-flex;min-height:29px;max-width:100%;align-items:center;padding:6px 9px;border:1px solid var(--ov-border-strong);border-radius:999px;background:var(--ov-active);color:var(--ov-muted);font-size:10px;overflow-wrap:anywhere; }
.ov-code-block { max-height:420px;overflow:auto;padding:var(--ov-space-4);border:1px solid var(--ov-border);border-radius:var(--ov-radius-md);background:var(--ov-surface-raised);color:var(--ov-muted);font-size:10px;line-height:1.55;white-space:pre-wrap;word-break:break-word; }
.ov-experimental { display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid #5f512c;border-radius:var(--ov-radius-md);background:#171409;color:var(--ov-text); }
.ov-experimental>.ov-icon { width:19px;height:19px;flex:0 0 19px;color:#e0c36d; }
.ov-experimental__body { display:grid;min-width:0;gap:4px; }
.ov-experimental__heading { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.ov-experimental strong { color:var(--ov-accent);font-size:12px;font-weight:500; }
.ov-experimental p { margin:0;color:var(--ov-muted);font-size:10.5px;line-height:1.5; }
.ov-experimental__badge { display:inline-flex;min-height:22px;align-items:center;padding:3px 7px;border:1px solid #766431;border-radius:999px;color:#e0c36d;font-size:9px;letter-spacing:.06em;text-transform:uppercase; }
@media(max-width:720px){.ov-page-heading{align-items:stretch;flex-direction:column}.ov-page-heading>.ov-action{width:100%}.ov-form-grid{grid-template-columns:1fr}.ov-form-grid__wide{grid-column:auto}}

/* Toolkit: data tables keep dense desktop columns and provide intentional mobile scrolling. */
.ov-table-shell { position:relative;min-width:0;overflow-x:auto;overflow-y:visible;border:1px solid var(--ov-border);border-radius:var(--ov-radius-lg);background:var(--ov-surface);-webkit-overflow-scrolling:touch;scrollbar-color:var(--ov-border-strong) var(--ov-surface-raised); }
.ov-table-shell:focus-within { border-color:var(--ov-border-strong); }
.ov-data-table { width:100%;min-width:920px;border:0;border-collapse:collapse;background:var(--ov-surface);color:var(--ov-text); }
.ov-data-table th,.ov-data-table td { padding:13px 15px;border-bottom:1px solid var(--ov-border);background:transparent;color:var(--ov-text);font-size:10.5px;text-align:left;vertical-align:middle; }
.ov-data-table th { background:var(--ov-surface-raised);color:var(--ov-muted);font-size:9px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap; }
.ov-data-table tbody tr:hover { background:var(--ov-active); }
.ov-data-table tr:last-child td { border-bottom:0; }
.ov-data-table tbody tr[data-is-pinned="true"] td{background:rgba(128,99,36,.12);box-shadow:inset 0 1px #b89036,inset 0 -1px #b89036}.ov-data-table tbody tr[data-is-pinned="true"] td:first-child{box-shadow:inset 1px 0 #b89036,inset 0 1px #b89036,inset 0 -1px #b89036}.ov-data-table tbody tr[data-is-pinned="true"] td:last-child{box-shadow:inset -1px 0 #b89036,inset 0 1px #b89036,inset 0 -1px #b89036}.ov-data-table tbody tr[data-is-pinned="true"]:hover td{background:rgba(128,99,36,.2)}
.ov-data-table td strong,.ov-data-table td small { display:block; }
.ov-data-table td strong { font-weight:500; }
.ov-data-table td small { margin-top:3px;color:#777;font-size:9px; }
.ov-data-table--compact th,.ov-data-table--compact td { padding-block:9px; }
.ov-data-table--wide { min-width:1180px; }
.ov-configurable-table { position:relative;display:grid;gap:10px;min-width:0; }
.ov-configurable-table__toolbar { display:flex;min-height:36px;align-items:center;justify-content:flex-end;gap:10px; }
.ov-configurable-table__summary { margin-right:auto;color:var(--ov-muted);font-size:10px; }
.ov-table-settings__toggle { display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--ov-border);border-radius:9px;background:var(--ov-surface-raised);color:var(--ov-muted);cursor:pointer; }
.ov-table-settings__toggle:hover,.ov-table-settings__toggle:focus-visible,.ov-configurable-table.is-settings-open .ov-table-settings__toggle { border-color:var(--ov-border-strong);background:var(--ov-active);color:var(--ov-accent);outline:0; }
.ov-table-settings__toggle .ov-icon { width:16px;height:16px; }
.ov-table-settings { position:absolute;z-index:25;top:44px;right:0;display:grid;width:min(330px,calc(100vw - 32px));gap:16px;padding:16px;border:1px solid var(--ov-border-strong);border-radius:var(--ov-radius-md);background:var(--ov-surface);box-shadow:0 18px 55px rgba(0,0,0,.48); }
.ov-table-settings[hidden] { display:none!important; }
.ov-table-settings__head { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }
.ov-table-settings__head strong,.ov-table-settings__head span { display:block; }
.ov-table-settings__head strong { color:var(--ov-text);font-size:12px;font-weight:500; }
.ov-table-settings__head span { margin-top:4px;color:var(--ov-muted);font-size:9px;line-height:1.45; }
.ov-table-settings fieldset { display:grid;gap:9px;margin:0;padding:0;border:0; }
.ov-table-settings legend { margin-bottom:8px;color:var(--ov-muted);font-size:9px;letter-spacing:.06em;text-transform:uppercase; }
.ov-table-settings__columns { display:grid;gap:7px; }
.ov-table-settings__column,.ov-table-settings__switch { display:flex;min-height:36px;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--ov-border);border-radius:8px;background:var(--ov-surface-raised);color:var(--ov-text);font-size:10px;cursor:pointer; }
.ov-table-settings__column.is-dragging { opacity:.45; }
.ov-table-settings__drag { display:grid;width:20px;height:24px;flex:0 0 20px;place-items:center;color:var(--ov-muted);cursor:grab; }
.ov-table-settings__drag .ov-icon { width:18px;height:18px;pointer-events:none; }
.ov-table-settings__view { display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--ov-border);border-radius:9px;background:var(--ov-surface-raised); }
.ov-table-settings__view button { min-height:32px;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:var(--ov-muted);font:inherit;font-size:9.5px;cursor:pointer; }
.ov-table-settings__view button.is-active { background:var(--ov-accent);color:var(--ov-accent-text); }
.ov-table-settings__column:has(input:checked) { border-color:var(--ov-border-strong); }
.ov-table-settings__column input,.ov-table-settings__switch input { accent-color:var(--ov-accent); }
.ov-table-settings__density { display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--ov-border);border-radius:9px;background:var(--ov-surface-raised); }
.ov-table-settings__density button { min-height:32px;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:var(--ov-muted);font:inherit;font-size:9.5px;cursor:pointer; }
.ov-table-settings__density button.is-active { background:var(--ov-accent);color:var(--ov-accent-text); }
.ov-table-settings__footer { display:flex;justify-content:flex-end;padding-top:2px;border-top:1px solid var(--ov-border); }
.ov-table-settings__reset { min-height:34px;padding:7px 10px;border:0;background:transparent;color:var(--ov-muted);font:inherit;font-size:9.5px;cursor:pointer; }
.ov-table-settings__reset:hover { color:var(--ov-accent); }
.ov-data-table--wrap th,.ov-data-table--wrap td { white-space:normal;overflow-wrap:anywhere; }
.ov-table-shell--cards { overflow:visible;border:0;background:transparent; }
.ov-data-table.ov-data-table--cards { display:block;min-width:0;background:transparent; }
.ov-data-table--cards thead { display:none; }
.ov-data-table--cards tbody { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px; }
.ov-data-table--cards tr { display:grid;min-width:0;align-content:start;gap:0;padding:16px;border:1px solid var(--ov-border);border-radius:var(--ov-radius-md);background:var(--ov-surface); }
.ov-data-table--cards tr[data-is-pinned="true"]{border-color:#b89036;background:rgba(128,99,36,.12);box-shadow:0 0 0 1px rgba(184,144,54,.28)}.ov-data-table--cards tr[data-is-pinned="true"] td{background:transparent;box-shadow:none}
.ov-data-table--cards td { display:grid;min-width:0;grid-template-columns:minmax(88px,.42fr) minmax(0,1fr);align-items:start;gap:12px;padding:9px 0!important;border-bottom:1px solid var(--ov-border);white-space:normal;overflow-wrap:anywhere; }
.ov-data-table--cards td::before { content:attr(data-ov-column-label);color:var(--ov-muted);font-size:9px;letter-spacing:.04em;text-transform:uppercase; }
.ov-data-table--cards td:last-child { border-bottom:0; }
.ov-table-actions { display:flex;align-items:center;justify-content:flex-end; }
.ov-table-action { display:inline-grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border:1px solid var(--ov-border-strong);border-radius:8px;background:var(--ov-surface-raised);color:var(--ov-muted);text-decoration:none;cursor:pointer; }
.ov-table-action:hover,.ov-table-action:focus-visible,.ov-table-action.is-active { border-color:var(--ov-accent);background:var(--ov-active);color:var(--ov-accent);outline:0; }
.ov-table-action .ov-icon { width:14px;height:14px; }
.ov-table-action[aria-expanded="true"] .ov-icon { transform:rotate(180deg); }
.ov-table-actions__menu { position:fixed;z-index:180;display:grid;width:max-content;min-width:190px;max-width:min(280px,calc(100vw - 16px));padding:6px;border:1px solid var(--ov-border-strong);border-radius:10px;background:var(--ov-surface);box-shadow:0 16px 44px rgba(0,0,0,.52); }
.ov-table-actions__menu[hidden] { display:none!important; }
.ov-table-actions__menu>form { display:contents; }
.ov-table-actions__item { display:flex;width:100%;min-height:36px;align-items:center;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:var(--ov-text);font:inherit;font-size:10.5px;text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer; }
.ov-table-actions__item:hover,.ov-table-actions__item:focus-visible { background:var(--ov-active);color:var(--ov-accent);outline:0; }
.ov-table-actions__item.is-active { color:var(--ov-accent); }
.ov-table-copy{display:inline-flex;max-width:100%;min-height:34px;align-items:center;gap:8px;padding:6px 9px;border:1px solid var(--ov-border);border-radius:8px;background:var(--ov-surface-raised);color:var(--ov-text);font:inherit;font-size:10.5px;text-align:left;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease}.ov-table-copy>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ov-table-copy .ov-icon{width:14px;height:14px;flex:0 0 14px;color:var(--ov-muted)}.ov-table-copy:hover,.ov-table-copy:focus-visible{border-color:var(--ov-border-strong);background:var(--ov-active);color:var(--ov-accent);outline:0}.ov-table-copy.is-copied{border-color:var(--ov-success-border);background:var(--ov-success-bg);color:var(--ov-success-text)}.ov-table-copy.is-copied .ov-icon{color:var(--ov-success-text)}.ov-table-copy.is-copy-error{border-color:#8a4545;background:#261010;color:#ffc1c1}
@media(max-width:680px){.ov-table-shell::after{position:sticky;right:0;display:block;width:44px;height:0;margin-left:auto;content:"";pointer-events:none;box-shadow:-24px 0 26px rgba(0,0,0,.62)}.ov-data-table th,.ov-data-table td{padding:11px 12px}.ov-data-table{min-width:760px}.ov-data-table--wide{min-width:1080px}}
@media(max-width:680px){.ov-table-settings{position:fixed;z-index:160;top:auto;right:9px;bottom:9px;left:9px;width:auto;max-height:calc(100vh - 18px);overflow:auto}.ov-table-settings__columns{grid-template-columns:1fr}}

/* Toolkit: reference cards for documentation, onboarding and compact feature guides. */
.ov-reference-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:24px; }
.ov-reference-card { display:grid;min-width:0;min-height:290px;align-content:start;gap:22px;padding:24px;border:1px solid transparent;border-radius:7px;background:var(--ov-active);color:var(--ov-text); }
.ov-reference-card--outlined { border-color:var(--ov-border);background:var(--ov-surface); }
.ov-reference-card__icon { display:grid;width:22px;height:22px;place-items:center;color:var(--ov-accent); }
.ov-reference-card__icon .ov-icon { width:18px;height:18px; }
.ov-reference-card__head { display:flex;min-width:0;align-items:flex-start;justify-content:space-between;gap:16px; }
.ov-reference-card__head h3 { margin:0;color:var(--ov-accent);font-size:17px;font-weight:500;line-height:1.35;letter-spacing:0; }
.ov-reference-card__meta { flex:0 0 auto;color:#8a8a8a;font-size:9px;letter-spacing:.12em;text-transform:uppercase; }
.ov-reference-card p { margin:0;color:var(--ov-text);font-size:12px;line-height:1.7; }
.ov-reference-list { display:grid;gap:14px;margin:0;padding:0;list-style:none; }
.ov-reference-list li { display:grid;grid-template-columns:12px minmax(0,1fr);gap:12px;color:var(--ov-text);font-size:12px;line-height:1.55; }
.ov-reference-list li::before { content:"";width:5px;height:5px;margin-top:8px;border-radius:50%;background:var(--ov-accent); }
.ov-reference-list code { color:var(--ov-accent);font:inherit;font-weight:500;overflow-wrap:anywhere; }
.ov-reference-list span { display:block;margin-top:5px;color:var(--ov-muted); }
.ov-reference-route { display:grid;min-width:0;gap:9px; }
.ov-reference-route__controls { display:grid;min-width:0;gap:9px; }
.ov-reference-route__control { display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px; }
.ov-reference-route__open { display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:7px;padding:8px 11px;border:1px solid var(--ov-border-strong);border-radius:8px;background:#252525;color:var(--ov-text);font-size:11px;font-weight:500;text-decoration:none;white-space:nowrap;transition:border-color .14s ease,background .14s ease,color .14s ease; }
.ov-reference-route__open:hover { border-color:#6a6a6a;background:#3a3a3a;color:var(--ov-accent); }
.ov-reference-route__open .ov-icon { width:13px;height:13px; }
.ov-reference-route__copy-field { display:flex;min-width:0;width:100%;min-height:38px;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid var(--ov-border-strong);border-radius:8px;background:var(--ov-surface-raised);color:var(--ov-accent);font:inherit;font-size:12px;font-weight:500;text-align:left;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease; }
.ov-reference-route__copy-field:hover,.ov-reference-route__copy-field.is-copied { border-color:var(--ov-border-strong);background:var(--ov-active);color:var(--ov-accent); }
.ov-reference-route__copy-field.is-copy-error { border-color:#8a4545;background:#261010;color:#ffc1c1; }
.ov-reference-route__copy-field .ov-icon { width:14px;height:14px;flex:0 0 14px;color:var(--ov-muted); }
.ov-reference-route__copy-field.is-copied .ov-icon { color:var(--ov-accent); }
.ov-reference-route__copy-value { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ov-reference-route__description { color:var(--ov-muted); }
@media(max-width:760px){.ov-reference-grid{gap:12px}.ov-reference-card{min-height:0;padding:20px}.ov-reference-card__head{align-items:flex-start}.ov-reference-list{gap:11px}.ov-reference-route__control{grid-template-columns:1fr}.ov-reference-route__open{width:100%}}

/* Toolkit: custom select backed by a native form control. */
.ov-select { position: relative; min-width: 0; }
.ov-select__native { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.ov-select__trigger { display:flex!important;width:100%;min-height:44px!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 12px!important;border:1px solid var(--ov-border-strong)!important;border-radius:var(--ov-radius-sm)!important;background:var(--ov-surface)!important;color:var(--ov-text)!important;text-align:left!important; }
.ov-select__trigger:hover { background:var(--ov-active)!important; }
.ov-select__trigger:focus-visible,.ov-select.is-open .ov-select__trigger { border-color:#777!important;box-shadow:0 0 0 3px rgba(243,243,243,.07);outline:0; }
.ov-select__value { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ov-select__arrow { width:8px;height:8px;flex:0 0 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .14s ease; }
.ov-select.is-open .ov-select__arrow { transform:translateY(2px) rotate(225deg); }
.ov-select__menu { position:absolute;z-index:85;top:calc(100% + 7px);right:0;left:0;display:none;max-height:280px;overflow-y:auto;padding:6px;border:1px solid var(--ov-border-strong);border-radius:var(--ov-radius-sm);background:var(--ov-surface-raised);box-shadow:0 20px 50px rgba(0,0,0,.55); }
.ov-select.is-open .ov-select__menu { display:grid;gap:2px; }
.ov-select__option { width:100%!important;min-height:38px!important;justify-content:flex-start!important;padding:9px 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--ov-muted)!important;text-align:left!important; }
.ov-select__option:hover,.ov-select__option:focus-visible { background:var(--ov-active)!important;color:var(--ov-accent)!important;outline:0; }
.ov-select__option.is-selected { background:var(--ov-accent)!important;color:var(--ov-accent-text)!important; }
.ov-select__option:disabled { opacity:.45;cursor:not-allowed; }

/* Reusable contextual training for application pages. */
.ov-page-tour-backdrop { position:fixed;z-index:90;inset:0;background:rgba(0,0,0,.74);backdrop-filter:blur(2px); }
.ov-page-tour-card { position:fixed;z-index:92;right:26px;bottom:26px;width:min(430px,calc(100vw - 32px));padding:20px;border:1px solid var(--ov-border-strong);border-radius:var(--ov-radius-lg);background:var(--ov-surface-raised);color:var(--ov-text);box-shadow:0 24px 70px rgba(0,0,0,.58); }
.ov-page-tour-card__progress { color:var(--ov-muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase; }
.ov-page-tour-card h2 { margin:9px 0;color:var(--ov-accent);font-size:21px;font-weight:500; }
.ov-page-tour-card p { min-height:58px;margin:0;color:var(--ov-muted);font-size:13px;line-height:1.6;white-space:pre-line; }
.ov-page-tour-card__actions { display:flex;align-items:center;gap:8px;margin-top:18px; }
.ov-page-tour-card__actions button { min-height:36px;padding:7px 13px;border:1px solid var(--ov-border-strong);border-radius:999px;background:var(--ov-active);color:var(--ov-text); }
.ov-page-tour-card__actions button:last-child { border-color:var(--ov-accent);background:var(--ov-accent);color:var(--ov-accent-text); }
.ov-page-tour-card__spacer { flex:1; }
.ov-page-tour-highlight { position:relative;z-index:91!important;border-radius:var(--ov-radius-md);box-shadow:0 0 0 3px var(--ov-accent),0 18px 55px rgba(0,0,0,.52)!important; }
body.ov-page-tour-open { overflow:hidden; }

@media (max-width:680px) {
  .ov-page-tour-card { right:16px;bottom:16px;left:16px;width:auto; }
}

/* Progressive enhancement for navigation between server-rendered pages. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) { animation: ov-page-out 90ms ease both; }
::view-transition-new(root) { animation: ov-page-in 170ms ease both; }

@keyframes ov-page-out { to { opacity: .7; } }
@keyframes ov-page-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

@media (max-width: 980px) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  .ov-control {
    font-size: 16px;
  }

  body.ov-with-sidebar .app-frame {
    display: block;
  }

  body.ov-with-sidebar .app-sidebar {
    display: none;
  }

  body.ov-with-sidebar.ov-mobile-menu-open .app-sidebar {
    position: sticky;
    top: var(--ov-header-height);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    gap: 8px;
    padding: 10px 14px 12px;
    overflow-x: hidden;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--ov-border);
    background: var(--ov-bg);
    box-shadow: none;
  }

  .app-sidebar__footer {
    display: contents;
  }

  .app-sidebar__section,
  .app-sidebar__label-row,
  .app-sidebar__utility-actions,
  .app-sidebar__notification-row {
    display: contents;
  }

  .app-sidebar__section + .app-sidebar__section {
    margin: 0;
    padding: 0;
    border-top: 0;
    border-left: 0;
  }

  .app-sidebar__link,
  .app-sidebar__label-action,
  .sidebar-notification-link,
  .sidebar-time-link,
  .app-sidebar__footer .portal-tour-launcher {
    grid-template-columns: 17px;
    display: grid;
    justify-content: center;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    gap: 0;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
  }

  body.ov-with-sidebar.ov-mobile-menu-open .app-sidebar__label,
  body.ov-with-sidebar.ov-mobile-menu-open .app-sidebar__link > span:last-child,
  body.ov-with-sidebar.ov-mobile-menu-open .sidebar-notification-link > span:not(.sidebar-notification-count),
  body.ov-with-sidebar.ov-mobile-menu-open .sidebar-time-link > span,
  body.ov-with-sidebar.ov-mobile-menu-open .app-sidebar .sidebar-profile__identity,
  body.ov-with-sidebar.ov-mobile-menu-open .app-sidebar .sidebar-profile__chevron,
  body.ov-with-sidebar.ov-mobile-menu-open .app-sidebar__footer .portal-tour-launcher > span,
  body.ov-with-sidebar.ov-mobile-menu-open .sidebar-notification-count {
    display: none !important;
  }

  body.ov-with-sidebar.ov-mobile-menu-open .app-sidebar .sidebar-profile {
    display: none !important;
  }

  body.ov-with-sidebar.ov-mobile-menu-open .sidebar-theme-toggle {
    display: none !important;
  }

  .site-shell {
    padding: 24px 14px 40px;
  }
}
