/**
 * Wspólne style kalkulatorów jobleer.pl — JEDNO ŹRÓDŁO PRAWDY.
 * Path in child theme: calcs/css/calc-style.css
 *
 * Wszystkie shortcode'y kalkulatorów ładują TEN JEDEN plik (handle: jobleer-calc-style).
 * NIE twórz osobnego CSS per kalkulator i nie nazywaj arkusza od nazwy shortcodu.
 *
 * To generyczny TOOLKIT: każdy kalkulator buduje UI z klas .calc__* (chrome + widżety),
 * a różnicuje go tylko treścią/logiką (JS) i ewentualnym własnym blokiem BEM dopisanym niżej.
 * Root każdego kalkulatora: <div class="advanced-calculator ...">.
 */

/* ============================================================
   TOKENY + KONTENER
   ============================================================ */

.advanced-calculator {
    --calc-primary: var(--primary, #2563eb);
    --calc-primary-dark: var(--primary-dark, #1e3a8a);
    --calc-profit: var(--success, #16a34a);
    --calc-profit-dark: var(--success-dark, #0f7a36);
    --calc-cost: var(--neutral, #64748b);
    --calc-loss: var(--danger, #dc2626);
    --calc-bg: var(--base-light, #f8fafc);
    --calc-border: var(--base-medium, #e2e8f0);
    --calc-text: var(--text-dark, #0f172a);
    --calc-muted: var(--text-muted, #64748b);
    --calc-white: var(--white, #fff);

    font-family: var(--text-body, system-ui, sans-serif);
    max-width: 100%;
    margin-bottom: var(--space-l, 2rem);
    background-color: var(--calc-white);
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-l, 16px);
    overflow: hidden;
    color: var(--calc-text);
    box-shadow: 0 10px 30px -12px rgba(2, 6, 23, 0.18);
}

/* ============================================================
   CHROME — nagłówek, ciało, formularz, panel wyników, stopka
   ============================================================ */

.advanced-calculator .calc__head {
    background: linear-gradient(135deg, var(--calc-primary), var(--calc-primary-dark));
    color: var(--calc-white);
    padding: var(--space-m, 1.75rem);
    text-align: center;
}

.advanced-calculator .calc__title {
    margin: 0;
    color: var(--calc-white);
    font-size: var(--text-xl, 1.6rem);
}

.advanced-calculator .calc__subtitle {
    margin-top: var(--space-xs, 0.5rem);
    opacity: 0.92;
    font-size: var(--text-s, 0.95rem);
}

.advanced-calculator .calc__body {
    padding: var(--space-l, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l, 2rem);
    align-items: start;
}

@media (max-width: 820px) {
    .advanced-calculator .calc__body {
        grid-template-columns: 1fr;
        gap: var(--space-m, 1.5rem);
    }
}

.advanced-calculator .calc__group {
    margin-bottom: var(--space-m, 1.25rem);
}

.advanced-calculator .calc__label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs, 0.5rem);
    font-size: var(--text-s, 0.9rem);
    color: var(--calc-text);
}

.advanced-calculator .calc__hint {
    display: block;
    font-weight: 400;
    font-size: var(--text-xs, 0.78rem);
    color: var(--calc-muted);
    margin-top: 0.15rem;
}

.advanced-calculator .calc__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.advanced-calculator .calc__input {
    width: 100%;
    padding: var(--space-s, 0.8rem);
    padding-right: 3.5rem;
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-s, 8px);
    font-size: var(--text-m, 1.05rem);
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--calc-text);
    background: var(--calc-white);
}

.advanced-calculator .calc__input:focus {
    outline: none;
    border-color: var(--calc-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--calc-primary) 18%, transparent);
}

.advanced-calculator .calc__unit {
    position: absolute;
    right: var(--space-s, 0.85rem);
    font-size: var(--text-s, 0.9rem);
    font-weight: 600;
    color: var(--calc-muted);
    pointer-events: none;
}

.advanced-calculator .calc__results {
    background: var(--calc-bg);
    border-radius: var(--radius-m, 14px);
    border: 1px solid var(--calc-border);
    padding: var(--space-m, 1.5rem);
}

.advanced-calculator .calc__footer {
    padding: var(--space-s, 1rem) var(--space-l, 2rem);
    border-top: 1px solid var(--calc-border);
    font-size: var(--text-xs, 0.75rem);
    text-align: center;
    color: var(--calc-muted);
}

/* ============================================================
   WIDŻETY WYNIKÓW (współdzielone)
   ============================================================ */

/* Segmented control "co znasz?" */
.advanced-calculator .calc__seg-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs, 0.5rem);
    font-size: var(--text-s, 0.9rem);
}

.advanced-calculator .calc__seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    background: var(--calc-bg);
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-s, 10px);
    padding: 4px;
    margin-bottom: var(--space-m, 1.25rem);
}

.advanced-calculator .calc__seg-btn {
    border: none;
    background: transparent;
    padding: var(--space-xs, 0.6rem) 0.4rem;
    border-radius: var(--radius-xs, 7px);
    font-size: var(--text-xs, 0.85rem);
    font-weight: 600;
    color: var(--calc-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.advanced-calculator .calc__seg-btn:hover {
    color: var(--calc-text);
}

.advanced-calculator .calc__seg-btn.is-active {
    background: var(--calc-white);
    color: var(--calc-primary);
    box-shadow: 0 1px 4px rgba(2, 6, 23, 0.12);
}

.advanced-calculator .calc__field {
    display: none;
}

.advanced-calculator .calc__field.is-active {
    display: block;
}

/* Headline — duże liczby (1–2 obok siebie) */
.advanced-calculator .calc__headline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-s, 1rem);
    margin-bottom: var(--space-m, 1.25rem);
}

.advanced-calculator .calc__headline--single {
    grid-template-columns: 1fr;
}

.advanced-calculator .calc__headline-item {
    text-align: center;
    background: var(--calc-white);
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-s, 10px);
    padding: var(--space-s, 0.9rem);
}

.advanced-calculator .calc__hl-label {
    font-size: var(--text-xs, 0.78rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--calc-muted);
    margin-bottom: 0.25rem;
}

.advanced-calculator .calc__hl-val {
    font-size: var(--text-xl, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--calc-text);
}

.advanced-calculator .calc__hl-val--profit {
    color: var(--calc-profit);
}

.advanced-calculator .calc__hl-val.is-loss {
    color: var(--calc-loss);
}

/* Metric cards (kolorowe, 2 obok siebie) */
.advanced-calculator .calc__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-s, 1rem);
    margin-bottom: var(--space-m, 1.25rem);
}

.advanced-calculator .calc__metric {
    border-radius: var(--radius-s, 10px);
    padding: var(--space-s, 0.9rem);
    color: var(--calc-white);
}

.advanced-calculator .calc__metric--primary {
    background: linear-gradient(135deg, var(--calc-primary), var(--calc-primary-dark));
}

.advanced-calculator .calc__metric--accent {
    background: linear-gradient(135deg, var(--calc-profit), var(--calc-profit-dark));
}

.advanced-calculator .calc__metric-name {
    font-size: var(--text-xs, 0.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.95;
}

.advanced-calculator .calc__metric-val {
    font-size: var(--text-xxl, 2.1rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0.15rem 0;
}

.advanced-calculator .calc__metric-formula {
    font-size: var(--text-xs, 0.74rem);
    opacity: 0.9;
}

/* Pasek złożenia (2 segmenty: tło/koszt + akcent/zysk) */
.advanced-calculator .calc__bar-wrap {
    margin-bottom: var(--space-s, 0.5rem);
}

.advanced-calculator .calc__bar-title {
    font-size: var(--text-xs, 0.8rem);
    font-weight: 600;
    color: var(--calc-muted);
    margin-bottom: 0.4rem;
}

.advanced-calculator .calc__bar {
    display: flex;
    height: 2.4rem;
    border-radius: var(--radius-s, 8px);
    overflow: hidden;
    border: 1px solid var(--calc-border);
    background: var(--calc-white);
}

.advanced-calculator .calc__bar-a,
.advanced-calculator .calc__bar-b {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    color: var(--calc-white);
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.3s ease;
}

.advanced-calculator .calc__bar-a {
    background: var(--calc-cost);
}

.advanced-calculator .calc__bar-b {
    background: var(--calc-profit);
}

.advanced-calculator .calc__bar-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: var(--text-xs, 0.75rem);
    color: var(--calc-muted);
}

/* Linia relacji / podsumowania */
.advanced-calculator .calc__relation {
    margin-top: var(--space-s, 0.9rem);
    padding: var(--space-s, 0.75rem);
    background: color-mix(in srgb, var(--calc-primary) 8%, var(--calc-white));
    border: 1px dashed var(--calc-primary);
    border-radius: var(--radius-s, 8px);
    font-size: var(--text-s, 0.88rem);
    text-align: center;
    color: var(--calc-text);
}

/* Alert (np. ostrzeżenie / stan niemożliwy) */
.advanced-calculator .calc__alert {
    margin-top: var(--space-s, 0.75rem);
    padding: var(--space-s, 0.7rem);
    background: color-mix(in srgb, var(--calc-loss) 12%, var(--calc-white));
    border: 1px solid var(--calc-loss);
    border-radius: var(--radius-s, 8px);
    font-size: var(--text-xs, 0.82rem);
    color: var(--calc-loss);
    display: none;
}

/* Panel edukacyjny */
.advanced-calculator .calc__edu {
    border-top: 1px solid var(--calc-border);
    padding: var(--space-m, 1.5rem) var(--space-l, 2rem);
    background: var(--calc-bg);
}

.advanced-calculator .calc__edu-title {
    margin: 0 0 var(--space-s, 0.75rem);
    font-size: var(--text-m, 1.1rem);
    color: var(--calc-text);
}

.advanced-calculator .calc__edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m, 1.25rem);
}

@media (max-width: 820px) {
    .advanced-calculator .calc__edu-grid {
        grid-template-columns: 1fr;
    }
}

.advanced-calculator .calc__edu-card {
    background: var(--calc-white);
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-s, 10px);
    padding: var(--space-s, 1rem);
}

.advanced-calculator .calc__edu-card h4 {
    margin: 0 0 0.35rem;
    font-size: var(--text-s, 0.95rem);
}

.advanced-calculator .calc__edu-card--primary h4 {
    color: var(--calc-primary);
}

.advanced-calculator .calc__edu-card--accent h4 {
    color: var(--calc-profit);
}

.advanced-calculator .calc__edu-card p {
    margin: 0;
    font-size: var(--text-s, 0.88rem);
    color: var(--calc-muted);
}

.advanced-calculator .calc__edu-card code {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: var(--text-xs, 0.8rem);
    background: var(--calc-bg);
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    color: var(--calc-text);
}

.advanced-calculator .calc__edu-note {
    margin: var(--space-s, 1rem) 0 0;
    font-size: var(--text-s, 0.88rem);
    color: var(--calc-text);
}

/* ============================================================
   ANALIZA SWOT — widżety specyficzne (siatka 2×2, listy, eksport)
   Blok BEM .swot-calc__*, korzysta ze wspólnych tokenów --calc-*.
   ============================================================ */

.swot-calc__top {
    padding: var(--space-m, 1.5rem) var(--space-l, 2rem) 0;
}

.swot-calc__grid {
    padding: var(--space-m, 1.5rem) var(--space-l, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m, 1.25rem);
}

@media (max-width: 720px) {
    .swot-calc__grid {
        grid-template-columns: 1fr;
    }
}

.swot-calc__quad {
    border: 1px solid var(--calc-border);
    border-top: 4px solid var(--calc-muted);
    border-radius: var(--radius-s, 10px);
    background: var(--calc-white);
    padding: var(--space-s, 1rem);
    display: flex;
    flex-direction: column;
}

.swot-calc__quad--s {
    border-top-color: var(--calc-profit);
    background: color-mix(in srgb, var(--calc-profit) 5%, var(--calc-white));
}

.swot-calc__quad--w {
    border-top-color: var(--calc-loss);
    background: color-mix(in srgb, var(--calc-loss) 5%, var(--calc-white));
}

.swot-calc__quad--o {
    border-top-color: var(--calc-primary);
    background: color-mix(in srgb, var(--calc-primary) 5%, var(--calc-white));
}

.swot-calc__quad--t {
    border-top-color: var(--calc-cost);
    background: color-mix(in srgb, var(--calc-cost) 6%, var(--calc-white));
}

.swot-calc__quad-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: var(--space-xs, 0.6rem);
}

.swot-calc__quad-title {
    margin: 0;
    font-size: var(--text-m, 1.05rem);
    font-weight: 700;
}

.swot-calc__quad--s .swot-calc__quad-title { color: var(--calc-profit); }
.swot-calc__quad--w .swot-calc__quad-title { color: var(--calc-loss); }
.swot-calc__quad--o .swot-calc__quad-title { color: var(--calc-primary); }
.swot-calc__quad--t .swot-calc__quad-title { color: var(--calc-cost); }

.swot-calc__quad-sub {
    font-size: var(--text-xs, 0.72rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--calc-muted);
    white-space: nowrap;
}

.swot-calc__list {
    list-style: none;
    margin: 0 0 var(--space-s, 0.75rem);
    padding: 0;
    flex: 1;
}

.swot-calc__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-xs, 6px);
    background: var(--calc-bg);
    margin-bottom: 0.4rem;
}

.swot-calc__item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.swot-calc__item-text {
    flex: 1;
    font-size: var(--text-s, 0.9rem);
    word-break: break-word;
}

.swot-calc__item-del {
    border: none;
    background: transparent;
    color: var(--calc-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.2rem;
}

.swot-calc__item-del:hover {
    color: var(--calc-loss);
}

/* Wagi 1–5 (gwiazdki) */
.swot-calc__stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.swot-calc__stars-label {
    font-size: var(--text-xs, 0.68rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--calc-muted);
    margin-right: 4px;
}

.swot-calc__star {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--calc-border);
}

.swot-calc__star.is-on {
    color: #f59e0b;
}

.swot-calc__empty {
    font-size: var(--text-s, 0.85rem);
    color: var(--calc-muted);
    font-style: italic;
    padding: 0.3rem 0.5rem;
}

.swot-calc__add {
    display: flex;
    gap: 0.4rem;
}

/* Chipsy z przykładami */
.swot-calc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0.45rem;
}

.swot-calc__chip {
    border: 1px dashed var(--calc-border);
    background: transparent;
    color: var(--calc-muted);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: var(--text-xs, 0.72rem);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.swot-calc__chip:hover {
    border-color: var(--calc-primary);
    color: var(--calc-primary);
}

.swot-calc__add-input {
    flex: 1;
    padding: var(--space-xs, 0.55rem);
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-s, 7px);
    font-size: var(--text-s, 0.9rem);
    color: var(--calc-text);
    background: var(--calc-white);
}

.swot-calc__add-input:focus {
    outline: none;
    border-color: var(--calc-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--calc-primary) 18%, transparent);
}

.swot-calc__add-btn {
    border: none;
    border-radius: var(--radius-s, 7px);
    padding: 0 0.9rem;
    font-weight: 700;
    font-size: var(--text-s, 0.9rem);
    color: var(--calc-white);
    background: var(--calc-primary);
    cursor: pointer;
    transition: filter 0.15s;
}

.swot-calc__add-btn:hover {
    filter: brightness(1.08);
}

.swot-calc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0 var(--space-l, 2rem) var(--space-m, 1.5rem);
}

.swot-calc__btn {
    border: none;
    border-radius: var(--radius-s, 8px);
    padding: var(--space-s, 0.75rem) var(--space-m, 1.4rem);
    font-weight: 700;
    font-size: var(--text-m, 1rem);
    cursor: pointer;
    transition: filter 0.15s, background 0.15s;
}

.swot-calc__btn--export {
    color: var(--calc-white);
    background: linear-gradient(135deg, var(--calc-primary), var(--calc-primary-dark));
}

.swot-calc__btn--export:hover {
    filter: brightness(1.08);
}

.swot-calc__btn--ghost {
    color: var(--calc-muted);
    background: var(--calc-bg);
    border: 1px solid var(--calc-border);
}

.swot-calc__btn--ghost:hover {
    color: var(--calc-loss);
}

/* Wskaźnik kompletności */
.swot-calc__hint-bar {
    padding: 0 var(--space-l, 2rem);
    margin-bottom: var(--space-xs, 0.5rem);
    font-size: var(--text-xs, 0.8rem);
    color: var(--calc-muted);
}

.swot-calc__hint-bar strong {
    color: var(--calc-text);
}

/* Tytuł sekcji wewnątrz narzędzia */
.swot-calc__section-title {
    padding: 0 var(--space-l, 2rem);
    margin: var(--space-m, 1.4rem) 0 0.2rem;
    font-size: var(--text-m, 1.15rem);
}

.swot-calc__section-intro {
    padding: 0 var(--space-l, 2rem);
    margin: 0 0 var(--space-s, 0.9rem);
    font-size: var(--text-s, 0.88rem);
    color: var(--calc-muted);
}

/* Panel pozycji strategicznej */
.swot-calc__result {
    padding: 0 var(--space-l, 2rem);
}

.swot-calc__result-inner {
    background: var(--calc-bg);
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-m, 14px);
    padding: var(--space-m, 1.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m, 1.5rem);
    align-items: center;
}

@media (max-width: 720px) {
    .swot-calc__result-inner {
        grid-template-columns: 1fr;
    }
}

.swot-calc__scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.swot-calc__score {
    border-radius: var(--radius-s, 9px);
    padding: 0.55rem 0.7rem;
    color: var(--calc-white);
}

.swot-calc__score--s { background: var(--calc-profit); }
.swot-calc__score--w { background: var(--calc-loss); }
.swot-calc__score--o { background: var(--calc-primary); }
.swot-calc__score--t { background: var(--calc-cost); }

.swot-calc__score-name {
    font-size: var(--text-xs, 0.72rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

.swot-calc__score-val {
    font-size: var(--text-l, 1.4rem);
    font-weight: 800;
    line-height: 1.1;
}

.swot-calc__posture {
    margin-top: var(--space-s, 0.9rem);
}

.swot-calc__posture-name {
    font-size: var(--text-l, 1.25rem);
    font-weight: 800;
    color: var(--calc-text);
}

.swot-calc__posture-desc {
    font-size: var(--text-s, 0.88rem);
    color: var(--calc-muted);
    margin-top: 0.15rem;
}

/* Wykres pozycji 2×2 */
.swot-calc__chart-wrap {
    text-align: center;
}

.swot-calc__chart {
    position: relative;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-s, 8px);
    background: var(--calc-white);
}

.swot-calc__chart::before,
.swot-calc__chart::after {
    content: "";
    position: absolute;
    background: var(--calc-border);
}

.swot-calc__chart::before {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
}

.swot-calc__chart::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.swot-calc__chart-lbl {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    color: var(--calc-muted);
    padding: 3px 5px;
}

.swot-calc__chart-lbl--tr { top: 4px; right: 6px; color: var(--calc-profit); }
.swot-calc__chart-lbl--tl { top: 4px; left: 6px; color: var(--calc-cost); }
.swot-calc__chart-lbl--br { bottom: 4px; right: 6px; color: var(--calc-primary); }
.swot-calc__chart-lbl--bl { bottom: 4px; left: 6px; color: var(--calc-loss); }

.swot-calc__chart-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--calc-primary);
    border: 2px solid var(--calc-white);
    box-shadow: 0 1px 5px rgba(2, 6, 23, 0.4);
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease, background 0.3s;
}

.swot-calc__chart-axes {
    font-size: 10px;
    color: var(--calc-muted);
    margin-top: 5px;
}

/* Matryca TOWS */
.swot-calc__tows {
    padding: 0 var(--space-l, 2rem) var(--space-m, 1.5rem);
}

.swot-calc__tows-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-s, 1rem);
}

@media (max-width: 720px) {
    .swot-calc__tows-grid {
        grid-template-columns: 1fr;
    }
}

.swot-calc__tows-cell {
    border: 1px solid var(--calc-border);
    border-top: 3px solid var(--calc-muted);
    border-radius: var(--radius-s, 10px);
    padding: 0.75rem;
}

.swot-calc__tows-cell--so { border-top-color: var(--calc-profit); }
.swot-calc__tows-cell--st { border-top-color: var(--calc-cost); }
.swot-calc__tows-cell--wo { border-top-color: var(--calc-primary); }
.swot-calc__tows-cell--wt { border-top-color: var(--calc-loss); }

.swot-calc__tows-cell h4 {
    margin: 0 0 0.15rem;
    font-size: var(--text-s, 0.92rem);
}

.swot-calc__tows-cell .hint {
    margin: 0 0 0.45rem;
    font-size: var(--text-xs, 0.74rem);
    color: var(--calc-muted);
}

.swot-calc__tows-area {
    width: 100%;
    min-height: 64px;
    border: 1px solid var(--calc-border);
    border-radius: var(--radius-s, 7px);
    padding: 0.55rem;
    font-size: var(--text-s, 0.88rem);
    font-family: inherit;
    resize: vertical;
    color: var(--calc-text);
    background: var(--calc-white);
}

.swot-calc__tows-area:focus {
    outline: none;
    border-color: var(--calc-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--calc-primary) 18%, transparent);
}
