:root {
    --swo-red: #f10d08;
    --swo-red-dark: #c80b07;
    --swo-charcoal: #2f3740;
    --swo-dark: #0d1117;
    --swo-text: #2e3338;
    --swo-muted: #6c747d;
    --swo-border: #d8dde2;
    --swo-bg: #f3f5f7;
    --swo-white: #fff;
    --swo-green: #0f9d68;
    --swo-orange: #ff8a00;
}

.swo-calc, .swo-calc * { box-sizing: border-box; }
.swo-calc {
    width: 100%;
    margin: 24px 0;
    color: var(--swo-text);
    font-family: inherit;
    background: var(--swo-white);
    border: 1px solid var(--swo-border);
    border-radius: 3px;
    overflow: hidden;
}
.swo-calc__head {
    padding: 24px 28px 22px;
    background: linear-gradient(110deg, #101216 0%, #20252b 100%);
    color: #fff;
    border-bottom: 4px solid var(--swo-red);
}
.swo-calc__kicker {
    margin-bottom: 6px;
    color: var(--swo-orange);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .04em;
}
.swo-calc__title {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
}
.swo-calc__subtitle {
    max-width: 820px;
    margin: 10px 0 0;
    color: #d6dbe0;
    font-size: 15px;
    line-height: 1.55;
}
.swo-calc__body { padding: 26px 28px 28px; }
.swo-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}
.swo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swo-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.swo-field { display: block; min-width: 0; }
.swo-field > span {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 800;
    color: var(--swo-charcoal);
}
.swo-field input, .swo-field select, .swo-table input[type="text"], .swo-table input[type="number"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd5db;
    border-radius: 3px;
    background: #fff;
    color: var(--swo-text);
    font: inherit;
    font-size: 15px;
    outline: none;
}
.swo-field input:focus, .swo-field select:focus, .swo-table input:focus {
    border-color: var(--swo-red);
    box-shadow: 0 0 0 2px rgba(241,13,8,.12);
}
.swo-input-addon { display: flex; }
.swo-input-addon input { border-radius: 3px 0 0 3px; }
.swo-input-addon b {
    display: inline-flex;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd5db;
    border-left: 0;
    border-radius: 0 3px 3px 0;
    background: #eef1f4;
    color: var(--swo-charcoal);
    font-size: 13px;
}
.swo-table-wrap { width: 100%; overflow-x: auto; }
.swo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    font-size: 14px;
}
.swo-table th {
    padding: 11px 12px;
    background: var(--swo-charcoal);
    color: #fff;
    font-size: 12px;
    text-align: left;
    font-weight: 800;
    white-space: nowrap;
}
.swo-table td {
    padding: 11px 12px;
    border: 1px solid #e1e5e9;
    vertical-align: middle;
}
.swo-table td:first-child { border-left-color: #e1e5e9; }
.swo-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--swo-red); }
.swo-row-label { font-weight: 800; color: var(--swo-charcoal); white-space: nowrap; }
.swo-icon-btn {
    border: 0;
    background: transparent;
    color: var(--swo-muted);
    font-weight: 900;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}
.swo-icon-btn:hover { color: var(--swo-red); }
.swo-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.swo-actions--split { justify-content: space-between; }
.swo-btn {
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.swo-btn:active { transform: translateY(1px); }
.swo-btn--primary { background: var(--swo-red); color: #fff; }
.swo-btn--primary:hover { background: var(--swo-red-dark); }
.swo-btn--ghost { background: #eef1f4; color: var(--swo-charcoal); border: 1px solid #d9dee3; }
.swo-btn--ghost:hover { background: #e4e8ec; }
.swo-message {
    display: none;
    margin-top: 16px;
    padding: 11px 13px;
    border-left: 4px solid var(--swo-red);
    background: #fff1f0;
    color: #7c1c18;
    font-size: 13px;
    line-height: 1.45;
}
.swo-message.is-show { display: block; }
.swo-results { margin-top: 22px; }
.swo-result-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.swo-result-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.swo-result {
    min-width: 0;
    padding: 15px 14px;
    border: 1px solid var(--swo-border);
    background: var(--swo-bg);
}
.swo-result span { display: block; color: var(--swo-muted); font-size: 11px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.swo-result strong { display: block; margin-top: 5px; color: var(--swo-charcoal); font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.swo-result--accent { border-color: #ffcbc9; background: #fff3f2; }
.swo-result--accent strong { color: var(--swo-red); }
.swo-breakdown-wrap { max-height: 420px; overflow: auto; }
.swo-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0 0 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef1f4;
    color: var(--swo-charcoal);
    font-size: 13px;
    font-weight: 900;
}
.swo-status-pill.is-positive { background: #e8f7f1; color: #087347; }
.swo-status-pill.is-negative { background: #fff0ef; color: #a12822; }
.swo-calc__note {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px solid #eceff2;
    color: var(--swo-muted);
    font-size: 12px;
    line-height: 1.5;
}
.swo-surebet-odds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    margin-bottom: 4px;
}
.swo-suite { margin: 24px 0; }
.swo-suite__tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 0 8px;
}
.swo-suite__tabs button {
    border: 1px solid #d8dde2;
    background: #fff;
    color: var(--swo-charcoal);
    min-height: 42px;
    padding: 9px 14px;
    white-space: nowrap;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.swo-suite__tabs button.is-active { border-color: var(--swo-red); background: var(--swo-red); color: #fff; }
.swo-suite__panel { display: none; }
.swo-suite__panel.is-active { display: block; }

@media (max-width: 900px) {
    .swo-grid--4, .swo-result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .swo-calc__head { padding: 20px 18px 18px; }
    .swo-calc__body { padding: 20px 16px 22px; }
    .swo-grid--2, .swo-grid--3, .swo-grid--4, .swo-result-grid, .swo-result-grid--4, .swo-surebet-odds { grid-template-columns: 1fr; }
    .swo-actions, .swo-actions--split { flex-direction: column; }
    .swo-btn { width: 100%; }
    .swo-table { min-width: 590px; }
    .swo-combo-table { min-width: 450px; }
    .swo-surebet-table { min-width: 520px; }
}
