/* Shared presentation for task and reading surfaces. Their individual layouts and calculations remain local. */

/* Report metadata remains readable; chart axes have their own compact scale below. */
.vk-analysis-access,
.vk-launch-panel__scope,
.vk-launch-panel__note,
.vk-section-kicker,
.vk-section-head p,
.vk-section-count,
.vk-saved-link__meta,
.vk-saved-link__attention,
.vk-state,
.vk-community-photo--empty,
.vk-community-card__eyebrow,
.vk-community-category,
.vk-community-category__form .tg-button,
.vk-community-category__status,
.vk-community-category__edit,
.vk-community-card__link,
.vk-community-card__aside small,
.vk-category-feedback label,
.vk-category-dialog__actions .tg-button,
.vk-wait-status--compact,
.vk-report-section__head p,
.vk-data-caution,
.vk-metric-card__label,
.vk-metric-card small,
.vk-formula h3,
.vk-formula p,
.vk-formula code,
.vk-distribution-guide > *,
.vk-distribution-guide small,
.vk-distribution-guide span,
.vk-format-row,
.vk-format-row span small,
.vk-format-row > small,
.vk-reaction-profile__row,
.vk-time-analysis__status,
.vk-gap-list div,
.vk-half-comparison span,
.vk-half-comparison small,
.vk-example-columns h3,
.vk-example-columns h4,
.vk-example-row strong,
.vk-example-row span,
.vk-example-row .vk-example-row__text,
.vk-hypothesis-card__status,
.vk-hypothesis-facts dt,
.vk-hypothesis-facts dd,
.vk-hypothesis-card__evidence,
.vk-hypothesis-card__result,
.vk-hypothesis-evaluation h5,
.vk-hypothesis-evaluation__state,
.vk-hypothesis-evaluation__snapshot,
.vk-hypothesis-evaluation__summary,
.vk-hypothesis-evaluation__caution,
.vk-hypothesis-evaluation__facts dt,
.vk-hypothesis-evaluation__facts dd,
.vk-hypothesis-evaluation__posts li,
.vk-hypothesis-evaluation__posts small,
.vk-hypothesis-evaluation__limitations,
.vk-hypothesis-status-form label,
.vk-hypothesis-status-form .tg-field__control,
.vk-hypothesis-status-form .tg-button,
.vk-hypothesis-create__head p,
.vk-hypothesis-evidence legend,
.vk-hypothesis-evidence label,
.vk-hypothesis-test-posts legend,
.vk-hypothesis-test-posts__intro,
.vk-hypothesis-test-posts__limit,
.vk-hypothesis-test-posts__choice,
.vk-hypothesis-test-posts__choice strong,
.vk-hypothesis-test-posts__choice small,
.vk-hypothesis-test-posts--readonly h4,
.vk-hypothesis-test-posts--readonly ul,
.vk-hypothesis-history__head p:last-child,
.vk-hypothesis-history__summary-copy strong,
.vk-hypothesis-history__summary-copy small,
.vk-hypothesis-history__snapshot,
.vk-hypothesis-history__status,
.vk-hypothesis-history__result,
.vk-hypothesis-history__facts dt,
.vk-hypothesis-history__facts dd,
.vk-hypothesis-history__manual,
.vk-hypothesis-history__suggestion,
.vk-hypothesis-history__links,
.vk-hypothesis-history__evaluated,
.vk-snapshot-diff__facts span,
.vk-snapshot-diff__facts small,
.vk-snapshot-diff__limitations,
.vk-plain-details > summary,
.vk-weekly-details > summary,
.vk-insight-card__label,
.vk-ai-feedback .btn,
.vk-ai-feedback .form-select,
.vk-dynamics-table thead th,
.vk-dynamics-table tbody td,
.vk-dynamics-table--outcomes td:first-child small,
.vk-top-column h3,
.vk-post-card__meta,
.vk-post-card__link,
.vk-report-note,
.vk-next-actions__item::before,
.vk-next-actions__type,
.vk-next-actions__statement,
.vk-next-actions__limitation,
.vk-next-actions__link,
.vk-next-actions__evidence a,
.vk-minute-summary p,
.vk-minute-summary a,
.vk-report-toolbar a,
.vk-report-scope,
.vk-operations-grid span,
.vk-operations-list dt,
.vk-operations-list dd,
.vk-operations-limits dt,
.vk-operations-limits dd { font-size: .875rem; }

.tg-tool, .tools-catalog-page, .simple-page, .space-page {
    color: var(--tg-ink);
    padding-block: clamp(2rem, 4vw, 3.5rem);
}
.tg-tool > .container { width: min(100% - 2rem, var(--tg-content)); max-width: var(--tg-content); padding-inline: 0; }
.tg-tool [hidden] { display: none !important; }
.tg-tool :is(section, article, aside, form, fieldset, label, details, summary) { min-width: 0; max-width: 100%; }
.tg-tool :is(.hiring-field, .hiring-result-option, .agency-margin-empty-row, .agency-margin-result-row,
.funnel-diagnosis-top, .funnel-diagnosis-top > div, .decoder-result-body, .decoder-empty-state,
.glossary-index-shell, .glossary-list-shell, .glossary-script-section, .glossary-alpha-grid,
.glossary-alpha-list, .glossary-search-wrap, .glossary-category-nav) { min-width: 0; max-width: 100%; }
.tg-tool :is(.decoder-result-body, .glossary-index-shell, .glossary-alpha-list, .utm-result-actions) { grid-template-columns: minmax(0, 1fr); }
.tg-tool :is(.agency-margin-empty-row, .agency-margin-result-row, .agency-margin-breakdown-row, .agency-margin-plan-metric) { flex-wrap: wrap; }
.tg-tool :is(.agency-margin-empty-row, .agency-margin-result-row, .agency-margin-breakdown-row) > * { min-width: 0; overflow-wrap: anywhere; }
.tg-tool .utm-advanced-title { display: flex; max-width: 100%; overflow-wrap: anywhere; }
.tg-tool .utm-advanced-title::after { flex-shrink: 0; }
.tg-tool :is(.utm-example-card, .utm-guide-card, .decoder-example-card, .decoder-guide-card) { min-width: 0; max-width: 100%; background: var(--tg-paper); }
.tg-tool :is(.utm-example-title, .utm-example-copy, .utm-guide-card-title, .decoder-guide-card-title, .decoder-empty-state) { overflow-wrap: anywhere; }
.tg-tool :is(.utm-tag, .utm-example-tag, .utm-guide-code, .decoder-guide-code) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tg-tool :is(.glossary-recommended-head, .glossary-search-card-head, .glossary-alpha-link) { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.tg-tool :is(.glossary-recommended-badge, .glossary-search-card-category, .glossary-alpha-level) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tg-tool .glossary-category-nav { scrollbar-width: thin; }
.tg-tool .glossary-category-nav::-webkit-scrollbar { display: block; height: 6px; }
.tg-tool .decoder-result-hint.is-success { color: var(--tg-positive); }
.tg-tool.funnel-page { --funnel-warm: #8a4c25; }
.tg-tool.agency-margin-page { --agency-margin-warm: #8a4c25; }
.tg-tool .funnel-stage-bar-fill { background: var(--tg-accent); }
.tg-tool h1, .tools-catalog-hero h1 { max-width: 24ch; font-size: clamp(2.125rem, 3.4vw, 2.875rem); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tg-tool :is(.utm-hero, .decoder-hero, .hiring-hero, .agency-margin-hero, .funnel-hero, .glossary-index-hero) { margin-bottom: 2.25rem; }
.tg-tool :is(.utm-subtitle, .decoder-subtitle, .hiring-subtitle, .agency-margin-subtitle, .funnel-subtitle, .budget-subtitle, .retention-subtitle, .glossary-index-subtitle) { color: var(--tg-muted); font-size: 1.0625rem; line-height: 1.6; }
.tg-tool :is(.utm-copy, .decoder-copy, .hiring-copy, .agency-margin-copy, .funnel-copy) { font-size: 1rem; }
.tg-tool :is(.utm-kicker, .decoder-kicker, .hiring-kicker, .agency-margin-kicker, .funnel-kicker),
.tools-catalog-hero > .tg-eyebrow, .simple-page__intro > .tg-eyebrow, .glossary-detail-kicker { display: none; }
.tg-tool :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    font: inherit;
    font-size: 1rem;
    border-radius: var(--tg-radius-control);
    border-color: var(--tg-line-strong);
    caret-color: var(--tg-accent);
}
.tg-tool input::placeholder, .tg-tool textarea::placeholder { color: var(--tg-muted); opacity: 1; }
.tg-tool button { min-height: 44px; font-size: .9375rem; }
.tg-tool .funnel-stage-remove { width: 44px; height: 44px; flex: 0 0 44px; }
.tg-tool .funnel-stage-row { grid-template-columns: 2rem minmax(0, 1fr) 7rem 44px; }
.tg-tool :is(.hiring-button, .agency-margin-button, .funnel-button, .utm-button, .decoder-button) { border-radius: var(--tg-radius-control); }
.tg-tool :is(.hiring-button, .agency-margin-button, .funnel-button, .utm-button, .decoder-button):active { opacity: .8; }
.tg-tool :is(.hiring-card, .agency-margin-card, .funnel-form-shell, .funnel-panel, .funnel-diagnosis-card, .decoder-result-card) { background: var(--tg-paper); box-shadow: none; }
.tg-tool :is(.hiring-result-card, .agency-margin-result-card, .budget-result-panel, .retention-result-panel, .decoder-result-card) { background: var(--tg-wash); border: 1px solid var(--tg-line); }
.tg-tool :is(.budget-result-value, .retention-result-value, .hiring-result-total, .agency-margin-result-metric, .hiring-result-option-total, .agency-margin-kpi-value) { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.12; }
.tg-tool :is(.budget-result-value, .retention-result-value) { font-size: clamp(2rem, 4vw, 3.5rem); }
.tg-tool :is(.budget-field-row, .retention-field-row) { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.tg-tool :is(.budget-field-row, .retention-field-row) label { font-size: .9375rem; line-height: 1.4; }
.tg-tool :is(.budget-field-row, .retention-field-row) .calculator-field-error { grid-column: 2; }
.tg-tool :is(.hiring-result-option-head, .agency-margin-result-head, .funnel-stage-head, .decoder-param-head) { flex-wrap: wrap; }
.tg-tool :is(.hiring-result-option-title, .agency-margin-section-title, .funnel-section-title, .decoder-param-key) { overflow-wrap: anywhere; }
.tg-tool :is(.utm-advanced, .decoder-explain, .hiring-info-card, .agency-margin-info-card) { border-color: var(--tg-line); }
.tg-tool .utm-result-card { background: var(--tg-accent-dark); }
.tg-tool .utm-result-preview.is-empty { color: #c5d2e6; }
.tg-tool .utm-result-subtitle { color: #d7e1ef; }
.tg-tool .glossary-search-input { min-height: 56px; border-radius: var(--tg-radius-field); }
.tg-tool .glossary-category-link { border-radius: 9px; min-height: 44px; }
.tg-tool .glossary-category-link.is-active { background: #eaf1ff; color: var(--tg-accent); }
.tg-tool :is(.glossary-recommended-card, .glossary-search-card) { border-radius: var(--tg-radius-card); }
.tg-tool .glossary-detail-term { line-height: 1.12; }
.tg-tool .glossary-detail-back { min-height: 44px; }
.tg-tool :is(.glossary-detail-text, .glossary-detail-formula, .glossary-detail-example, .glossary-alpha-link) { overflow-wrap: anywhere; }
.tg-tool .glossary-detail-inner { max-width: 58rem; }
.tg-tool .glossary-detail-section { padding-bottom: 1.25rem; border-bottom: 1px solid var(--tg-line); }
.tools-catalog-hero { max-width: 50rem; margin-bottom: 2.5rem; }
.tools-catalog-grid { gap: 1rem; border: 0; background: transparent; }
.tools-catalog-card { min-width: 0; min-height: 200px; border: 1px solid var(--tg-line); border-radius: var(--tg-radius-card); padding: 1.5rem; transition: background-color 120ms ease-out, border-color 120ms ease-out; }
.tools-catalog-card__title { font-size: 1.2rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tools-catalog-card__description { font-size: 1rem; line-height: 1.6; }
.tools-catalog-card__cta { font-size: .9375rem; font-weight: 500; }
.tools-catalog-card:hover { background: #fafcff; color: var(--tg-ink); border-color: #a9bee3; }
.tools-catalog-card:hover .tools-catalog-card__description { color: var(--tg-muted); }
.tools-catalog-card:hover .tools-catalog-card__cta { color: var(--tg-accent); }
.tools-catalog-analyzer, .space-analyzer-entry { border: 1px solid var(--tg-line); border-radius: var(--tg-radius-card); }
.tools-catalog-analyzer .tg-eyebrow, .space-analyzer-entry .tg-eyebrow { display: none; }
.simple-page__intro { max-width: 52rem; }
.simple-page__intro h1 { max-width: 24ch; font-size: clamp(2.125rem, 3.4vw, 2.875rem); line-height: 1.12; }
.simple-page__grid { display: block; max-width: 48rem; border: 0; background: transparent; }
.simple-page__grid > article { padding: 1.5rem 0; border-top: 1px solid var(--tg-line); }
.simple-page__grid h2 { font-size: 1.3rem; line-height: 1.3; }
.simple-page__grid p { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.space-page { max-width: 48rem; }
.space-page .list-unstyled > li + li { border-top: 1px solid var(--tg-line); }
.space-page .list-unstyled a { display: block; padding: .8rem .25rem; color: var(--tg-accent) !important; text-align: left; }
.space-page .list-unstyled { margin-top: 1rem; }
.vk-launch-panel, .vk-community-card, .vk-analysis-card, .vk-saved-list, .vk-state-panel, .vk-hypothesis-card, .vk-operations-limits { border-radius: var(--tg-radius-card); }
.vk-community-card__name, .vk-saved-link__name { overflow-wrap: anywhere; }
.vk-analysis-shell, .vk-operations-shell { grid-template-columns: minmax(0, 1fr); }
.vk-analysis-shell > *, .vk-operations-shell > *, .vk-community-category,
.vk-community-category__form, .vk-community-card > *, .vk-operations-hero > * { min-width: 0; max-width: 100%; }
.vk-community-category__form .form-select { min-width: 0; width: 100%; max-width: 24rem; font-size: 1rem; }
.vk-analysis-page :is(h1, h2, h3), .vk-operations-page :is(h1, h2, h3),
.vk-operations-list :is(dt, dd), .vk-operations-limits :is(dt, dd), .vk-community-card__link { overflow-wrap: anywhere; }
.vk-operations-list > div, .vk-operations-limits dl > div { flex-wrap: wrap; }
.vk-launch-panel { border: 1px solid var(--tg-line); background: var(--tg-wash); }
.vk-category-dialog { border: 1px solid var(--tg-line); border-radius: var(--tg-radius-card); }
.vk-category-dialog__close { width: 44px; height: 44px; }
.vk-community-category__edit { min-height: 44px; padding-inline: .3rem; }
.vk-community-category__form .tg-button { min-height: 44px; font-size: .875rem; }
.vk-report-note, .vk-analysis-access, .vk-community-card__aside small, .vk-metric-card__label, .vk-metric-card small { font-size: .875rem; }
.vk-metric-value { line-height: 1.12; }
.not-found-page { background: var(--tg-wash); color: var(--tg-ink); }
.not-found-status { color: var(--tg-accent-dark); text-shadow: none; }
.not-found-step { box-shadow: none; background: var(--tg-paper); border-radius: var(--tg-radius-card); }
.catalog-detail-hero .tg-title-xl, .catalog-article-hero h1 { max-width: 26ch; font-size: clamp(2.125rem, 3.4vw, 2.875rem); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.catalog-index, .catalog-breadcrumbs, .catalog-article-date, .catalog-related a,
.catalog-service-action > .catalog-partner-disclosure, .catalog-promo .catalog-promo__terms,
.catalog-service-action > p, .catalog-sources li, .catalog-reading .catalog-sources li { font-size: .875rem; }
.catalog-related section { border: 1px solid var(--tg-line); }
.tg-notice, .home-auth-step, .vk-analysis-message, .vk-data-caution, .vk-formula,
.vk-hypothesis-evaluation__limitations, .vk-hypothesis-history__suggestion,
.vk-snapshot-diff__limitations, .vk-ai-block, .vk-next-actions__limitation,
.catalog-continuation { border-left-width: 1px; }
.vk-state-panel__visual span { animation: none; }
.vk-state-panel__visual { background: transparent; }
.vk-distribution-guide__usual { box-shadow: none; background: var(--tg-wash); }
.vk-launch-panel__head, .vk-analysis-access, .vk-community-card__aside { flex-wrap: wrap; }
.vk-launch-panel__scope, .vk-section-count, .vk-hypothesis-history__result { white-space: normal; overflow-wrap: anywhere; }
.vk-report-section__head, .vk-hypothesis-card__head, .vk-hypothesis-evaluation__head { flex-wrap: wrap; }
.vk-hypothesis-history__item summary { flex-wrap: wrap; }
.vk-rhythm-chart__bar b, .vk-distribution-chart__bar b, .vk-rhythm-chart__bar small,
.vk-distribution-chart__bar small, .vk-scatter__legend, .vk-audience-chart__summary span,
.vk-time-analysis__status { font-size: .875rem; line-height: 1.4; }
.vk-scatter__axis, .vk-scatter__axis b, .vk-audience-chart__axis, .vk-audience-chart__axis b { font-size: .75rem; line-height: 1.3; }
.vk-time-grid__corner, .vk-time-grid__head, .vk-time-grid__day, .vk-time-grid__cell small { font-size: .875rem; line-height: 1.4; }
.vk-time-grid { grid-template-columns: 3.5rem repeat(4, minmax(8rem, 1fr)); min-width: 40rem; }
.vk-time-analysis, .vk-dynamics-wrap, .funnel-table-region { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.vk-dynamics-table { min-width: 38rem; }
.vk-dynamics-table :is(th, td) { white-space: normal; }
.vk-hypothesis-status-form .tg-field__control, .vk-category-feedback .form-select { min-height: 44px; font-size: 1rem; }
.vk-hypothesis-status-form .tg-button, .vk-category-dialog__actions .tg-button { min-height: 44px; }
@media (max-width: 991.98px) {
    .tg-tool .funnel-form-shell { order: 0; }
    .tg-tool .funnel-result-shell { order: 1; }
    .tg-tool :is(.hiring-layout, .agency-margin-layout, .decoder-builder-main, .utm-builder-main) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .tg-tool :is(.hiring-settings-grid, .hiring-field-grid, .agency-margin-field-grid,
    .funnel-layout, .funnel-settings-grid, .funnel-kpis, .funnel-diagnosis-top,
    .utm-example-grid, .utm-guide-grid, .decoder-example-grid, .decoder-guide-grid,
    .glossary-feature-grid, .glossary-recommended-grid, .glossary-search-results) { grid-template-columns: minmax(0, 1fr); }
    .tg-tool :is(.hiring-result-option-head, .agency-margin-empty-row, .agency-margin-result-row) { flex-direction: column; align-items: stretch; }
    .tg-tool .agency-margin-result-row-value { text-align: left; }
    .tg-tool :is(.funnel-form-actions, .utm-result-actions, .decoder-actions) > button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .tg-tool .funnel-stage-row { grid-template-columns: minmax(0, 1fr); }
    .tg-tool :is(.budget-field-row, .retention-field-row) { grid-template-columns: minmax(0, 1fr); }
    .tg-tool :is(.budget-field-help, .retention-field-help) { grid-column: 1; }
    .tg-tool :is(.budget-field-row, .retention-field-row) .calculator-field-error { grid-column: 1; }
    .tg-tool :is(.budget-result-panel, .retention-result-panel) { padding: 1.25rem; }
    .tg-tool :is(.budget-metrics, .retention-metrics) > .col-4 { width: 100%; text-align: left; }
    .tools-catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .tools-catalog-card { min-height: 0; }
    .tg-tool .funnel-table { min-width: 32rem; }
    .tg-tool .funnel-table th, .tg-tool .funnel-table td { min-width: 5rem; }
    .tg-tool :is(.hiring-result-card, .agency-margin-result-card) { position: static; }
    .vk-metric-value { white-space: normal; overflow-wrap: anywhere; }
}
@media (hover: none) {
    .tools-catalog-card:hover { background: #fff; border-color: var(--tg-line); }
}
@media (max-width: 575.98px) {
    .catalog-card-grid { grid-template-columns: minmax(0, 1fr); }
    .vk-community-card, .vk-operations-hero, .vk-operations-columns { grid-template-columns: minmax(0, 1fr); }
    .vk-community-photo { grid-column: 1; }
    .vk-community-card__aside { grid-column: 1; }
    .vk-operations-hero { display: grid; }
    .vk-operations-hero .tg-button { max-width: 100%; white-space: normal; }
    .vk-operations-grid > *, .vk-report-section, .vk-community-card > * { min-width: 0; }
    .vk-operations-grid strong { overflow-wrap: anywhere; }
    .vk-reaction-profile { min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .vk-reaction-profile__row { min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 5rem); gap: .4rem .65rem; }
    .vk-reaction-profile__row > span { grid-column: 1 / -1; overflow-wrap: anywhere; }
    .vk-reaction-profile__row > i, .vk-reaction-profile__row > strong { min-width: 0; max-width: 100%; }
    .vk-reaction-profile__row > strong { overflow-wrap: anywhere; }
}
@media print {
    .vk-time-analysis, .vk-dynamics-wrap { overflow: visible; }
    .vk-time-grid { min-width: 0; grid-template-columns: 2.5rem repeat(4, minmax(0, 1fr)); }
    .vk-time-grid__cell small { font-size: .65rem; }
    .vk-dynamics-table { min-width: 0; }
}
