@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
    --sidebar-width: 282px;
    --bg: #f4f7fb;
    --bg-soft: #edf3fb;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-solid: #ffffff;
    --panel-muted: #f8fbff;
    --ink: #1d2636;
    --muted: #6b7485;
    --muted-soft: #97a3b6;
    --line: #e5ebf3;
    --line-strong: #d7e2ef;
    --primary: #04a9f5;
    --primary-deep: #109cf1;
    --primary-soft: rgba(4, 169, 245, 0.12);
    --success: #2dbf7c;
    --warning: #ffb547;
    --danger: #f15a6c;
    --shadow-lg: 0 16px 38px rgba(16, 38, 68, 0.055);
    --shadow-md: 0 8px 22px rgba(16, 38, 68, 0.045);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100svh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 58%, #eef4fa 100%);
}

a {
    color: inherit;
}

.shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns 180ms ease;
}

.sidebar {
    width: var(--sidebar-width);
    min-width: 0;
    position: sticky;
    top: 0;
    height: 100svh;
    padding: 24px 18px;
    border-right: 1px solid rgba(215, 226, 239, 0.9);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: opacity 160ms ease, padding 180ms ease, border-color 180ms ease;
}

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

.app-body.sidebar-collapsed .sidebar {
    padding: 0;
    border-right-color: transparent;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.app-body.sidebar-collapsed .main {
    max-width: none;
}

.sidebar-inner {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
}

.sidebar-main {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
    scrollbar-width: thin;
}

.brand {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 11px;
    align-items: center;
    text-decoration: none;
}

.brand-stack {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background:
        linear-gradient(145deg, #1de9b6, #04a9f5 52%, #1565c0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.brand-title {
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ink);
}

.brand-copy {
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}

.nav {
    display: grid;
    gap: 8px;
    align-content: start;
}

.sidebar-primary-block,
.sidebar-system-block {
    display: grid;
    gap: 10px;
}

.nav a,
.nav-group > summary {
    display: grid;
    gap: 4px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid transparent;
    color: var(--muted);
    transition: 160ms ease;
}

.nav a:hover,
.nav-group > summary:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
}

.nav a.active,
.nav-group > summary.active {
    border-color: rgba(4, 169, 245, 0.18);
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.12), rgba(4, 169, 245, 0.06));
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-group {
    display: grid;
    gap: 7px;
}

.nav-group > summary {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.nav-group > summary::-webkit-details-marker {
    display: none;
}

.nav-group > summary .nav-title,
.nav-group > summary .nav-meta {
    grid-column: 1;
}

.nav-group > summary::after {
    content: "›";
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--muted-soft);
    font-size: 18px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 160ms ease, color 160ms ease;
}

.nav-group[open] > summary::after {
    color: var(--primary-deep);
    transform: rotate(90deg);
}

.nav-sublist {
    display: grid;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid var(--line);
    margin-left: 12px;
}

.nav-sublist a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
}

.nav-title {
    font-size: 13px;
    font-weight: 600;
}

.nav-meta {
    font-size: 11px;
    color: inherit;
    opacity: 0.82;
}

.sidebar-section-label {
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted-soft);
}

.nav-compact {
    gap: 8px;
}

.sidebar-meta {
    display: grid;
    gap: 12px;
    padding-bottom: 56px;
}

.user-card {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
}

.user-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted-soft);
}

.user-value {
    margin-top: 8px;
    word-break: break-word;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.sidebar form {
    margin: 0;
}

.sidebar-meta .btn {
    width: 100%;
}

.main {
    min-width: 0;
    width: 100%;
    max-width: 1420px;
    margin-inline: auto;
    padding: 24px 32px 40px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

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

.topbar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted-soft);
}

.topbar-copy {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.ghost-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.ghost-pill:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

button.ghost-pill {
    cursor: pointer;
    font: inherit;
}

.sidebar-toggle {
    color: var(--muted-soft);
}

.sidebar-edge-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-soft);
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease, background 160ms ease;
}

.sidebar-edge-toggle:hover,
.sidebar-edge-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink);
    outline: none;
}

.sidebar-toggle-icon {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.app-body.sidebar-collapsed .sidebar-toggle-icon {
    transform: rotate(225deg);
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(4, 169, 245, 0.16);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
}

.page-header {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.page-header-heading {
    align-items: flex-start;
}

.report-header {
    margin-bottom: 22px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(4, 169, 245, 0.1);
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: 0;
    max-width: min(36ch, 100%);
    overflow-wrap: anywhere;
}

.page-title-wide {
    max-width: min(36ch, 100%);
}

.subhead {
    max-width: 64ch;
    color: var(--muted);
    line-height: 1.55;
    font-size: 15px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.layout-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.grid > *,
.layout-main > *,
.field-grid > * {
    min-width: 0;
}

.stack {
    display: grid;
    gap: 16px;
}

.sticky-stack {
    position: sticky;
    top: 24px;
}

.panel {
    min-width: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: var(--panel);
    box-shadow: var(--shadow-lg);
    padding: 18px;
}

.panel-muted {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.panel-subtle {
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.76);
}

.panel h2,
.panel h3 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
}

.panel-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.panel-head > * {
    min-width: 0;
}

.panel-copy {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.run-active-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid #7fc8ec;
    border-radius: var(--radius-sm);
    background: #dff2fc;
    color: #09628f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.run-active-note.is-success {
    border-color: #8fd6b2;
    background: #e8f8ef;
    color: #17623c;
}

.heading-with-help,
.label-row,
.scenario-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.label-row {
    margin-bottom: 8px;
}

.label-row label {
    margin-bottom: 0;
}

.heading-with-help > :first-child,
.label-row > :first-child,
.scenario-card-title-row > :first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.inline-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(151, 163, 182, 0.14);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    flex: 0 0 auto;
    contain: layout style;
    isolation: isolate;
}

.inline-help::before,
.inline-help::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

.inline-help::before {
    content: "";
    bottom: calc(100% + 6px);
    transform: translate(-50%, 6px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(24, 34, 50, 0.94);
}

.inline-help::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 12px);
    transform: translate(-50%, 6px);
    width: min(280px, calc(100vw - 48px));
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(24, 34, 50, 0.94);
    color: #f7fbff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 12px 24px rgba(16, 38, 68, 0.18);
    white-space: normal;
    overflow-wrap: anywhere;
    z-index: 20;
}

.inline-help:hover::before,
.inline-help:hover::after,
.inline-help:focus-visible::before,
.inline-help:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.inline-help:focus-visible {
    outline: 2px solid rgba(4, 169, 245, 0.28);
    outline-offset: 2px;
}

.report-overview {
    display: grid;
    gap: 18px;
}

.report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

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

.report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.report-kicker {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.report-hero h2 {
    margin-top: 10px;
    font-size: 32px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.report-hero-copy {
    margin: 12px 0 0;
    max-width: 60ch;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
}

.report-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.report-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    max-width: min(100%, 520px);
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    overflow-wrap: break-word;
}

.report-chip strong {
    flex: 0 0 auto;
    min-width: 0;
    color: var(--ink);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.report-chip > :not(strong):not(input):not(.help-tip) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-account-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.compact-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
}

.compact-account-main-link {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.compact-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.compact-account-actions .status {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.compact-account-row strong,
.compact-account-row small,
.compact-account-main-link strong,
.compact-account-main-link small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-account-row strong {
    font-size: 13px;
    line-height: 1.3;
}

.compact-account-row small,
.compact-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.compact-note {
    margin-top: 10px;
}

.newclient-provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.newclient-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
    gap: 18px;
    align-items: stretch;
}

.newclient-home-start {
    display: grid;
    gap: 16px;
    align-content: start;
    border-color: rgba(4, 169, 245, 0.2);
    background: linear-gradient(180deg, rgba(236, 249, 255, 0.82), rgba(255, 255, 255, 0.94));
}

.newclient-home-start h1 {
    font-size: 26px;
}

.newclient-home-start p {
    max-width: 74ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.newclient-kicker {
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.newclient-home-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.newclient-home-title-row h1 {
    margin: 0;
}

.newclient-quick-start {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(160px, 0.35fr) auto;
    gap: 12px;
    align-items: end;
    max-width: 900px;
}

.newclient-quick-start label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.newclient-field-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.newclient-field-label > span:first-child {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.newclient-field-label .help-tip,
.newclient-metric-label .help-tip,
.newclient-card-help {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 11px;
}

.newclient-home-note,
.newclient-next-action {
    padding: 12px 14px;
    border: 1px solid rgba(4, 169, 245, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(4, 169, 245, 0.07);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.newclient-home-status {
    display: grid;
    gap: 14px;
    align-content: start;
}

.newclient-provider-strip {
    display: grid;
    gap: 10px;
}

.newclient-provider-pill {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.86);
}

.newclient-provider-pill strong {
    min-width: 0;
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.newclient-provider-pill span {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}

.newclient-provider-pill.is-ready {
    border-color: rgba(45, 191, 124, 0.24);
    background: rgba(45, 191, 124, 0.08);
}

.newclient-provider-pill.is-bad {
    border-color: rgba(241, 90, 108, 0.24);
    background: rgba(255, 248, 250, 0.92);
}

.newclient-next-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.newclient-next-action strong {
    color: var(--ink);
}

.newclient-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.newclient-metric-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.newclient-metrics-grid .metric {
    padding: 18px;
}

.newclient-metrics-grid .metric-value {
    margin-top: 14px;
}

.newclient-workflow-panel,
.newclient-runs-panel,
.newclient-system-details {
    margin-top: 22px;
}

.newclient-workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.newclient-workflow-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-width: 0;
    min-height: 86px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
}

.newclient-workflow-card.is-long {
    border-color: rgba(255, 181, 71, 0.32);
    background: rgba(255, 248, 235, 0.82);
}

.newclient-workflow-card-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.newclient-workflow-card-head strong {
    min-width: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.newclient-workflow-card-head span {
    flex: 0 0 auto;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
}

.newclient-workflow-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.newclient-card-help {
    justify-self: start;
    align-self: end;
}

.newclient-run-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.newclient-run-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
}

.newclient-run-card.is-active {
    border-color: rgba(255, 181, 71, 0.34);
    background: linear-gradient(180deg, rgba(255, 248, 235, 0.78), rgba(255, 255, 255, 0.9));
}

.newclient-run-card-head,
.newclient-run-stage,
.newclient-run-footer,
.newclient-run-domains {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

.newclient-run-title {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    color: var(--ink);
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.newclient-run-title:hover {
    color: var(--primary-deep);
}

.newclient-run-subtitle,
.newclient-run-note,
.newclient-run-footer span:not(.help-tip),
.newclient-run-domains span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-run-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(229, 235, 243, 0.9);
}

.newclient-run-progress span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.newclient-run-stage {
    align-items: center;
}

.newclient-run-stage strong,
.newclient-run-footer strong {
    min-width: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.newclient-run-stage > span:not(.help-tip) {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: rgba(151, 163, 182, 0.12);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.newclient-run-facts,
.newclient-run-evidence {
    display: grid;
    gap: 8px;
}

.newclient-run-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.newclient-run-evidence {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.newclient-run-facts div,
.newclient-run-evidence div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.74);
}

.newclient-run-facts span,
.newclient-run-evidence span {
    display: block;
    color: var(--muted-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.newclient-run-facts strong,
.newclient-run-evidence strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.newclient-run-evidence strong {
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.newclient-run-domains {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 2px;
}

.newclient-run-domains strong {
    min-width: 0;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.newclient-run-footer {
    align-items: center;
    padding-top: 2px;
    border-top: 1px solid var(--line);
}

.newclient-run-footer > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.newclient-run-footer .help-tip,
.newclient-run-stage .help-tip {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.newclient-admin-actions {
    margin-top: 14px;
}

.newclient-hero-panel {
    border-color: rgba(4, 169, 245, 0.18);
    background: linear-gradient(180deg, rgba(223, 244, 255, 0.58), rgba(255, 255, 255, 0.94));
}

.newclient-provider-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.newclient-autofill-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.75fr) minmax(220px, 0.75fr) auto;
    gap: 12px;
    align-items: end;
}

.newclient-autofill-row label {
    margin-bottom: 0;
}

.newclient-autofill-actions {
    align-self: end;
    justify-content: flex-start;
}

.newclient-prefill-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.newclient-create-form {
    scroll-margin-top: 20px;
}

.newclient-assumption-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(4, 169, 245, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(4, 169, 245, 0.06);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.newclient-assumption-note strong {
    color: var(--ink);
}

.newclient-disclosure {
    padding: 0;
    overflow: hidden;
}

.newclient-disclosure > summary {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    cursor: pointer;
    list-style: none;
}

.newclient-disclosure > summary::-webkit-details-marker {
    display: none;
}

.newclient-disclosure > summary > span:not(.help-tip) {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.newclient-disclosure > summary strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.newclient-disclosure > summary em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.45;
}

.newclient-disclosure > summary::after {
    content: "Показать";
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-start;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.newclient-disclosure[open] > summary::after {
    content: "Скрыть";
}

.newclient-disclosure-body {
    padding: 0 18px 18px;
}

.newclient-control-box {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(248, 251, 255, 0.7);
}

.newclient-checkbox-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.newclient-fixed-setting {
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 12px 14px;
    border: 1px dashed rgba(115, 132, 153, 0.42);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.72);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-fixed-setting .help-tip,
.newclient-disclosure > summary .help-tip,
.newclient-assumption-note .help-tip {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.newclient-fixed-setting strong {
    color: var(--ink);
    font-size: 14px;
}

.newclient-technical-details summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.newclient-progress-panel {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(4, 169, 245, 0.2);
    border-radius: var(--radius-md);
    background: rgba(4, 169, 245, 0.06);
}

.newclient-detail-hero {
    display: grid;
    gap: 18px;
    border-color: rgba(4, 169, 245, 0.18);
}

.newclient-detail-hero-main,
.newclient-detail-progress-head,
.newclient-detail-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}

.newclient-detail-hero-main h1 {
    margin-top: 8px;
    font-size: 34px;
}

.newclient-detail-url {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.newclient-detail-progress {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(4, 169, 245, 0.18);
    background: rgba(4, 169, 245, 0.06);
}

.newclient-detail-progress-head div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.newclient-detail-progress-head strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
}

.newclient-detail-progress-head span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-detail-progress-head em {
    flex: 0 0 auto;
    color: var(--primary-deep);
    font-size: 22px;
    font-style: normal;
    font-weight: 800;
}

.newclient-detail-score-grid,
.newclient-detail-grid,
.newclient-evidence-grid,
.newclient-review-grid,
.newclient-specialist-trace,
.newclient-business-files {
    display: grid;
    gap: 12px;
}

.newclient-detail-score-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.newclient-detail-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    margin-top: 18px;
}

.newclient-detail-score,
.newclient-evidence-grid div,
.newclient-decision-list div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.84);
}

.newclient-detail-score.is-primary {
    border-color: rgba(4, 169, 245, 0.2);
    background: rgba(4, 169, 245, 0.08);
}

.newclient-detail-score span,
.newclient-evidence-grid span,
.newclient-decision-list span {
    display: block;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.newclient-detail-score strong,
.newclient-evidence-grid strong,
.newclient-decision-list strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.newclient-decision-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.newclient-passport-editor {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.newclient-passport-evidence {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
}

.newclient-passport-evidence-title,
.newclient-passport-section-title,
.newclient-passport-submit-row,
.newclient-review-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
}

.newclient-passport-evidence-title strong,
.newclient-passport-section-title strong {
    color: var(--ink);
    font-size: 14px;
}

.newclient-passport-evidence-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.newclient-passport-evidence-chip {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.newclient-passport-evidence-chip span {
    display: block;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.newclient-passport-evidence-chip strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.newclient-passport-evidence-chip em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.newclient-inline-review {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 181, 71, 0.28);
    border-radius: 8px;
    background: rgba(255, 248, 235, 0.56);
}

.newclient-inline-review .newclient-review-grid {
    margin-top: 0;
}

.newclient-inline-review .newclient-review-card {
    background: #fff;
}

.newclient-passport-edit-details,
.newclient-compact-details {
    display: block;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.newclient-passport-edit-details.is-critical-review {
    border-color: rgba(4, 169, 245, 0.38);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.94), rgba(255, 255, 255, 0.96));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.newclient-passport-edit-details.is-critical-review[open] {
    border-color: rgba(4, 169, 245, 0.52);
}

.newclient-passport-edit-details.is-critical-review > summary {
    min-height: 64px;
    padding: 16px;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.56);
}

.newclient-passport-edit-details.is-critical-review[open] > summary {
    border-bottom: 1px solid rgba(4, 169, 245, 0.18);
}

.newclient-passport-edit-details.is-critical-review > summary strong {
    font-size: 16px;
}

.newclient-passport-review-badge {
    flex: 0 0 auto;
    width: max-content;
    padding: 6px 10px;
    border: 1px solid rgba(4, 169, 245, 0.24);
    border-radius: 999px;
    background: rgba(4, 169, 245, 0.08);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.newclient-passport-edit-details.is-critical-review .newclient-passport-review-form {
    padding-top: 2px;
}

.newclient-passport-edit-details:not([open]) > :not(summary),
.newclient-compact-details:not([open]) > :not(summary) {
    display: none;
}

.newclient-passport-edit-details > summary,
.newclient-compact-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.newclient-passport-edit-details > summary::-webkit-details-marker,
.newclient-compact-details > summary::-webkit-details-marker {
    display: none;
}

.newclient-passport-edit-details > summary::after,
.newclient-compact-details > summary::after {
    content: "Открыть";
    flex: 0 0 auto;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.newclient-passport-edit-details[open] > summary::after,
.newclient-compact-details[open] > summary::after {
    content: "Скрыть";
}

.newclient-passport-edit-details > summary span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.newclient-passport-edit-details > summary em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.newclient-passport-edit-details .newclient-passport-review-form,
.newclient-compact-details .table-wrap,
.newclient-compact-details .newclient-technical-details {
    margin: 0 14px 14px;
}

.newclient-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.newclient-inline-action-form {
    margin: 0;
}

.newclient-mini-action {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(4, 169, 245, 0.28);
    border-radius: 8px;
    background: rgba(4, 169, 245, 0.08);
    color: var(--blue);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.newclient-mini-action:hover {
    background: rgba(4, 169, 245, 0.14);
}

.newclient-mini-action.is-danger {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(254, 226, 226, 0.68);
    color: #b91c1c;
}

.newclient-competitor-candidates {
    display: grid;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 12px;
    border: 1px solid rgba(4, 169, 245, 0.16);
    border-radius: 8px;
    background: rgba(240, 249, 255, 0.58);
}

.newclient-competitor-candidates-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 12px;
}

.newclient-competitor-candidates-head strong {
    color: var(--ink);
    font-size: 14px;
}

.newclient-competitor-candidates-head span {
    color: var(--muted);
    font-size: 12px;
}

.newclient-passport-review-form,
.newclient-passport-form-section {
    display: grid;
    gap: 16px;
}

.newclient-passport-form-section {
    padding-top: 2px;
}

.newclient-passport-form-grid,
.newclient-passport-text-grid {
    display: grid;
    gap: 12px;
}

.newclient-passport-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.newclient-passport-text-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.newclient-form-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.newclient-form-field.is-wide {
    grid-column: span 2;
}

.newclient-form-field > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.newclient-form-field input,
.newclient-form-field select,
.newclient-form-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
}

.newclient-form-field input,
.newclient-form-field select {
    min-height: 42px;
    padding: 9px 10px;
}

.newclient-form-field textarea {
    min-height: 96px;
    padding: 10px;
    resize: vertical;
}

.newclient-seed-cleanup-notice {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid rgba(4, 169, 245, 0.24);
    border-radius: 8px;
    background: rgba(4, 169, 245, 0.07);
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
}

.newclient-seed-cleanup-notice[hidden] {
    display: none;
}

.newclient-seed-cleanup-notice strong {
    color: var(--ink);
    font-size: 12px;
}

.newclient-mini-action {
    justify-self: start;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(4, 169, 245, 0.24);
    border-radius: 7px;
    background: #fff;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.newclient-mini-action:hover {
    border-color: rgba(4, 169, 245, 0.42);
    background: rgba(4, 169, 245, 0.08);
}

.newclient-form-field input:focus,
.newclient-form-field select:focus,
.newclient-form-field textarea:focus {
    outline: 2px solid rgba(4, 169, 245, 0.24);
    border-color: rgba(4, 169, 245, 0.48);
}

.newclient-passport-submit-row {
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 4px;
}

.newclient-review-confirm {
    min-height: 36px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.newclient-review-confirm input {
    width: 16px;
    height: 16px;
}

.newclient-review-meta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.newclient-evidence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.newclient-season-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 181, 71, 0.26);
    background: rgba(255, 248, 235, 0.76);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-season-note strong {
    color: var(--ink);
}

.newclient-review-panel,
.newclient-flow-panel,
.newclient-pipeline-panel,
.newclient-trace-summary-panel {
    margin-top: 18px;
}

.newclient-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.newclient-pipeline-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
}

.newclient-pipeline-card.is-ready {
    border-color: rgba(22, 163, 74, 0.34);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.8), #fff 42%);
}

.newclient-pipeline-card.is-active {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.85), #fff 46%);
}

.newclient-pipeline-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.newclient-pipeline-card-head strong {
    font-size: 15px;
    line-height: 1.25;
    color: var(--text);
}

.newclient-pipeline-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-pipeline-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.newclient-pipeline-facts div {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 9px;
    min-width: 0;
    background: rgba(248, 250, 252, 0.72);
}

.newclient-pipeline-facts span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.newclient-pipeline-facts strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.newclient-pipeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.newclient-pipeline-actions form {
    margin: 0;
}

.newclient-pipeline-grid.is-compact .newclient-pipeline-card {
    min-height: 220px;
}

.newclient-stage-note {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px dashed rgba(148, 163, 184, 0.42);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.newclient-pipeline-panel.is-quiet {
    background: rgba(248, 250, 252, 0.7);
}

.newclient-pipeline-panel-compact {
    padding: 14px;
    margin-top: 12px;
}

.newclient-pipeline-panel-compact .newclient-pipeline-steps {
    margin-top: 0;
}

.newclient-pipeline-panel-compact .newclient-pipeline-step {
    padding: 10px;
}

.newclient-pipeline-panel-compact .newclient-pipeline-actions.is-quiet {
    margin-top: 10px;
}

.newclient-pipeline-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.newclient-pipeline-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "num title" "num status";
    gap: 2px 10px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #fff;
}

.newclient-pipeline-step span {
    grid-area: num;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.newclient-pipeline-step strong {
    grid-area: title;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.2;
}

.newclient-pipeline-step em {
    grid-area: status;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.newclient-pipeline-step.is-ready span {
    background: rgba(22, 163, 74, 0.14);
    color: #15803d;
}

.newclient-pipeline-step.is-active span {
    background: rgba(4, 169, 245, 0.14);
    color: var(--primary-deep);
}

.newclient-pipeline-actions.is-quiet {
    margin-top: 12px;
}

.newclient-compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 14px 12px;
}

.newclient-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.newclient-review-card {
    min-width: 0;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 181, 71, 0.28);
    background: rgba(255, 248, 235, 0.72);
}

.newclient-review-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.newclient-review-card-head strong {
    min-width: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.newclient-review-card-head span {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 181, 71, 0.18);
    color: #8a4f00;
    font-size: 11px;
    font-weight: 800;
}

.newclient-review-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

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

.newclient-step-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.newclient-step-row.is-long {
    border-color: rgba(255, 181, 71, 0.28);
    background: rgba(255, 248, 235, 0.64);
}

.newclient-step-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.newclient-step-main strong {
    color: var(--ink);
    font-size: 14px;
}

.newclient-step-main span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.newclient-step-side {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.newclient-step-side em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

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

.newclient-specialist-trace-card {
    display: grid;
    gap: 11px;
    min-width: 0;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.newclient-specialist-trace-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.newclient-specialist-trace-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(4, 169, 245, 0.24);
    background: rgba(4, 169, 245, 0.1);
    color: #09628f;
    font-size: 12px;
    font-weight: 800;
}

.newclient-specialist-trace-head strong,
.newclient-specialist-trace-head small,
.newclient-specialist-io span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.newclient-specialist-trace-head strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.3;
}

.newclient-specialist-trace-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.newclient-specialist-trace-head em {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    background: rgba(45, 191, 124, 0.1);
    color: #087247;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.newclient-specialist-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.newclient-specialist-metrics span {
    display: inline-flex;
    gap: 6px;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.82);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.newclient-specialist-metrics strong {
    color: var(--ink);
}

.newclient-specialist-io {
    display: grid;
    gap: 8px;
}

.newclient-specialist-io div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.72);
}

.newclient-specialist-io strong {
    color: var(--ink);
    font-size: 12px;
}

.newclient-specialist-io span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-domain-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.newclient-domain-strip strong {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.82);
    color: var(--ink);
    font-size: 13px;
}

.newclient-clean-table {
    margin-top: 8px;
}

.newclient-business-files {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.newclient-business-files a {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    color: inherit;
    text-decoration: none;
}

.newclient-business-files a:hover {
    border-color: rgba(4, 169, 245, 0.22);
    background: rgba(4, 169, 245, 0.06);
}

.newclient-business-files strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.newclient-business-files span {
    color: var(--muted);
    font-size: 12px;
}

.newclient-artifact-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.newclient-artifact-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.newclient-artifact-card-head > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.newclient-artifact-card-head .btn {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
}

.newclient-artifact-card p,
.newclient-artifact-action,
.newclient-artifact-preview-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-artifact-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.newclient-artifact-facts span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.88);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.newclient-artifact-preview {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
    overflow: hidden;
}

.newclient-artifact-preview > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 9px 11px;
    cursor: pointer;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.newclient-artifact-preview > summary::-webkit-details-marker {
    display: none;
}

.newclient-artifact-preview > summary::after {
    content: "Открыть";
    color: var(--muted);
    font-size: 12px;
}

.newclient-artifact-preview[open] > summary::after {
    content: "Скрыть";
}

.newclient-artifact-preview-body {
    display: grid;
    gap: 10px;
    padding: 0 11px 11px;
}

.newclient-artifact-preview-table {
    margin: 0;
    max-height: 240px;
    overflow: auto;
}

.newclient-artifact-preview-table table {
    min-width: 520px;
}

.newclient-artifact-preview-table th,
.newclient-artifact-preview-table td {
    font-size: 12px;
    line-height: 1.35;
    vertical-align: top;
}

.newclient-artifact-action {
    padding-top: 2px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.newclient-technical-dump {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.newclient-technical-dump > summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    cursor: pointer;
    list-style: none;
}

.newclient-technical-dump > summary::-webkit-details-marker {
    display: none;
}

.newclient-technical-dump > summary span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.newclient-technical-dump > summary strong {
    color: var(--ink);
    font-size: 18px;
}

.newclient-technical-dump > summary em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
}

.newclient-technical-dump > summary::after {
    content: "Показать";
    flex: 0 0 auto;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.newclient-technical-dump[open] > summary::after {
    content: "Скрыть";
}

.newclient-technical-dump-body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.newclient-progress-head,
.newclient-progress-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.newclient-progress-head div {
    display: grid;
    gap: 4px;
    min-width: min(100%, 420px);
}

.newclient-progress-head strong {
    color: var(--ink);
    font-size: 16px;
}

.newclient-progress-head span,
.newclient-progress-foot span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.newclient-progress-head em {
    color: var(--primary-deep);
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
}

.newclient-progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(20, 34, 55, 0.09);
}

.newclient-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #04a9f5, #2dbf7c);
    transition: width 180ms ease;
}

.newclient-stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.newclient-stage-card {
    min-width: 0;
    min-height: 112px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    align-content: start;
    gap: 10px;
}

.newclient-stage-long {
    border-color: rgba(245, 158, 11, 0.32);
    background: linear-gradient(180deg, rgba(255, 247, 214, 0.58), rgba(255, 255, 255, 0.86));
}

.newclient-stage-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.newclient-stage-top strong,
.newclient-stage-card small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.newclient-stage-card small {
    color: var(--muted);
    line-height: 1.45;
}

.newclient-stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.newclient-stage-meta span {
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(20, 34, 55, 0.06);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.newclient-live-trace {
    display: grid;
    gap: 14px;
}

.newclient-trace-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(215, 226, 239, 0.95);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(16, 38, 68, 0.035);
}

.newclient-trace-head,
.newclient-trace-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.newclient-trace-head {
    justify-content: space-between;
}

.newclient-trace-title {
    flex: 1 1 auto;
}

.newclient-trace-title strong,
.newclient-trace-title small,
.newclient-trace-did,
.newclient-trace-list span,
.newclient-trace-quality span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.newclient-trace-title strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.newclient-trace-title small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.newclient-trace-index {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(4, 169, 245, 0.24);
    background: rgba(4, 169, 245, 0.11);
    color: #09628f;
    font-size: 12px;
    font-weight: 800;
}

.newclient-trace-did {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.newclient-trace-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.newclient-trace-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(229, 235, 243, 0.95);
    background: rgba(248, 251, 255, 0.9);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.newclient-trace-metrics strong {
    color: var(--ink);
    font-weight: 700;
}

.newclient-trace-metrics em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

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

.newclient-trace-grid h3 {
    margin: 0 0 8px;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.newclient-trace-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.newclient-trace-list li {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(229, 235, 243, 0.82);
    background: rgba(250, 252, 255, 0.7);
}

.newclient-trace-list strong {
    color: var(--ink);
    font-size: 12px;
    line-height: 1.3;
}

.newclient-trace-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-trace-quality {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(45, 191, 124, 0.22);
    background: rgba(45, 191, 124, 0.08);
}

.newclient-trace-quality strong {
    color: #087247;
    font-size: 13px;
}

.newclient-trace-quality span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.newclient-trace-raw {
    min-width: 0;
}

.newclient-trace-raw summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.newclient-trace-raw .log-box {
    margin-top: 10px;
    max-height: 360px;
}

.newclient-trace-raw-all {
    margin-top: 14px;
}

.semantic-run-hero,
.semantic-create-hero {
    border-color: rgba(4, 169, 245, 0.18);
}

.semantic-run-actions,
.semantic-create-footer .actions {
    margin-top: 16px;
    align-items: center;
}

.semantic-run-actions form {
    margin: 0;
}

.semantic-danger-action {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--radius-md);
    background: rgba(255, 247, 214, 0.48);
}

.semantic-danger-action summary,
.semantic-technical-artifacts summary {
    cursor: pointer;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.semantic-artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.semantic-artifact-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    min-height: 132px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    color: inherit;
    text-decoration: none;
}

.semantic-artifact-card:hover {
    border-color: rgba(4, 169, 245, 0.32);
    box-shadow: var(--shadow-md);
}

.semantic-artifact-main {
    border-color: rgba(45, 191, 124, 0.30);
    background: linear-gradient(180deg, rgba(235, 255, 246, 0.88), rgba(255, 255, 255, 0.92));
}

.semantic-artifact-card strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.semantic-artifact-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.semantic-artifact-card em {
    align-self: end;
    color: var(--muted-soft);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
}

.semantic-technical-artifacts > summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
}

.semantic-technical-artifacts > summary::-webkit-details-marker {
    display: none;
}

.semantic-technical-artifacts > summary span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.semantic-technical-artifacts > summary em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
}

.semantic-create-form {
    margin-top: 0;
}

.chart-box {
    width: 100%;
    height: 300px;
}

.chart-box-empty {
    height: 220px;
}

.report-actions {
    margin-bottom: 18px;
}

.hero-callout {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.hero-callout-positive {
    border-color: rgba(45, 191, 124, 0.18);
    background: linear-gradient(180deg, rgba(45, 191, 124, 0.08), rgba(255, 255, 255, 0.9));
}

.hero-callout-warning {
    border-color: rgba(241, 90, 108, 0.18);
    background: linear-gradient(180deg, rgba(241, 90, 108, 0.08), rgba(255, 255, 255, 0.9));
}

.hero-callout-label {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-callout-title {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-callout-copy {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.report-hero-side {
    display: grid;
    gap: 16px;
}

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

.report-score {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.report-score span {
    display: block;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.report-score strong {
    display: block;
    margin-top: 10px;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 28px;
    letter-spacing: 0;
}

.report-score small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

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

.context-list.compact {
    margin: 14px 0 16px;
    gap: 8px;
}

.context-list.compact .context-item {
    padding: 12px 14px;
}

.context-list.compact .context-item strong {
    margin-top: 6px;
    font-size: 15px;
}

.context-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.78);
}

.context-item span {
    display: block;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.context-item strong,
.context-item small {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    line-height: 1.55;
}

.context-item small {
    color: var(--muted);
    font-size: 14px;
}

.reference-block {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.82);
}

.reference-block-label {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.reference-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.reference-item {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.reference-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.reference-item span {
    display: block;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.reference-item small {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    line-height: 1.5;
    font-size: 14px;
}

.report-priority-board {
    margin-top: 18px;
}

.decision-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.decision-card {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
}

.decision-card-primary {
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.14), rgba(255, 255, 255, 0.94));
    border-color: rgba(4, 169, 245, 0.22);
}

.decision-card-warning {
    background: linear-gradient(180deg, rgba(241, 90, 108, 0.1), rgba(255, 255, 255, 0.94));
    border-color: rgba(241, 90, 108, 0.22);
}

.decision-card-positive {
    background: linear-gradient(180deg, rgba(45, 191, 124, 0.1), rgba(255, 255, 255, 0.94));
    border-color: rgba(45, 191, 124, 0.22);
}

.decision-label {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.decision-card h3 {
    margin: 12px 0 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
}

.decision-card p {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}

.decision-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.decision-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.decision-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

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

.priority-column {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 12px;
}

.priority-urgent {
    background: linear-gradient(180deg, rgba(241, 90, 108, 0.08), rgba(255, 255, 255, 0.8));
    border-color: rgba(241, 90, 108, 0.14);
}

.priority-planned {
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.08), rgba(255, 255, 255, 0.8));
    border-color: rgba(4, 169, 245, 0.16);
}

.priority-hypotheses {
    background: linear-gradient(180deg, rgba(255, 181, 71, 0.08), rgba(255, 255, 255, 0.8));
    border-color: rgba(255, 181, 71, 0.18);
}

.priority-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.priority-column-head h3 {
    margin: 0;
    font-size: 18px;
}

.priority-column-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    font-weight: 700;
}

.priority-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 235, 243, 0.9);
}

.priority-card-featured {
    border-color: rgba(4, 169, 245, 0.22);
    box-shadow: 0 10px 24px rgba(16, 38, 68, 0.08);
}

.priority-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.priority-card-top strong {
    font-size: 15px;
    line-height: 1.4;
}

.priority-card-top span {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.priority-card-action {
    margin-top: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.priority-card-meta {
    margin-top: 8px;
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 600;
}

.priority-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.priority-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(4, 169, 245, 0.08);
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 600;
}

.priority-tag-strong {
    background: rgba(29, 38, 54, 0.08);
    color: var(--ink);
}

.priority-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.action-cluster {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 235, 243, 0.9);
    display: grid;
    gap: 10px;
}

.action-cluster-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.action-cluster-head strong {
    font-size: 15px;
    line-height: 1.45;
}

.action-cluster-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(29, 38, 54, 0.08);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.action-cluster-objects {
    color: var(--primary-deep);
    font-size: 13px;
    line-height: 1.5;
}

.action-cluster-shift {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.action-cluster p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.report-layout {
    margin-top: 18px;
}

.report-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.insight-list {
    display: grid;
    gap: 12px;
}

.insight-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.84);
}

.insight-card-head {
    display: grid;
    gap: 8px;
}

.insight-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.insight-card-head strong {
    font-size: 18px;
    line-height: 1.35;
}

.insight-main,
.insight-action,
.insight-note {
    margin: 10px 0 0;
    line-height: 1.6;
}

.insight-main {
    color: var(--ink);
}

.insight-action {
    color: var(--ink);
    font-weight: 600;
}

.insight-action span {
    color: var(--muted-soft);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0;
}

.insight-note {
    color: var(--muted);
    font-size: 14px;
}

.detail-stack {
    display: grid;
    gap: 12px;
}

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

.detail-card {
    min-width: 0;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 10px;
}

.detail-card strong {
    font-size: 18px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.detail-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.detail-card-warm {
    border-color: rgba(255, 181, 71, 0.24);
    background: linear-gradient(180deg, rgba(255, 181, 71, 0.12), rgba(255, 255, 255, 0.94));
}

.detail-disclosure {
    border: 1px solid rgba(229, 235, 243, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    padding: 0 16px 16px;
}

.detail-disclosure summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.detail-disclosure summary::-webkit-details-marker {
    display: none;
}

.detail-disclosure[open] summary {
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

.detail-disclosure-copy {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.detail-disclosure-body {
    display: grid;
    gap: 16px;
}

.settings-disclosure {
    margin-top: 14px;
}

.settings-disclosure summary {
    width: fit-content;
    max-width: 100%;
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.settings-disclosure summary::-webkit-details-marker {
    display: none;
}

.settings-disclosure[open] summary {
    margin-bottom: 14px;
}

.settings-disclosure-body {
    display: grid;
    gap: 16px;
}

.panel.settings-disclosure {
    margin-top: 0;
}

.panel.settings-disclosure > summary {
    color: var(--ink);
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 18px;
    line-height: 1.25;
}

.quick-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

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

.goal-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.78);
}

.goal-row-selected {
    border-color: rgba(4, 169, 245, 0.24);
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.08), rgba(255, 255, 255, 0.92));
}

.goal-row strong {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.goal-row-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.goal-row-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: rgba(45, 191, 124, 0.14);
    color: #0a8f57;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.report-llm-meta {
    margin-bottom: 12px;
}

.report-logs pre {
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, monospace;
    margin: 0;
}

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

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

.metric {
    min-width: 0;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88));
}

.metric-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: 150ms ease;
}

.metric-link:hover {
    border-color: rgba(4, 169, 245, 0.28);
    background: linear-gradient(180deg, rgba(236, 249, 255, 0.96), rgba(248, 251, 255, 0.9));
    box-shadow: var(--shadow-md);
}

.metric-link.is-active {
    border-color: rgba(4, 169, 245, 0.38);
    background: rgba(4, 169, 245, 0.1);
}

.metric-alert {
    border-color: rgba(241, 90, 108, 0.26);
}

.metric-label {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 10px;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.metric-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

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

.v21-priority-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-metric {
    min-width: 0;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.mini-metric span {
    display: block;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mini-metric strong {
    display: block;
    margin-top: 10px;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 28px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

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

.status.active {
    color: #0a8f57;
    border-color: rgba(45, 191, 124, 0.24);
    background: rgba(45, 191, 124, 0.12);
}

.status.paused,
.status.scheduled {
    color: #0b78b3;
    border-color: rgba(4, 169, 245, 0.22);
    background: rgba(4, 169, 245, 0.12);
}

.status.draft,
.status.expired {
    color: #9b6500;
    border-color: rgba(255, 181, 71, 0.28);
    background: rgba(255, 181, 71, 0.14);
}

.monitor-action-cell {
    display: grid;
    gap: 6px;
}

.monitor-inline-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-deep);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.monitor-inline-action:hover {
    color: var(--ink);
}

.monitor-form-stack {
    display: grid;
    gap: 16px;
}

.monitor-filters {
    display: grid;
    gap: 16px;
}

.monitor-filter-actions {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.monitor-autocomplete {
    position: relative;
}

.monitor-autocomplete-menu {
    position: absolute;
    z-index: 18;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 38, 68, 0.14);
    padding: 6px;
}

.monitor-autocomplete-menu[hidden] {
    display: none;
}

.monitor-autocomplete-option {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 10px 8px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.monitor-autocomplete-option:hover,
.monitor-autocomplete-option.is-active {
    background: var(--panel-muted);
}

.monitor-autocomplete-empty {
    padding: 12px 10px;
    color: var(--muted);
    font-size: 13px;
}

.monitor-multiselect {
    position: relative;
}

.monitor-multiselect-field {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(249, 251, 255, 0.9);
    color: var(--ink);
}

.monitor-multiselect-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(69, 130, 210, 0.12);
}

.monitor-multiselect-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(249, 251, 255, 0.9);
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.monitor-multiselect-button span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monitor-multiselect-toggle {
    flex: 0 0 auto;
    width: 42px;
    align-self: stretch;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}

.monitor-multiselect-toggle:hover {
    color: var(--ink);
    background: rgba(236, 241, 248, 0.8);
}

.monitor-multiselect-selected {
    margin-top: 6px;
    min-height: 16px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monitor-multiselect-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 320px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 38, 68, 0.14);
}

.monitor-multiselect.is-open .monitor-multiselect-menu {
    display: grid;
    grid-template-rows: auto 1fr;
}

.monitor-multiselect-search {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 13px 14px;
}

.monitor-multiselect-search:focus {
    outline: none;
    box-shadow: none;
}

.monitor-multiselect-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 8px;
}

.monitor-multiselect-tools button {
    border: 0;
    background: transparent;
    color: var(--primary-deep);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.monitor-multiselect-tools button:hover {
    color: var(--ink);
}

.monitor-multiselect-options {
    max-height: 260px;
    overflow: auto;
    padding: 6px;
}

.monitor-multiselect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 8px;
    border-radius: 10px;
    color: var(--ink);
    cursor: pointer;
    min-width: 0;
    overflow-wrap: anywhere;
}

.monitor-multiselect-option:hover {
    background: var(--panel-muted);
}

.monitor-multiselect-option.is-hidden {
    display: none;
}

.monitor-multiselect-option input {
    flex: 0 0 auto;
}

.monitor-multiselect-empty {
    padding: 12px 10px;
    color: var(--muted);
    font-size: 13px;
}

.monitor-saved-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.monitor-save-filter-form,
.monitor-saved-filter-list {
    display: grid;
    gap: 10px;
    align-content: start;
}

.monitor-save-filter-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
}

.monitor-saved-filter-title {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.monitor-saved-filter-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    background: rgba(249, 251, 255, 0.72);
}

.monitor-saved-filter-item a {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.monitor-saved-filter-delete {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.monitor-saved-filter-delete:hover {
    background: rgba(230, 76, 76, 0.1);
    color: #c93636;
}

@media (max-width: 760px) {
    .monitor-saved-filters,
    .monitor-save-filter-row {
        grid-template-columns: 1fr;
    }
}

.monitor-advanced {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.monitor-advanced summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.monitor-chart {
    width: 100%;
    height: 320px;
}

.monitor-chart-wide {
    height: 340px;
}

.monitor-panel-filter {
    min-width: min(100%, 280px);
}

.monitor-panel-filter label {
    margin-bottom: 0;
}

.monitor-empty {
    display: grid;
    gap: 8px;
    padding: 12px 2px;
}

.monitor-empty strong {
    font-size: 16px;
}

.monitor-empty span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.monitor-metric-text {
    font-size: 22px;
    letter-spacing: 0;
}

.monitor-row-link {
    cursor: pointer;
}

.monitor-row-link td {
    transition: background 0.18s ease, color 0.18s ease;
}

.monitor-row-link:hover td,
.monitor-row-link:focus td {
    background: rgba(4, 169, 245, 0.08);
}

.direct-ads-kv-item {
    min-width: 0;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 8px;
}

.direct-ads-kv-item span {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.direct-ads-kv-item strong {
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.direct-ads-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.direct-ads-file-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.direct-ads-run-list {
    display: grid;
    gap: 16px;
}

.direct-ads-filter-stack {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.direct-ads-filter-form {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.76);
}

.direct-ads-filter-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(200px, 0.7fr));
    gap: 14px;
}

.direct-ads-filter-field {
    display: grid;
    gap: 8px;
}

.direct-ads-filter-field label {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.direct-ads-filter-field-wide {
    min-width: 0;
}

.direct-ads-filter-group {
    display: grid;
    gap: 10px;
}

.direct-ads-filter-label {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.direct-ads-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.direct-ads-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    color: var(--muted);
    line-height: 1.3;
    overflow: hidden;
    overflow-wrap: break-word;
    transition: 150ms ease;
}

.direct-ads-filter-chip:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.direct-ads-filter-chip strong {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.direct-ads-filter-chip > :not(strong):not(span) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.direct-ads-filter-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(29, 38, 54, 0.08);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.direct-ads-filter-chip-active {
    border-color: rgba(4, 169, 245, 0.24);
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.12), rgba(255, 255, 255, 0.92));
    color: var(--ink);
}

.direct-ads-run-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    min-width: 0;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
}

.direct-ads-run-main {
    display: grid;
    gap: 14px;
}

.direct-ads-run-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.direct-ads-run-title {
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.direct-ads-run-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.direct-ads-run-chip-row {
    margin-top: 0;
}

.direct-ads-run-progress {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.direct-ads-run-actions {
    display: grid;
    gap: 12px;
    align-content: start;
}

.direct-ads-run-note {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.76);
}

.direct-ads-run-note strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.direct-ads-run-note p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.direct-ads-disclosure-section {
    display: grid;
    gap: 12px;
}

.direct-ads-disclosure-label {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.priority-chip-card {
    background: rgba(255, 255, 255, 0.88);
}

.priority-chip-positive {
    border-color: rgba(45, 191, 124, 0.24);
    background: linear-gradient(180deg, rgba(45, 191, 124, 0.08), rgba(255, 255, 255, 0.94));
}

.priority-chip-warning {
    border-color: rgba(255, 181, 71, 0.26);
    background: linear-gradient(180deg, rgba(255, 181, 71, 0.08), rgba(255, 255, 255, 0.94));
}

.priority-chip-danger {
    border-color: rgba(241, 90, 108, 0.24);
    background: linear-gradient(180deg, rgba(241, 90, 108, 0.08), rgba(255, 255, 255, 0.94));
}

.priority-chip-neutral {
    border-color: rgba(4, 169, 245, 0.22);
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.08), rgba(255, 255, 255, 0.94));
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.scenario-card {
    display: block;
    margin: 0;
    cursor: pointer;
}

.scenario-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scenario-card-body {
    min-height: 100%;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(249, 251, 255, 0.92);
    box-shadow: var(--shadow-md);
    transition: 160ms ease;
}

.scenario-card:hover .scenario-card-body {
    border-color: rgba(4, 169, 245, 0.24);
    background: rgba(255, 255, 255, 0.98);
}

.scenario-card input:checked + .scenario-card-body {
    border-color: rgba(4, 169, 245, 0.3);
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.1), rgba(255, 255, 255, 0.96));
    box-shadow: 0 16px 36px rgba(16, 38, 68, 0.1);
}

.scenario-card-top {
    display: grid;
    gap: 10px;
}

.scenario-card-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(4, 169, 245, 0.12);
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.scenario-card-top strong {
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.scenario-card-copy {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.scenario-points {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
}

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

.field-grid.full {
    grid-template-columns: 1fr;
}

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

.semantic-mode-card {
    display: grid;
    gap: 8px;
    min-height: 126px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.semantic-mode-card:hover,
.semantic-mode-card:focus {
    border-color: rgba(4, 169, 245, 0.42);
    outline: none;
}

.semantic-mode-card.active {
    border-color: rgba(4, 169, 245, 0.74);
    background: #eef9ff;
    box-shadow: inset 0 0 0 1px rgba(4, 169, 245, 0.22);
}

.semantic-mode-card strong {
    font-size: 15px;
    line-height: 1.25;
}

.semantic-mode-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.semantic-mode-card em {
    align-self: end;
    color: var(--primary-deep);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0;
}

.semantic-flow-strip {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(4, 169, 245, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(4, 169, 245, 0.07);
    color: var(--primary-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.builder-autofill-form {
    align-items: end;
}

.builder-autofill-action {
    align-self: end;
}

.builder-prefill-summary {
    margin-top: 16px;
}

.builder-warning-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.builder-inline-error {
    margin-top: 12px;
}

.builder-safety-note,
.builder-inline-note {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(4, 169, 245, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(4, 169, 245, 0.07);
    color: #24536d;
    font-size: 13px;
    line-height: 1.45;
}

.builder-safety-note strong {
    color: var(--ink);
}

.builder-inline-note {
    margin-top: 12px;
}

.builder-inline-note-warning {
    border-color: rgba(255, 181, 71, 0.42);
    background: rgba(255, 181, 71, 0.13);
    color: #704510;
}

.builder-primary-fields {
    margin-top: 14px;
}

.builder-wide-field {
    margin-top: 16px;
}

.builder-section-divider {
    height: 1px;
    background: var(--line);
}

.builder-advanced-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.builder-advanced-panel > summary::after {
    content: "Показать";
    flex: 0 0 auto;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.78);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.builder-advanced-panel[open] > summary::after {
    content: "Скрыть";
}

.builder-submit-row {
    justify-content: flex-start;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.field-control {
    min-width: 0;
}

.source-dependent,
.source-dependent .field-control {
    min-width: 0;
}

.source-dependent.is-disabled {
    display: none;
}

.source-dependent.is-disabled input,
.source-dependent.is-disabled select,
.source-dependent.is-disabled textarea,
.source-dependent.is-disabled button {
    cursor: not-allowed;
}

.draft-toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.draft-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.draft-toolbar--restored .draft-status {
    color: var(--ink);
    border-color: rgba(40, 116, 240, 0.28);
    background: rgba(40, 116, 240, 0.08);
}

.draft-reset {
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}

.draft-reset:hover,
.draft-reset:focus {
    color: var(--ink);
    border-color: var(--ink);
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.field-control label:has(> input[type="checkbox"]),
.field-control label:has(> input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 1px solid rgba(4, 169, 245, 0.28);
    background: rgba(4, 169, 245, 0.08);
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    flex: 0 0 auto;
    contain: layout style;
    isolation: isolate;
}

.help-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: min(320px, calc(100vw - 48px));
    padding: 10px 12px;
    border: 1px solid rgba(20, 34, 55, 0.12);
    border-radius: 8px;
    background: #142237;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-transform: none;
    transform: translate(-50%, 4px);
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    overflow-wrap: anywhere;
    visibility: hidden;
}

.help-tip:hover::after,
.help-tip:focus::after {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.option-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    cursor: pointer;
}

.weekday-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.weekday-checkboxes > div {
    margin: 0;
}

.weekday-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="file"],
input[type="search"],
input:not([type]),
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(249, 251, 255, 0.9);
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    outline: none;
    transition: 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(4, 169, 245, 0.45);
    box-shadow: 0 0 0 4px rgba(4, 169, 245, 0.1);
    background: #ffffff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group,
.checkbox-group {
    display: grid;
    gap: 10px;
}

.option {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(249, 251, 255, 0.92);
    transition: 150ms ease;
}

.option:hover {
    border-color: rgba(4, 169, 245, 0.24);
    background: rgba(255, 255, 255, 0.98);
}

.option input {
    margin-top: 3px;
}

@media (max-width: 700px) {
    .help-tip::after {
        left: 0;
        right: auto;
        width: min(280px, calc(100vw - 40px));
        transform: translate(0, 4px);
    }

    .help-tip:hover::after,
    .help-tip:focus::after {
        transform: translate(0, 0);
    }

    .table-wrap td a:not(.btn),
    .panel a:not(.btn):not(.ghost-pill):not(.report-chip),
    .ads-log-link {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
    }
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.actions form {
    margin: 0;
}

.row-actions {
    gap: 8px;
    flex-wrap: nowrap;
}

.negative-runs-actions-heading,
.negative-runs-actions-cell {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    padding-right: 8px;
    padding-left: 8px;
}

.negative-runs-actions-cell {
    text-align: right;
}

.negative-runs-actions {
    display: grid;
    gap: 6px;
    width: 70px;
    margin-left: auto;
}

.negative-runs-actions form {
    min-width: 0;
    margin: 0;
}

.negative-runs-actions .btn {
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    overflow-wrap: normal;
}

.candidate-quick-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.candidate-quick-actions .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.negative-publish-table {
    min-width: 900px;
}

.negative-publish-select {
    width: min(100%, 520px);
    min-width: 320px;
    min-height: 152px;
}

.publish-actions {
    margin-top: 16px;
    justify-content: flex-end;
}

.publish-actions-top {
    margin: 0 0 14px;
}

.negative-publish-remove {
    min-height: 30px;
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

.btn.danger {
    border-color: rgba(241, 90, 108, 0.2);
    color: #cf294d;
    background: rgba(241, 90, 108, 0.08);
}

.btn.danger:hover {
    border-color: rgba(241, 90, 108, 0.34);
    background: rgba(241, 90, 108, 0.12);
}

.direct-ads-inline-tools {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.direct-ads-helper-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.direct-ads-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.direct-ads-chip {
    display: grid;
    gap: 4px;
    min-width: min(180px, 100%);
    max-width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(249, 251, 255, 0.92);
}

.direct-ads-chip strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.direct-ads-chip span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.direct-ads-chip--required {
    border-color: rgba(4, 169, 245, 0.24);
    background: rgba(4, 169, 245, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: 150ms ease;
}

.btn:hover {
    box-shadow: var(--shadow-md);
}

.btn.primary,
.btn.accent {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.btn.secondary {
    border-color: rgba(4, 169, 245, 0.16);
    color: var(--primary-deep);
    background: rgba(4, 169, 245, 0.08);
}

.btn.success {
    border-color: rgba(45, 191, 124, 0.22);
    color: #087a4a;
    background: rgba(45, 191, 124, 0.1);
}

button.btn:disabled,
input.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.52 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.2);
    transform: none !important;
    box-shadow: none !important;
}

button.btn:disabled:hover,
input.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
    transform: none !important;
    box-shadow: none !important;
}

.status {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    line-height: 1.25;
    overflow-wrap: normal;
    white-space: nowrap;
}

.status.status-compact {
    min-height: 24px;
    margin-top: 6px;
    padding: 0 9px;
    font-size: 11px;
}

.metric-value-text {
    font-size: 24px;
    line-height: 1.18;
}

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

.empty-state {
    display: grid;
    gap: 6px;
    align-items: start;
    max-width: 760px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(248, 251, 255, 0.82);
    color: var(--ink);
    text-align: left;
}

.empty-state-title {
    font-weight: 800;
    line-height: 1.25;
}

.empty-state-copy {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.empty-state-actions {
    margin-top: 4px;
}

.empty-state-warning {
    border-color: rgba(255, 181, 71, 0.34);
    background: rgba(255, 248, 235, 0.86);
}

.empty-state-error {
    border-color: rgba(241, 90, 108, 0.28);
    background: rgba(255, 248, 250, 0.92);
}

.table-empty-cell {
    padding: 14px;
}

.table-empty-cell .empty-state {
    max-width: none;
}

.status.running,
.status.queued,
.status.new,
.status.preprocessing,
.status.generating,
.status.partial_failed,
.status.checked,
.status.ready,
.status.warning,
.status.data_missing,
.status.rule_not_run,
.status.pending {
    color: #805100;
    border-color: #e0b04e;
    background: #fff1cf;
}

.status.completed,
.status.generated,
.status.repaired,
.status.approved,
.status.applied,
.status.exported,
.status.skipped,
.status.checked_clean,
.status.growth_review {
    color: #087247;
    border-color: #78cda0;
    background: #dff5e9;
}

.status.review_required,
.status.needs_review,
.status.route_review,
.status.protected_hold,
.status.already_covered {
    color: #09628f;
    border-color: #7fc8ec;
    background: #dff2fc;
}

.status.out_of_ontology_modifier,
.status.manual_review,
.status.not_enough_evidence,
.status.unresolved_waste {
    color: #8a4f00;
    border-color: #edae52;
    background: #ffe8bd;
}

.status.safe_ready,
.status.rejected_to_negative_seed {
    color: #a9243b;
    border-color: #ee8798;
    background: #ffe0e6;
}

.status.accepted_as_target_term {
    color: #087247;
    border-color: #78cda0;
    background: #dff5e9;
}

.status.failed,
.status.error,
.status.rejected,
.status.excluded,
.status.not_applicable,
.status.conversion_conflict,
.status.ontology_conflict {
    color: #a9243b;
    border-color: #ee8798;
    background: #ffe0e6;
}

.errors {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #cf294d;
}

.errorlist {
    margin: 8px 0 0;
    padding: 10px 12px 10px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(241, 90, 108, 0.24);
    background: rgba(241, 90, 108, 0.08);
    color: #b82946;
    font-size: 13px;
    line-height: 1.45;
}

.form-error-summary {
    border-color: rgba(241, 90, 108, 0.28);
    background: rgba(255, 248, 250, 0.92);
}

.log-box {
    margin: 0;
    max-height: 520px;
    overflow: auto;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(20, 34, 55, 0.04);
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
}

.table-wrap {
    max-width: 100%;
    overflow: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 235, 243, 0.86);
    background: rgba(255, 255, 255, 0.78);
}

table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

th,
td {
    padding: 12px 14px;
    border-top: 1px solid rgba(229, 235, 243, 0.88);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: normal;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    border-top: 0;
    background: #f8fbff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: normal;
}

.table-checkbox-cell {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    text-align: center;
}

.table-checkbox-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

td > a:not(.btn),
td > span,
td > strong {
    max-width: 100%;
}

td > a:not(.btn) {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

tbody tr:nth-child(even) td {
    background: rgba(248, 251, 255, 0.66);
}

pre {
    overflow: auto;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
}

.info-list-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(4, 169, 245, 0.12);
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 700;
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-body .shell {
    width: min(1180px, 100%);
    grid-template-columns: minmax(0, 1fr);
}

.auth-body .main {
    padding: 0;
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.auth-copy {
    padding: 36px 10px 36px 0;
}

.auth-copy h1 {
    max-width: 10ch;
}

.auth-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.auth-list li {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-md);
}

.auth-card {
    padding: 24px;
}

.auth-card .actions {
    margin-top: 8px;
}

.telegram-layout {
    align-items: start;
}

.telegram-page-stack,
.telegram-secondary-layout {
    gap: 18px;
}

.telegram-page-stack {
    gap: 16px;
}

.telegram-workspace-head .panel-copy {
    max-width: 64ch;
}

.telegram-state {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.telegram-state + .telegram-state {
    margin-top: 16px;
}

.telegram-state-top {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
}

.telegram-state-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
}

.telegram-state-value {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.telegram-state-success {
    border-color: rgba(45, 191, 124, 0.24);
    background: rgba(241, 255, 248, 0.9);
}

.telegram-state-progress {
    border-color: rgba(255, 181, 71, 0.26);
    background: rgba(255, 248, 236, 0.92);
}

.telegram-state-warning {
    border-color: rgba(241, 90, 108, 0.24);
    background: rgba(255, 244, 246, 0.94);
}

.telegram-state-muted {
    background: rgba(248, 251, 255, 0.92);
}

.telegram-meta-list {
    display: grid;
    gap: 12px;
}

.telegram-meta-list-compact {
    margin-top: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.telegram-meta-list div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    min-width: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(229, 235, 243, 0.86);
}

.telegram-meta-list span {
    color: var(--muted);
}

.telegram-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
}

.telegram-link-input {
    width: 100%;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(4, 169, 245, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font: inherit;
}

.telegram-note-stack {
    display: grid;
    gap: 12px;
}

.telegram-note {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 235, 243, 0.86);
    background: rgba(249, 251, 255, 0.84);
    color: var(--muted);
}

.telegram-code-form {
    margin-top: 20px;
}

.telegram-info-list {
    margin-top: 0;
}

.telegram-monitor-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.telegram-monitor-summary-secondary {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.telegram-summary-card {
    min-width: 0;
    padding: 15px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 235, 243, 0.86);
    background: rgba(255, 255, 255, 0.78);
}

.telegram-summary-card span {
    display: block;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.telegram-summary-card strong {
    display: block;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.telegram-summary-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
}

.telegram-review-strip {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 235, 243, 0.86);
    background: rgba(255, 255, 255, 0.72);
}

.telegram-review-strip span {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.telegram-review-strip strong {
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.telegram-review-strip small {
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
}

.telegram-toolbar {
    margin-top: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(211, 219, 231, 0.92);
}

.telegram-monitor-form {
    margin-top: 18px;
}

.telegram-disclosure-stack {
    display: grid;
    gap: 12px;
}

.telegram-disclosure {
    padding: 0 18px 18px;
}

.telegram-disclosure summary {
    padding: 16px 0;
}

.telegram-disclosure-summary {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
}

.telegram-disclosure-summary strong,
.telegram-disclosure-summary small {
    display: block;
}

.telegram-disclosure-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.telegram-disclosure-summary strong {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.telegram-disclosure-summary small {
    max-width: 54ch;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
    overflow-wrap: anywhere;
}

.telegram-preview-panel,
.telegram-delivery-history,
.telegram-destination-panel {
    margin-top: 24px;
}

.telegram-form-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 18px;
}

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

.telegram-form-grid--support,
.telegram-form-grid--urgent {
    align-items: start;
}

.telegram-disclosure .telegram-form-grid:first-of-type,
.telegram-disclosure .telegram-monitor-options:first-of-type,
.telegram-disclosure .telegram-monitor-summary:first-of-type,
.telegram-disclosure .telegram-note-stack:first-of-type,
.telegram-disclosure .telegram-preview-panel:first-of-type,
.telegram-disclosure .telegram-delivery-history:first-of-type {
    margin-top: 4px;
}

.telegram-form-fieldset[disabled] {
    opacity: 0.7;
}

.telegram-form-divider {
    height: 1px;
    margin: 6px 0 2px;
    background: rgba(211, 219, 231, 0.92);
}

.telegram-subsection-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.telegram-radio-group,
.telegram-monitor-options {
    gap: 12px;
}

.telegram-radio-group--three {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.telegram-radio-group--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.telegram-account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.telegram-schedule-fields {
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) minmax(220px, 1fr);
    gap: 14px;
    margin-top: 12px;
}

.telegram-choice-grid {
    display: grid;
    gap: 10px;
}

.telegram-choice-grid--days {
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    margin-top: 14px;
}

.telegram-choice-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.telegram-monitor-options {
    display: grid;
    margin-top: 4px;
}

.telegram-option {
    grid-template-columns: 20px 1fr;
}

.telegram-option-copy strong,
.telegram-option-copy small {
    display: block;
}

.telegram-option-copy strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.telegram-option-copy small {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
}

.telegram-inline-help {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.telegram-account-list {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.telegram-destination-list {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.telegram-account-picker {
    display: grid;
    gap: 12px;
}

.telegram-account-toolbar {
    display: grid;
    gap: 12px;
}

.telegram-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.telegram-account-search {
    width: 100%;
}

.telegram-account-option.is-hidden {
    display: none;
}

.telegram-account-option {
    grid-template-columns: 20px 1fr;
}

.telegram-destination-option {
    grid-template-columns: 20px 1fr;
}

.telegram-destination-actions {
    margin-top: 18px;
}

.telegram-destination-pending {
    margin-top: 16px;
}

.telegram-weekday-list {
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    margin-top: 14px;
}

.telegram-weekday-option {
    grid-template-columns: 18px auto;
    justify-content: start;
    align-items: center;
    min-height: 100%;
}

.telegram-weekday-option .telegram-option-copy strong {
    white-space: nowrap;
}

.telegram-note-warning {
    margin-top: 12px;
    border-color: rgba(242, 191, 29, 0.32);
    background: rgba(255, 248, 224, 0.92);
    color: #7a5a00;
}

.telegram-preview-output {
    margin: 0;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 235, 243, 0.86);
    background: rgba(250, 252, 255, 0.94);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    font-size: 14px;
}

.telegram-form-actions {
    padding-top: 4px;
    justify-content: flex-start;
}

.telegram-setup-shortcut {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 16px;
    margin-top: 20px;
}

.telegram-setup-shortcut--single {
    grid-template-columns: minmax(0, 1fr);
}

.telegram-setup-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.76);
}

.telegram-setup-card-primary {
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.1), rgba(255, 255, 255, 0.94));
    border-color: rgba(4, 169, 245, 0.18);
}

.telegram-setup-card span {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.telegram-setup-card strong {
    font-size: 20px;
    letter-spacing: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.telegram-setup-card small {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.telegram-note-stack-compact {
    gap: 8px;
}

.hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mini-metrics,
    .direct-ads-kv-grid,
    .direct-ads-mini-grid,
    .direct-ads-helper-grid,
    .direct-ads-run-card,
    .direct-ads-filter-form-grid,
    .scenario-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .report-hero,
    .priority-columns,
    .decision-strip,
    .report-support-grid,
    .overview-notes,
    .telegram-monitor-summary,
    .telegram-monitor-summary-secondary,
    .telegram-meta-list-compact,
    .newclient-autofill-row,
    .newclient-provider-grid,
    .newclient-trace-grid {
        grid-template-columns: 1fr;
    }

    .telegram-account-head {
        flex-direction: column;
        align-items: stretch;
    }

    .telegram-disclosure-summary,
    .telegram-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .telegram-disclosure-summary small {
        max-width: none;
        text-align: left;
    }

    .telegram-form-grid,
    .telegram-radio-group--three,
    .telegram-radio-group--two,
    .telegram-account-list,
    .telegram-destination-list,
    .telegram-choice-grid--three,
    .telegram-setup-shortcut {
        grid-template-columns: 1fr;
    }

    .newclient-home-hero,
    .newclient-run-grid {
        grid-template-columns: 1fr;
    }

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

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

    .newclient-detail-score-grid,
    .newclient-pipeline-grid,
    .newclient-pipeline-steps,
    .newclient-passport-evidence-grid,
    .newclient-passport-form-grid,
    .newclient-passport-text-grid,
    .newclient-review-grid,
    .newclient-business-files {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newclient-detail-grid,
    .newclient-specialist-trace {
        grid-template-columns: 1fr;
    }

    .telegram-account-actions {
        flex-direction: column;
    }

    .telegram-schedule-fields,
    .telegram-weekday-list,
    .telegram-choice-grid--days {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .shell {
        grid-template-columns: 1fr;
    }

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

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .app-body.sidebar-collapsed .sidebar {
        display: none;
    }

    .sidebar-edge-toggle {
        left: 16px;
        bottom: 16px;
        background: rgba(248, 251, 255, 0.82);
        box-shadow: var(--shadow-md);
    }

    .sidebar-meta {
        padding-bottom: 0;
    }

    .sidebar-main {
        grid-template-rows: auto auto;
    }

    .main {
        padding: 18px 16px 28px;
    }

    .grid.two,
    .layout-main,
    .field-grid,
    .metrics,
    .direct-ads-kv-grid,
    .direct-ads-mini-grid,
    .direct-ads-run-card,
    .direct-ads-filter-form-grid,
    .v21-priority-grid,
    .scenario-grid,
    .detail-grid,
    .auth-shell,
    .report-hero,
    .priority-columns,
    .report-score-grid,
    .decision-strip,
    .report-support-grid,
    .overview-notes,
    .newclient-autofill-row,
    .newclient-provider-grid,
    .newclient-trace-grid {
        grid-template-columns: 1fr;
    }

    .newclient-home-hero,
    .newclient-quick-start,
    .newclient-metrics-grid,
    .newclient-workflow-grid,
    .newclient-run-grid,
    .newclient-run-facts,
    .newclient-run-evidence,
    .newclient-detail-score-grid,
    .newclient-pipeline-grid,
    .newclient-pipeline-steps,
    .newclient-passport-evidence-grid,
    .newclient-passport-form-grid,
    .newclient-passport-text-grid,
    .newclient-detail-grid,
    .newclient-evidence-grid,
    .newclient-decision-list,
    .newclient-review-grid,
    .newclient-step-row,
    .newclient-specialist-trace,
    .newclient-specialist-trace-head,
    .newclient-business-files,
    .semantic-mode-grid {
        grid-template-columns: 1fr;
    }

    .newclient-detail-hero-main,
    .newclient-detail-progress-head,
    .newclient-detail-actions,
    .newclient-passport-submit-row,
    .newclient-step-side {
        align-items: stretch;
        flex-direction: column;
    }

    .newclient-form-field.is-wide {
        grid-column: auto;
    }

    .sticky-stack {
        position: static;
    }

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

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .newclient-trace-head {
        flex-direction: column;
    }

    .monitor-panel-filter {
        width: 100%;
        min-width: 0;
    }

    .report-chip-row {
        display: grid;
    }

    .report-chip {
        width: 100%;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .report-chip strong {
        flex: 1 1 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .report-chip > :not(strong):not(input):not(.help-tip) {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .compact-account-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .direct-ads-filter-row {
        flex-direction: column;
    }

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

    .goal-row,
    .priority-card-top,
    .telegram-state-top,
    .telegram-meta-list div {
        grid-template-columns: 1fr;
        display: grid;
    }
}

/* Unified tool hub screens */
.tool-hub {
    display: grid;
    gap: 18px;
}

.tool-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 18px;
    align-items: stretch;
}

.tool-hub-copy {
    display: grid;
    gap: 14px;
}

.tool-hub-kicker {
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tool-hub-title {
    margin: 0;
    font-family: Plus Jakarta Sans, IBM Plex Sans, sans-serif;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
}

.tool-hub-lead {
    max-width: 76ch;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.tool-hub-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tool-hub-fact {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 235, 243, 0.92);
    background: rgba(255, 255, 255, 0.72);
}

.tool-hub-fact strong {
    color: var(--ink);
    font-size: 13px;
}

.tool-hub-fact span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.tool-hub-cta {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(4, 169, 245, 0.18);
    background: linear-gradient(180deg, rgba(236, 249, 255, 0.94), rgba(255, 255, 255, 0.86));
}

.tool-hub-cta .btn {
    width: 100%;
    min-height: 48px;
}

.tool-hub-cta-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.tool-hub-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tool-history-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tool-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.tool-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.tool-filter-chip.is-active {
    color: var(--primary-deep);
    border-color: rgba(4, 169, 245, 0.28);
    background: rgba(4, 169, 245, 0.09);
}

.tool-search-box {
    min-width: min(260px, 100%);
}

.tool-search-box input {
    width: 100%;
    min-height: 36px;
}

.tool-history-table th,
.tool-history-table td {
    vertical-align: top;
}

.tool-result-actions,
.tool-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.tool-result-actions .btn,
.tool-row-actions .btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.tool-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.create-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    gap: 18px;
    align-items: start;
}

.create-shell > * {
    min-width: 0;
}

.create-main {
    display: grid;
    gap: 16px;
}

.audit-account-strip {
    margin-bottom: 18px;
}

.audit-account-tools {
    display: grid;
    grid-template-columns: minmax(260px, 0.52fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

.audit-account-search {
    margin: 0;
}

.audit-account-hint {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.35;
}

.run-direct-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: -2px 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.run-direct-selected {
    min-width: 0;
    flex: 1 1 260px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.run-direct-actions .btn {
    flex: 0 0 auto;
}

.period-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.period-preset-row .tool-filter-chip {
    cursor: pointer;
}

.audit-create-preview {
    margin-bottom: 0;
}

.create-summary {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 14px;
}

.create-summary-list {
    display: grid;
    gap: 10px;
}

.create-summary-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(248, 251, 255, 0.86);
}

.create-summary-item span {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.create-summary-item strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.create-summary .btn {
    width: 100%;
}

.preview-table td:first-child {
    width: 34%;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .tool-hub-hero,
    .create-shell {
        grid-template-columns: 1fr;
    }

    .create-summary {
        position: static;
    }
}

@media (max-width: 980px) {
    .tool-hub-facts,
    .tool-hub-metrics,
    .tool-secondary-grid {
        grid-template-columns: 1fr;
    }

    .tool-history-toolbar {
        align-items: stretch;
    }

    .audit-account-tools {
        grid-template-columns: 1fr;
    }

    .tool-search-box {
        width: 100%;
    }
}

/* Service queue observability */
.ops-live-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(4, 169, 245, 0.18);
    border-radius: var(--radius-md);
    background: rgba(236, 249, 255, 0.76);
}

.ops-live-state,
.ops-live-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.ops-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.16);
    flex: 0 0 auto;
}

.ops-live-dot.is-ok {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(45, 191, 124, 0.16);
}

.ops-live-dot.is-error {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(241, 90, 108, 0.14);
}

.ops-radar-panel {
    background: rgba(255, 255, 255, 0.92);
}

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

.ops-flow-card,
.ops-provider-card {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
}

.ops-flow-card--danger,
.ops-activity-row--danger {
    border-color: rgba(241, 90, 108, 0.28);
    background: rgba(255, 248, 250, 0.94);
}

.ops-flow-card--warning {
    border-color: rgba(255, 181, 71, 0.3);
    background: rgba(255, 250, 240, 0.94);
}

.ops-flow-card--progress,
.ops-activity-row--progress {
    border-color: rgba(4, 169, 245, 0.24);
    background: rgba(240, 250, 255, 0.94);
}

.ops-flow-card--ok,
.ops-activity-row--ok {
    border-color: rgba(45, 191, 124, 0.2);
}

.ops-flow-head,
.ops-provider-card-head,
.ops-activity-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ops-flow-head strong,
.ops-provider-card-head strong,
.ops-activity-main strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.ops-flow-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.ops-progress,
.ops-provider-util {
    display: flex;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(151, 163, 182, 0.16);
}

.ops-progress-segment,
.ops-provider-util span {
    display: block;
    min-width: 0;
    height: 100%;
}

.ops-progress-segment.is-waiting {
    background: var(--warning);
}

.ops-progress-segment.is-scheduled {
    background: #7fc8ec;
}

.ops-progress-segment.is-running,
.ops-provider-util span {
    background: var(--primary);
}

.ops-progress-segment.is-failed {
    background: var(--danger);
}

.ops-progress-segment.is-idle {
    background: var(--success);
}

.ops-flow-stats,
.ops-provider-body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ops-provider-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-stat {
    min-width: 0;
    padding: 8px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(229, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.72);
}

.ops-stat span {
    display: block;
    color: var(--muted-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ops-stat strong {
    display: block;
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ops-activity-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0 10px;
}

.ops-activity-head h3 {
    margin: 0;
}

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

.ops-activity-row {
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
}

.ops-activity-main {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.ops-activity-details {
    color: var(--ink);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.ops-activity-age {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .ops-flow-grid,
    .ops-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ops-live-strip,
    .ops-flow-head,
    .ops-provider-card-head,
    .ops-activity-head,
    .ops-activity-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ops-flow-grid,
    .ops-provider-grid,
    .ops-flow-stats,
    .ops-provider-body {
        grid-template-columns: 1fr;
    }
}

.ops-error-panel {
    border-color: rgba(241, 90, 108, 0.22);
    background: rgba(255, 255, 255, 0.94);
}

.ops-error-counters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ops-error-counters span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(241, 90, 108, 0.22);
    background: rgba(255, 248, 250, 0.86);
    color: #a9243b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.ops-error-row {
    display: grid;
    grid-template-columns: minmax(96px, 0.18fr) minmax(0, 1fr) minmax(130px, 0.16fr);
    gap: 12px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid rgba(241, 90, 108, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 248, 250, 0.9);
}

.ops-error-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ops-error-main strong {
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ops-error-message {
    color: #7a1f31;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ops-error-side {
    display: grid;
    justify-items: end;
    gap: 4px;
    min-width: 0;
    text-align: right;
}

.ops-error-age {
    color: #a9243b;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .ops-error-row {
        grid-template-columns: 1fr;
    }

    .ops-error-side {
        justify-items: start;
        text-align: left;
    }
}


.ops-screen-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(4, 169, 245, 0.18);
    border-radius: var(--radius-md);
    background: rgba(236, 249, 255, 0.72);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
}

.ops-secondary-details,
.ops-engineering-details {
    margin-top: 16px;
}

.ops-secondary-details > summary,
.ops-engineering-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    list-style: none;
}

.ops-secondary-details > summary::-webkit-details-marker,
.ops-engineering-details > summary::-webkit-details-marker {
    display: none;
}

.ops-secondary-details > summary::after,
.ops-engineering-details > summary::after {
    content: 'Раскрыть';
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ops-secondary-details[open] > summary::after,
.ops-engineering-details[open] > summary::after {
    content: 'Свернуть';
}

.ops-secondary-details[open] > summary,
.ops-engineering-details[open] > summary {
    border-color: rgba(4, 169, 245, 0.24);
    background: rgba(236, 249, 255, 0.58);
}

/* Service queues desktop and tablet-landscape layout */
.main-ops-queues {
    max-width: 1760px;
}

.main-ops-queues .panel {
    padding: 16px;
}

.main-ops-queues .panel-head {
    margin-bottom: 12px;
}

.main-ops-queues .panel h2,
.main-ops-queues .panel h3 {
    font-size: 17px;
}

.main-ops-queues .panel-copy {
    font-size: 13px;
    line-height: 1.42;
}

.main-ops-queues > .panel-muted .metrics {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.main-ops-queues .metric {
    padding: 11px 12px;
    border-radius: var(--radius-md);
}

.main-ops-queues .metric-value {
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.08;
}

.main-ops-queues .metric-value-text {
    font-size: 20px;
}

.ops-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.78fr);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.ops-dashboard-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.ops-dashboard-side {
    min-width: 0;
    position: sticky;
    top: 20px;
}

.ops-dashboard-grid > *,
.ops-detail-grid > * {
    min-width: 0;
}

.ops-dashboard-grid .panel,
.ops-detail-grid .panel {
    margin-top: 0 !important;
}


.ops-diagnosis-panel {
    margin-top: 16px;
    border-color: rgba(4, 169, 245, 0.18);
    background: rgba(255, 255, 255, 0.95);
}

.ops-diagnosis-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.ops-diagnosis-card,
.ops-priority-panel,
.ops-intel-row,
.ops-root-cause-card,
.ops-worker-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
}

.ops-diagnosis-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.ops-diagnosis-card--danger,
.ops-priority-item--danger,
.ops-intel-row--danger,
.ops-root-cause-card--danger,
.ops-worker-card--danger {
    border-color: rgba(241, 90, 108, 0.28);
    background: rgba(255, 248, 250, 0.94);
}

.ops-diagnosis-card--warning,
.ops-priority-item--warning,
.ops-intel-row--warning,
.ops-root-cause-card--warning,
.ops-worker-card--warning {
    border-color: rgba(255, 181, 71, 0.32);
    background: rgba(255, 250, 240, 0.94);
}

.ops-diagnosis-card--ok,
.ops-priority-item--ok,
.ops-intel-row--ok,
.ops-worker-card--ok,
.ops-worker-card--idle {
    border-color: rgba(45, 191, 124, 0.18);
}

.ops-diagnosis-card--progress,
.ops-intel-row--progress,
.ops-worker-card--progress {
    border-color: rgba(4, 169, 245, 0.24);
    background: rgba(240, 250, 255, 0.94);
}

.ops-diagnosis-score {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 1px solid rgba(4, 169, 245, 0.2);
    background: rgba(236, 249, 255, 0.86);
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.ops-diagnosis-card strong,
.ops-priority-main strong,
.ops-intel-main strong,
.ops-root-cause-card > strong,
.ops-worker-head strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ops-diagnosis-card .muted,
.ops-priority-main .muted,
.ops-intel-main .muted,
.ops-root-cause-card .muted,
.ops-worker-card .muted {
    display: block;
    margin-top: 5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ops-priority-panel {
    padding: 12px;
}

.ops-priority-panel h3 {
    margin: 0 0 10px;
}

.ops-priority-list,
.ops-intel-list,
.ops-root-cause-grid,
.ops-worker-grid {
    display: grid;
    gap: 8px;
}

.ops-priority-item,
.ops-intel-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
}

.ops-priority-item {
    grid-template-columns: auto minmax(0, 1fr);
}

.ops-priority-main,
.ops-intel-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.ops-action-line {
    display: block;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ops-intel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.ops-intel-grid > * {
    min-width: 0;
}

.ops-intel-grid .panel {
    margin-top: 0 !important;
}

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

.ops-root-cause-card {
    display: grid;
    gap: 7px;
    padding: 11px 12px;
}

.ops-root-cause-head,
.ops-worker-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ops-worker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-worker-card {
    display: grid;
    gap: 10px;
    padding: 11px 12px;
}

.ops-worker-card .ops-flow-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-dashboard-main .ops-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-dashboard-main .ops-provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-dashboard-side .ops-error-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100svh - 40px);
}

.ops-dashboard-side .ops-error-list {
    max-height: calc(100svh - 190px);
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.ops-dashboard-main .ops-activity-list {
    max-height: 330px;
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.ops-dashboard-main .ops-flow-card,
.ops-dashboard-main .ops-provider-card,
.ops-error-row,
.ops-activity-row {
    padding: 10px 11px;
}

.ops-dashboard-main .ops-flow-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.ops-dashboard-main .ops-stat {
    padding: 7px 8px;
}

.ops-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(500px, 1fr));
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.ops-full-span {
    grid-column: 1 / -1;
}

.ops-provider-detail .metrics,
.ops-full-span .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-provider-detail .table-wrap table {
    min-width: 760px;
}

.ops-full-span .table-wrap table {
    min-width: 1080px;
}

/* Service queues table pagination and scrolls */
.main-ops-queues .ops-table-wrap {
    max-height: 460px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.main-ops-queues .ops-table-wrap-compact {
    max-height: 340px;
}

.main-ops-queues .ops-table-wrap-wide {
    max-height: 560px;
}

.main-ops-queues .ops-table-wrap .ops-data-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.main-ops-queues .ops-table-wrap th,
.main-ops-queues .ops-table-wrap td {
    padding: 9px 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.main-ops-queues .ops-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: normal;
}

.main-ops-queues .ops-direct-table th:nth-child(1),
.main-ops-queues .ops-direct-table td:nth-child(1) {
    width: 20%;
}

.main-ops-queues .ops-direct-table th:nth-child(2),
.main-ops-queues .ops-direct-table td:nth-child(2) {
    width: 7%;
}

.main-ops-queues .ops-direct-table th:nth-child(3),
.main-ops-queues .ops-direct-table td:nth-child(3),
.main-ops-queues .ops-direct-table th:nth-child(4),
.main-ops-queues .ops-direct-table td:nth-child(4),
.main-ops-queues .ops-direct-table th:nth-child(5),
.main-ops-queues .ops-direct-table td:nth-child(5),
.main-ops-queues .ops-direct-table th:nth-child(6),
.main-ops-queues .ops-direct-table td:nth-child(6),
.main-ops-queues .ops-direct-table th:nth-child(7),
.main-ops-queues .ops-direct-table td:nth-child(7),
.main-ops-queues .ops-direct-table th:nth-child(8),
.main-ops-queues .ops-direct-table td:nth-child(8) {
    width: 10%;
}

.main-ops-queues .ops-direct-table th:nth-child(9),
.main-ops-queues .ops-direct-table td:nth-child(9) {
    width: 13%;
}

.ops-table-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.ops-table-page-btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.ops-table-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ops-table-page-info {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}


@media (min-width: 1680px) {
    .ops-worker-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 1680px) {
    .ops-dashboard-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(420px, 0.72fr);
    }

    .ops-dashboard-main .ops-flow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-dashboard-side .ops-error-list {
        max-height: calc(100svh - 178px);
    }
}

@media (max-width: 1320px) {
    .main-ops-queues > .panel-muted .metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .ops-dashboard-side {
        position: static;
    }

    .ops-dashboard-side .ops-error-panel,
    .ops-dashboard-side .ops-error-list {
        max-height: none;
    }

    .ops-error-list {
        max-height: 420px;
        overflow: auto;
        padding-right: 2px;
        scrollbar-width: thin;
    }

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

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

    .ops-root-cause-grid,
    .ops-worker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 981px) and (max-width: 1320px) and (orientation: landscape) {
    .main-ops-queues {
        padding-inline: 20px;
    }

    .ops-dashboard-main .ops-flow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-dashboard-main .ops-provider-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ops-error-row {
        grid-template-columns: minmax(92px, 0.16fr) minmax(0, 1fr) minmax(120px, 0.14fr);
    }
}

@media (max-width: 980px) {
    .main-ops-queues {
        max-width: none;
    }

    .main-ops-queues > .panel-muted .metrics,
    .ops-provider-detail .metrics,
    .ops-full-span .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-dashboard-main .ops-flow-grid,
    .ops-dashboard-main .ops-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

}

@media (max-width: 760px) {
    .main-ops-queues > .panel-muted .metrics,
    .ops-provider-detail .metrics,
    .ops-full-span .metrics,
    .ops-dashboard-main .ops-flow-grid,
    .ops-dashboard-main .ops-provider-grid {
        grid-template-columns: 1fr;
    }

    .ops-root-cause-grid,
    .ops-worker-grid,
    .ops-worker-card .ops-flow-stats {
        grid-template-columns: 1fr;
    }

    .ops-diagnosis-card,
    .ops-priority-item,
    .ops-intel-row,
    .ops-root-cause-head,
    .ops-worker-head {
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-direction: column;
    }
}



/* Authenticated home workspace */
.home-workspace {
    display: grid;
    gap: 14px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
    gap: 14px;
    align-items: stretch;
}

.home-hero-main {
    display: grid;
    gap: 10px;
    align-content: start;
}

.home-hero-main h1 {
    max-width: min(28ch, 100%);
}

.home-hero-heading {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.home-next-action {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-next-action span {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-next-action strong {
    color: var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-next-action p {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.home-next-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.home-next-footer small {
    min-width: min(280px, 100%);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.home-ops-hero {
    align-items: stretch;
}

.home-ops-hero .home-client-card {
    align-self: stretch;
}

.home-ops-hero .metric-link {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 116px;
    text-decoration: none;
    color: inherit;
}

.home-ops-hero .metric-label,
.home-ops-hero .metric-value,
.home-ops-hero .metric-note {
    margin-top: 0;
}

.home-ops-hero .metric-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.home-hero-copy {
    max-width: 68ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.home-hero-actions,
.home-card-actions,
.home-account-actions,
.home-panel-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.home-client-card {
    display: grid;
    gap: 8px;
    align-content: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(4, 169, 245, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
}

.home-client-card span,
.home-client-card small,
.home-job-result span,
.home-attention-kicker,
.home-work-tool,
.home-section-head span,
.home-section-title,
.home-panel-footer span {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-client-card strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-client-card small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
}

.home-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-metrics .metric,
.panel .home-metrics a.metric.metric-link {
    display: grid;
    gap: 8px;
    align-content: start;
}

.home-board-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
    gap: 14px;
    align-items: stretch;
}

.home-board-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: clamp(430px, 48vh, 540px);
    min-width: 0;
}

.home-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    margin-bottom: 12px;
}

.home-panel-head h2,
.home-section-head h3 {
    margin: 0;
    min-width: 0;
    color: var(--ink);
    line-height: 1.2;
}

.home-panel-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.9);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.home-scroll-region {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.home-scroll-region::-webkit-scrollbar {
    width: 8px;
}

.home-scroll-region::-webkit-scrollbar-track {
    background: rgba(229, 235, 243, 0.55);
    border-radius: 999px;
}

.home-scroll-region::-webkit-scrollbar-thumb {
    background: rgba(151, 163, 182, 0.7);
    border-radius: 999px;
}

.home-work-list,
.home-attention-list,
.home-system-list,
.home-job-list,
.home-control-list,
.home-account-list {
    display: grid;
    gap: 8px;
    align-content: start;
}

.home-work-item,
.home-attention-item,
.home-system-row,
.home-job-card,
.home-account-row {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.84);
}

.home-work-item,
.home-job-card {
    position: relative;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.home-work-item:hover,
.home-attention-item:hover,
.home-system-row:hover,
.home-job-card:hover {
    border-color: rgba(4, 169, 245, 0.24);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

.home-work-item {
    display: grid;
    grid-template-columns: minmax(120px, 0.2fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 10px 11px;
}

.home-work-overlay,
.home-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.home-work-item > *,
.home-job-card > * {
    position: relative;
    z-index: 2;
}

.home-work-meta,
.home-work-main,
.home-account-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.home-work-tool {
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-work-meta .status {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
}

.home-work-main strong,
.home-work-main span,
.home-account-main strong,
.home-account-main span,
.home-attention-item strong,
.home-attention-item small,
.home-attention-item em,
.home-job-card-head strong,
.home-job-card p,
.home-job-result strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-work-main strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.28;
}

.home-work-main span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.home-work-action {
    z-index: 3;
    white-space: nowrap;
}

.home-panel-footer {
    justify-content: flex-start;
    min-height: 36px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.home-panel-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-deep);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.home-control-list {
    gap: 14px;
}

.home-control-section {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.home-section-title {
    padding: 0 2px;
}

.home-attention-item,
.home-system-row {
    color: var(--ink);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.home-attention-item {
    display: grid;
    gap: 7px;
    min-height: 96px;
    padding: 11px;
}

.home-attention-item strong {
    font-size: 14px;
    line-height: 1.3;
}

.home-attention-item small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.home-attention-item em {
    align-self: end;
    color: var(--primary-deep);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.home-system-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 11px;
}

.home-system-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.home-system-row strong {
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.home-tone-success {
    border-color: rgba(45, 191, 124, 0.28);
    background: rgba(45, 191, 124, 0.08);
}

.home-tone-warning {
    border-color: rgba(255, 181, 71, 0.36);
    background: rgba(255, 248, 235, 0.88);
}

.home-tone-danger {
    border-color: rgba(241, 90, 108, 0.28);
    background: rgba(255, 248, 250, 0.92);
}

.home-tone-neutral {
    border-color: rgba(151, 163, 182, 0.25);
    background: rgba(248, 251, 255, 0.88);
}

.home-tools-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.home-tool-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    min-width: 0;
}

.home-tool-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    height: clamp(350px, 38vh, 430px);
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.72);
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.home-section-head h3 {
    font-size: 16px;
}

.home-section-head span {
    display: block;
    margin-top: 4px;
}

.home-section-head em {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.home-job-card {
    display: grid;
    gap: 8px;
    padding: 11px;
}

.home-job-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.home-job-card-head strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.home-job-card-head span,
.home-card-actions span {
    flex: 0 0 auto;
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 800;
}

.home-job-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.home-job-result {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid rgba(229, 235, 243, 0.92);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.74);
}

.home-job-result strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.32;
}

.home-card-actions {
    justify-content: space-between;
}

.home-card-actions a {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-card-actions a:hover {
    border-color: rgba(4, 169, 245, 0.24);
    color: var(--primary-deep);
}

.home-account-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
}

.home-account-panel .home-scroll-region {
    max-height: 380px;
}

.home-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px;
}

.home-account-main strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
}

.home-account-main span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.home-account-actions {
    grid-column: 1 / -1;
}

.home-empty-state {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.76);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.home-empty-state strong {
    color: var(--ink);
    font-size: 15px;
}

@media (max-width: 1180px) {
    .home-hero,
    .home-board-grid,
    .home-tool-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-board-panel {
        height: 440px;
    }

    .home-tool-column {
        height: 380px;
    }
}

@media (max-width: 760px) {
    .home-workspace {
        gap: 12px;
    }

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

    .home-board-panel {
        height: min(520px, 72vh);
    }

    .home-panel-head,
    .home-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .home-panel-count,
    .home-section-head em {
        align-self: flex-start;
    }

    .home-hero-actions,
    .home-account-actions,
    .home-card-actions,
    .home-panel-footer,
    .home-next-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero-actions .btn,
    .home-account-actions .btn,
    .home-work-action,
    .home-card-actions a,
    .home-panel-footer a,
    .home-next-footer .btn {
        width: 100%;
        min-width: 0;
    }

    .home-work-item {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .home-metrics .metric,
    .panel .home-metrics a.metric.metric-link {
        display: grid;
        gap: 6px;
        min-height: 88px;
    }

    .home-ops-hero .metric-link {
        min-height: 88px;
    }

    .home-account-row,
    .home-system-row,
    .home-job-card-head {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        flex-direction: column;
    }
}

/* Access center MVP2 */
.access-workspace {
    display: grid;
    gap: 18px;
}

.access-hero {
    display: grid;
    gap: 20px;
}

.access-hero-main,
.access-section-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.access-hero-main h2 {
    margin-bottom: 6px;
}

.access-hero-actions,
.access-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

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

.access-score {
    min-height: 86px;
    padding: 14px;
    border: 1px solid rgba(205, 215, 228, 0.78);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
}

.access-score span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.access-score strong {
    display: block;
    margin-top: 10px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
}

.access-grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
}

.access-panel-tight {
    min-height: 100%;
}

.access-action-list,
.access-split-map {
    display: grid;
    gap: 10px;
}

.access-action-item,
.access-split-map > div {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(205, 215, 228, 0.78);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
    text-decoration: none;
}

.access-split-map > div {
    grid-template-columns: 150px minmax(0, 1fr);
}

.access-action-item strong,
.access-split-map strong {
    display: block;
    font-size: 14px;
}

.access-action-item em,
.access-split-map span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.35;
}

.access-action-item b {
    color: var(--accent);
    font-size: 13px;
    white-space: nowrap;
}

.access-action-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6f8196;
}

.access-action-critical .access-action-dot {
    background: #c5364d;
}

.access-action-warning .access-action-dot {
    background: #b87816;
}

.access-action-info .access-action-dot {
    background: #3f7fb8;
}

.access-empty {
    padding: 14px;
    border: 1px dashed rgba(150, 164, 181, 0.65);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.54);
}

.access-table-wrap {
    border-radius: var(--radius-sm);
}

.access-table {
    min-width: 1080px;
    font-size: 13px;
}

.access-direct-table {
    min-width: 1320px;
}

.access-compact-table .access-table {
    min-width: 720px;
}

.access-table th,
.access-table td {
    padding: 10px 12px;
}

.access-table th {
    white-space: nowrap;
}

.access-row-actions .btn,
.access-inline-form .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.access-inline-form {
    display: inline-flex;
    margin: 0;
}

.btn.danger {
    border-color: rgba(197, 54, 77, 0.34);
    background: rgba(255, 240, 243, 0.92);
    color: #a9243b;
}

.btn.danger:hover {
    border-color: rgba(197, 54, 77, 0.52);
    background: rgba(255, 226, 232, 0.96);
}

.access-risk {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 224, 230, 0.9);
    color: #a9243b;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.access-mini-pill {
    display: inline-flex;
    max-width: 220px;
    margin: 0 4px 4px 0;
    padding: 3px 7px;
    border: 1px solid rgba(205, 215, 228, 0.85);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.86);
    color: var(--ink);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-metrika-form {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(200px, 1.4fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(205, 215, 228, 0.78);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 255, 0.72);
}

.access-metrika-form label {
    display: grid;
    gap: 6px;
}

.access-metrika-form label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.access-metrika-form input {
    min-width: 0;
}

@media (max-width: 1180px) {
    .access-grid-two,
    .access-scoreboard,
    .access-metrika-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .access-hero-main,
    .access-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .access-hero-actions,
    .access-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .access-workspace {
        gap: 12px;
    }

    .access-score strong {
        font-size: 26px;
    }

    .access-action-item,
    .access-split-map > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .access-action-dot {
        display: none;
    }

    .access-row-actions .btn,
    .access-row-actions form,
    .access-hero-actions .btn,
    .access-metrika-form .btn {
        width: 100%;
    }
}
/* negative placements specialist front */
.placement-policy-primary {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) auto minmax(260px, 1fr);
    gap: 12px;
    align-items: end;
}

.placement-policy-primary .btn {
    min-height: 42px;
}

.placement-policy-rules {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.placement-policy-rules > div:first-child {
    display: grid;
    gap: 4px;
}

.placement-policy-rules > div:first-child strong {
    font-size: 14px;
}

.placement-policy-rules > div:first-child span {
    max-width: 72ch;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.placement-policy-thresholds .settings-disclosure-body {
    padding-top: 2px;
}

.placement-baseline-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.placement-baseline-strip > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.placement-baseline-strip span,
.placement-baseline-strip small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.placement-baseline-strip strong {
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.placement-front-start {
    border-color: rgba(4, 169, 245, 0.22);
    background: linear-gradient(180deg, rgba(237, 249, 255, 0.94), rgba(255, 255, 255, 0.92));
}

.placement-front-grid,
.placement-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.25fr) minmax(160px, 0.5fr) auto;
    gap: 12px;
    align-items: end;
}

.placement-front-grid-compact {
    grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.35fr) auto;
}

.placement-front-actions,
.placement-filter-actions,
.placement-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.placement-front-status {
    margin-top: 12px;
    min-height: 38px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.placement-front-status.is-success {
    border-color: rgba(45, 191, 124, 0.26);
    background: rgba(45, 191, 124, 0.08);
    color: #126a44;
}

.placement-front-status.is-warning,
.placement-front-status-warning {
    border-color: rgba(255, 181, 71, 0.42);
    background: rgba(255, 181, 71, 0.13);
    color: #704510;
}

.placement-filter-toolbar {
    grid-template-columns: minmax(180px, 0.5fr) minmax(200px, 0.7fr) minmax(240px, 1fr);
    margin-bottom: 14px;
}

.placement-filter-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(300px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.placement-filter-box {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
}

.placement-filter-box h3 {
    font-size: 15px;
}

.placement-metric-row {
    display: grid;
    grid-template-columns: minmax(96px, 0.52fr) minmax(130px, 0.72fr) minmax(110px, 0.6fr);
    gap: 10px;
    align-items: center;
}

.placement-metric-row > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

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

.placement-row-hidden {
    display: none;
}

[data-placement-candidate-table] tr.is-updating td {
    opacity: 0.58;
}

@media (max-width: 1180px) {
    .placement-policy-primary {
        grid-template-columns: minmax(220px, 1fr) auto;
    }

    .placement-policy-primary > :last-child {
        grid-column: 1 / -1;
    }

    .placement-front-grid,
    .placement-front-grid-compact,
    .placement-filter-toolbar,
    .placement-filter-grid {
        grid-template-columns: 1fr;
    }

    .placement-front-actions,
    .placement-filter-actions,
    .placement-bulk-actions {
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .placement-policy-primary {
        grid-template-columns: 1fr;
    }

    .placement-policy-primary > :last-child {
        grid-column: auto;
    }

    .placement-policy-primary .btn {
        width: 100%;
    }

    .placement-metric-row {
        grid-template-columns: 1fr;
    }
}

/* Reports start screen */
.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;
}

.reports-home {
    display: grid;
    gap: 18px;
}

.reports-start-panel {
    padding-bottom: 18px;
}

.reports-start-head {
    align-items: center;
    margin-bottom: 0;
}

.reports-start-actions {
    flex: 0 0 auto;
}

.reports-start-actions .btn {
    min-width: 148px;
}

.reports-start-chips {
    margin-top: 14px;
}

.reports-home-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reports-history-panel {
    display: grid;
    gap: 14px;
}

.reports-history-head {
    align-items: center;
    margin-bottom: 0;
}

.reports-filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.reports-search-box {
    min-width: 0;
}

.reports-search-box input {
    width: 100%;
}

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

.reports-history-table {
    min-width: 980px;
}

.reports-history-table th,
.reports-history-table td {
    padding: 11px 12px;
}

.reports-run-cell {
    min-width: 220px;
}

.reports-run-title {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.reports-run-title:hover {
    color: var(--primary-deep);
}

.reports-run-meta,
.reports-status-note {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.reports-date-cell {
    white-space: nowrap;
}

.reports-file-actions {
    min-width: 142px;
}

.reports-open-cell {
    width: 94px;
    text-align: right;
}

.reports-open-cell .btn {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .reports-home-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reports-filter-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 760px) {
    .reports-start-head,
    .reports-history-head,
    .reports-start-actions {
        align-items: stretch;
    }

    .reports-start-actions .btn,
    .reports-history-head .btn {
        width: 100%;
    }

    .reports-home-metrics,
    .reports-filter-form {
        grid-template-columns: 1fr;
    }
}

.placement-algo-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 14px;
}

.placement-algo-flow-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.placement-algo-flow > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(4, 169, 245, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
}

.placement-algo-flow strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.placement-algo-flow span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 980px) {
    .placement-algo-flow,
    .placement-algo-flow-compact {
        grid-template-columns: 1fr;
    }
}

.datahub-ui-state {
    margin-top: 18px;
    border-color: rgba(16, 156, 241, 0.22);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.datahub-ui-state-not_linked {
    border-color: rgba(237, 174, 82, 0.34);
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(255, 255, 255, 0.92));
}

.datahub-ui-state-failed,
.datahub-ui-state-denied,
.datahub-ui-state-missing {
    border-color: rgba(241, 90, 108, 0.28);
}

.datahub-ui-state-head {
    margin-bottom: 12px;
}

.datahub-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.datahub-signal-card {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    overflow-wrap: anywhere;
}

.datahub-signal-card strong {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.datahub-signal-card span {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.datahub-signal-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.datahub-signal-card-ready,
.datahub-signal-card-available {
    border-color: rgba(45, 191, 124, 0.32);
    background: rgba(223, 245, 233, 0.46);
}

.datahub-signal-card-pending,
.datahub-signal-card-queued,
.datahub-signal-card-stale_ready {
    border-color: rgba(255, 181, 71, 0.38);
    background: rgba(255, 241, 207, 0.56);
}

.datahub-signal-card-missing,
.datahub-signal-card-failed,
.datahub-signal-card-denied {
    border-color: rgba(241, 90, 108, 0.32);
    background: rgba(255, 224, 230, 0.46);
}

.datahub-signal-card-not_linked,
.datahub-signal-card-unknown {
    border-color: rgba(237, 174, 82, 0.34);
    background: rgba(255, 248, 235, 0.64);
}

.datahub-ui-state-chips {
    margin-top: 10px;
}

.datahub-lineage-details {
    margin-top: 12px;
}

.datahub-lineage-details > summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.4;
}

.datahub-debug-line {
    margin-top: 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .datahub-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .datahub-signal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .datahub-signal-card {
        min-height: 0;
    }
}



/* Monitor home table refresh */
.monitor-primary-action {
    border: 0;
    color: #06210f;
    background: linear-gradient(135deg, #d7ff4f 0%, #42f5a4 52%, #04a9f5 100%);
    box-shadow: 0 14px 34px rgba(4, 169, 245, 0.28), 0 8px 18px rgba(66, 245, 164, 0.24);
    font-weight: 800;
}

.monitor-primary-action:hover {
    color: #04150a;
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(4, 169, 245, 0.34), 0 10px 22px rgba(66, 245, 164, 0.28);
}

.monitor-table-panel {
    margin-top: 0;
    padding: 12px;
    border-radius: 18px;
}

.monitor-table-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.monitor-table-title h2 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.monitor-table-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.monitor-table-head {
    align-items: flex-start;
    gap: 14px;
}

.monitor-table-toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.monitor-table-field {
    display: block;
    flex: 0 0 170px;
    min-width: 150px;
    max-width: 220px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.monitor-table-field select {
    width: 100%;
    min-height: 34px;
}

.monitor-table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.monitor-home-table {
    font-size: 13px;
}

.monitor-home-table th,
.monitor-home-table td {
    padding: 9px 12px;
    vertical-align: middle;
}

.monitor-home-table thead th {
    font-size: 11px;
}

.monitor-home-table .status {
    padding: 5px 9px;
    font-size: 11px;
}

.monitor-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.monitor-sort-link span {
    color: var(--muted);
    font-size: 13px;
}

.monitor-sort-link.is-active {
    color: var(--primary-deep);
}

.monitor-row-link {
    cursor: pointer;
}

.monitor-row-link:hover td {
    background: rgba(4, 169, 245, 0.045);
}

.monitor-blockers {
    margin-top: 6px;
    max-width: 280px;
    line-height: 1.35;
}

@media (max-width: 920px) {
    .monitor-table-toolbar {
        flex-wrap: wrap;
    }

    .monitor-table-field,
    .monitor-table-search {
        flex-basis: 100%;
        max-width: none;
    }
}

.tool-history-toolbar-form {
    justify-content: flex-start;
}

.tool-clickable-row {
    cursor: pointer;
}

.tool-clickable-row:hover td {
    background: rgba(236, 249, 255, 0.72);
}

/* Audit home workbench */
.audit-run-toolbar {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.audit-run-search {
    flex: 1 1 360px;
    min-width: 280px;
    max-width: 440px;
}

.audit-run-filter-row {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.audit-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
}

.audit-run-submit,
.audit-run-reset {
    flex: 0 0 auto;
    white-space: nowrap;
}

.audit-run-table {
    min-width: 980px;
}

.audit-run-table th,
.audit-run-table td {
    padding: 9px 12px;
}

.audit-run-row:focus {
    outline: 2px solid rgba(4, 169, 245, 0.36);
    outline-offset: -2px;
}

.audit-run-row:focus td,
.audit-run-row:hover td {
    background: rgba(236, 249, 255, 0.72);
}

.audit-run-table .tool-row-actions {
    flex-wrap: nowrap;
}

.audit-risk-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.audit-risk-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.10);
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.audit-risk-badge.critical {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(254, 226, 226, 0.82);
    color: #991b1b;
}

.audit-risk-badge.high {
    border-color: rgba(234, 88, 12, 0.24);
    background: rgba(255, 237, 213, 0.86);
    color: #9a3412;
}

.audit-risk-badge.medium {
    border-color: rgba(217, 119, 6, 0.24);
    background: rgba(254, 243, 199, 0.88);
    color: #92400e;
}

.audit-risk-badge.low {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(219, 234, 254, 0.76);
    color: #1d4ed8;
}

@media (max-width: 1180px) {
    .audit-run-toolbar {
        flex-wrap: wrap;
    }

    .audit-run-search {
        flex-basis: 100%;
        max-width: none;
    }

    .audit-run-filter-row {
        flex-wrap: wrap;
    }
}


.newclient-analytics-panel {
    display: grid;
    gap: 16px;
}

.newclient-analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.newclient-analytics-kpi {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.newclient-analytics-kpi.is-primary {
    border-color: rgba(4, 169, 245, 0.26);
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.09), rgba(255, 255, 255, 0.92));
}

.newclient-analytics-kpi span,
.newclient-analytics-card-head span,
.newclient-analytics-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.newclient-analytics-kpi strong {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.1;
}

.newclient-analytics-kpi em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.newclient-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 12px;
    align-items: start;
}

.newclient-analytics-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.newclient-analytics-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.newclient-analytics-card-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.newclient-analytics-card-head strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.newclient-analytics-card-head > span {
    flex: 0 0 auto;
    max-width: 45%;
    text-align: right;
}

.newclient-season-bars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(54px, 1fr);
    gap: 8px;
    align-items: end;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 0 8px;
    scrollbar-width: thin;
}

.newclient-season-row {
    display: grid;
    grid-template-rows: 30px 132px 34px;
    gap: 7px;
    align-items: stretch;
    min-width: 54px;
}

.newclient-season-row span,
.newclient-season-row strong {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.newclient-season-row span {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.newclient-season-row strong {
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-wrap: anywhere;
}

.newclient-season-row > div {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 132px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.newclient-season-row i {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 8px 8px 4px 4px;
    background: rgba(4, 169, 245, 0.64);
}

.newclient-season-row.is-peak i {
    background: rgba(16, 185, 129, 0.72);
}

.newclient-season-row.is-latest span,
.newclient-season-row.is-latest strong {
    font-weight: 800;
}

.newclient-season-row.is-current-month > div {
    box-shadow: 0 0 0 1px rgba(4, 169, 245, 0.28) inset;
}

.newclient-season-sparkline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(52px, 1fr);
    gap: 8px;
    align-items: end;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 8px;
    scrollbar-width: thin;
}

.newclient-season-point {
    display: grid;
    grid-template-rows: 112px 26px 28px;
    gap: 6px;
    min-width: 52px;
    align-items: stretch;
}

.newclient-season-point > div {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 112px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.newclient-season-point i {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 8px 8px 4px 4px;
    background: rgba(4, 169, 245, 0.62);
}

.newclient-season-point.is-peak i {
    background: rgba(16, 185, 129, 0.72);
}

.newclient-season-point.is-current-month > div {
    box-shadow: 0 0 0 1px rgba(4, 169, 245, 0.28) inset;
}

.newclient-season-point span,
.newclient-season-point strong {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.newclient-season-point strong {
    color: var(--ink);
    font-weight: 800;
}

.newclient-season-point.is-latest span,
.newclient-season-point.is-latest strong {
    color: var(--ink);
}

.newclient-analytics-table {
    margin-top: 0;
}

.newclient-analytics-table table {
    min-width: 640px;
}

.newclient-analytics-table th,
.newclient-analytics-table td {
    padding-top: 9px;
    padding-bottom: 9px;
    vertical-align: top;
}

.newclient-competitor-visibility-card {
    margin-top: 0;
}

.newclient-visibility-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.92);
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
}

.newclient-visibility-status.is-empty,
.newclient-visibility-summary-card.is-empty {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(255, 251, 235, 0.72);
}

.newclient-visibility-status.is-warning,
.newclient-visibility-summary-card.is-warning {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(254, 242, 242, 0.74);
}

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

.newclient-visibility-summary-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.newclient-visibility-summary-card > span,
.newclient-visibility-summary-card em,
.newclient-mini-metrics span,
.newclient-query-check-strip em,
.newclient-query-badge-list em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.newclient-visibility-summary-card > strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.05;
}

.newclient-competitor-ads-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(4, 169, 245, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(4, 169, 245, 0.055), rgba(255, 255, 255, 0.96));
}

.newclient-competitor-ads-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.newclient-competitor-ads-head > div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.newclient-competitor-ads-head strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.newclient-competitor-ads-head span,
.newclient-ad-summary-row span,
.newclient-ad-domain-strip em,
.newclient-ad-copy span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.newclient-competitor-ads-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.newclient-ad-summary-row,
.newclient-ad-domain-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.newclient-ad-summary-row span,
.newclient-ad-domain-strip span {
    display: inline-grid;
    gap: 2px;
    max-width: 260px;
    padding: 7px 9px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.newclient-ad-summary-row strong,
.newclient-ad-domain-strip strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newclient-ad-table table {
    min-width: 1080px;
}

.newclient-ad-table td:first-child,
.newclient-ad-table td:nth-child(2),
.newclient-ad-table td:nth-child(4) {
    display: grid;
    gap: 4px;
}

.newclient-ad-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
    max-width: 520px;
}

.newclient-ad-copy strong {
    color: #075985;
    font-size: 13px;
    line-height: 1.3;
}

.newclient-ad-copy span {
    color: #475569;
}

.newclient-ad-link {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    vertical-align: top;
    white-space: nowrap;
}

.newclient-ad-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.72);
}

.newclient-ad-pagination-status {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.newclient-ad-pagination-controls,
.newclient-ad-page-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.newclient-ad-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.newclient-ad-page-button.is-active {
    border-color: rgba(4, 169, 245, 0.34);
    background: rgba(4, 169, 245, 0.1);
    color: #0369a1;
}

.newclient-ad-empty-state {
    margin: 0;
}

.newclient-mini-metrics,
.newclient-query-check-strip,
.newclient-query-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.newclient-mini-metrics span,
.newclient-query-check-strip span,
.newclient-query-badge-list span {
    display: inline-grid;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.9);
}

.newclient-query-check-strip span,
.newclient-query-badge-list span {
    max-width: 260px;
}

.newclient-query-check-strip strong,
.newclient-query-badge-list strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newclient-query-badge-list .is-muted {
    background: rgba(241, 245, 249, 0.72);
}

.newclient-visibility-table td:first-child,
.newclient-visibility-table td:nth-child(2) {
    display: grid;
    gap: 3px;
}

.newclient-analytics-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.82);
}

@media (max-width: 1100px) {
    .newclient-analytics-kpi-grid,
    .newclient-analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .newclient-analytics-kpi-grid,
    .newclient-analytics-grid,
    .newclient-visibility-summary-grid {
        grid-template-columns: 1fr;
    }

    .newclient-analytics-card-head {
        display: grid;
    }

    .newclient-competitor-ads-head {
        display: grid;
    }

    .newclient-competitor-ads-actions {
        justify-content: flex-start;
    }

    .newclient-ad-pagination {
        display: grid;
    }

    .newclient-ad-pagination-controls {
        justify-content: flex-start;
    }

    .newclient-analytics-card-head > span {
        max-width: none;
        text-align: left;
    }

    .newclient-season-bars {
        grid-auto-columns: minmax(58px, 72px);
    }

    .newclient-season-row {
        grid-template-rows: 28px 118px 34px;
    }

    .newclient-season-row > div {
        height: 118px;
    }
}

.newclient-ad-discovery-facts {
    margin: 0;
}

.newclient-ad-discovery-facts .report-chip span {
    overflow-wrap: anywhere;
}

.newclient-ad-discovery-details {
    margin-top: 0;
}
