.c33-sbct {
    --c33-sbct-ink: #142238;
    --c33-sbct-muted: #5b6c80;
    --c33-sbct-line: #d9e4ee;
    --c33-sbct-soft: #f5f8fb;
    --c33-sbct-accent: #9a5b00;
    --c33-sbct-accent-dark: #6f4000;
    --c33-sbct-warm: #fff6d9;
    --c33-sbct-danger: #a23a32;
    color: var(--c33-sbct-ink);
    font-family: inherit;
    margin: 1.5rem 0;
    overflow-wrap: anywhere;
    width: 100%;
}

.c33-sbct *,
.c33-sbct *::before,
.c33-sbct *::after {
    box-sizing: border-box;
}

.c33-sbct__header {
    align-items: center;
    background: linear-gradient(135deg, #fff8df 0%, #f8fbff 58%, #edf9f2 100%);
    border: 1px solid var(--c33-sbct-line);
    border-radius: 22px 22px 0 0;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.c33-sbct__header h2,
.c33-sbct__panel-head h3,
.c33-sbct__method h3 {
    color: var(--c33-sbct-ink);
    line-height: 1.2;
    margin: 0;
}

.c33-sbct__header h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.c33-sbct__header p:not(.c33-sbct__eyebrow),
.c33-sbct__panel-head p {
    color: var(--c33-sbct-muted);
    margin: 0.55rem 0 0;
    max-width: 780px;
}

.c33-sbct__eyebrow {
    color: var(--c33-sbct-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.c33-sbct__badge {
    align-items: center;
    background: #fff;
    border: 1px solid var(--c33-sbct-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 34, 56, 0.08);
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-width: 98px;
    padding: 0.8rem 1rem;
}

.c33-sbct__badge span {
    color: var(--c33-sbct-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.c33-sbct__badge strong {
    color: var(--c33-sbct-accent);
    font-size: 1.8rem;
    line-height: 1;
}

.c33-sbct__body {
    border: 1px solid var(--c33-sbct-line);
    border-radius: 0 0 22px 22px;
    border-top: 0;
    overflow: hidden;
}

.c33-sbct__form {
    background: #fff;
    padding: 1.35rem;
}

.c33-sbct__panel {
    border: 1px solid var(--c33-sbct-line);
    border-radius: 16px;
    padding: 1.1rem;
}

.c33-sbct__panel + .c33-sbct__panel {
    margin-top: 1rem;
}

.c33-sbct__panel-head {
    margin-bottom: 1rem;
}

.c33-sbct__panel-head h3,
.c33-sbct__method h3 {
    font-size: 1.1rem;
}

.c33-sbct__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c33-sbct label {
    color: var(--c33-sbct-ink);
    display: flex;
    flex-direction: column;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.4rem;
    min-width: 0;
}

.c33-sbct label small {
    color: var(--c33-sbct-muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
}

.c33-sbct input,
.c33-sbct select,
.c33-sbct button {
    font: inherit;
}

.c33-sbct input,
.c33-sbct select {
    background: #fff;
    border: 1px solid #bcc9d7;
    border-radius: 10px;
    color: var(--c33-sbct-ink);
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.c33-sbct input:focus,
.c33-sbct select:focus,
.c33-sbct button:focus-visible {
    border-color: var(--c33-sbct-accent);
    box-shadow: 0 0 0 3px rgba(154, 91, 0, 0.16);
    outline: none;
}

.c33-sbct__input-unit {
    display: flex;
    min-width: 0;
}

.c33-sbct__input-unit input {
    border-radius: 10px 0 0 10px;
    min-width: 0;
}

.c33-sbct__input-unit b {
    align-items: center;
    background: var(--c33-sbct-soft);
    border: 1px solid #bcc9d7;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: var(--c33-sbct-muted);
    display: flex;
    flex: 0 0 auto;
    font-size: 0.83rem;
    justify-content: center;
    min-width: 52px;
    padding: 0.5rem;
}

.c33-sbct__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.c33-sbct button {
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    min-height: 46px;
    padding: 0.72rem 1rem;
}

.c33-sbct__actions button:first-child {
    background: var(--c33-sbct-accent);
    color: #fff;
}

.c33-sbct__actions button:first-child:hover {
    background: var(--c33-sbct-accent-dark);
}

.c33-sbct__secondary,
.c33-sbct [data-c33-sbct-copy] {
    background: #edf3f7;
    color: var(--c33-sbct-ink);
}

.c33-sbct__secondary:hover,
.c33-sbct [data-c33-sbct-copy]:hover {
    background: #dfe8ef;
}

.c33-sbct__error {
    background: #fff0ef;
    border: 1px solid #efc2be;
    border-radius: 10px;
    color: var(--c33-sbct-danger);
    font-weight: 700;
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
}

.c33-sbct__results {
    background: var(--c33-sbct-soft);
    border-top: 1px solid var(--c33-sbct-line);
    outline: none;
    padding: 1.35rem;
}

.c33-sbct__answer-row {
    align-items: center;
    background: #fff;
    border: 1px solid var(--c33-sbct-line);
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.c33-sbct__answer-row span,
.c33-sbct__answer-row small,
.c33-sbct__metrics span {
    color: var(--c33-sbct-muted);
}

.c33-sbct__answer-row span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.c33-sbct__answer-row strong {
    color: var(--c33-sbct-accent-dark);
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1.15;
    margin-top: 0.2rem;
}

.c33-sbct__answer-row small {
    display: block;
    line-height: 1.45;
    margin-top: 0.4rem;
}

.c33-sbct__status {
    background: var(--c33-sbct-warm);
    border: 1px solid #e9ca78;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
}

.c33-sbct__status b {
    color: var(--c33-sbct-accent-dark);
}

.c33-sbct__status p {
    color: #6b522c;
    margin: 0.35rem 0 0;
}

.c33-sbct__metrics {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.c33-sbct__metrics article {
    background: #fff;
    border: 1px solid var(--c33-sbct-line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.c33-sbct__metrics span {
    display: block;
    font-size: 0.77rem;
}

.c33-sbct__metrics strong {
    color: var(--c33-sbct-ink);
    display: block;
    margin-top: 0.3rem;
}

.c33-sbct__method {
    background: #fff;
    border: 1px solid var(--c33-sbct-line);
    border-radius: 14px;
    margin-top: 1rem;
    padding: 1rem;
}

.c33-sbct__method ol {
    margin: 0.7rem 0 0;
    padding-left: 1.35rem;
}

.c33-sbct__method li + li {
    margin-top: 0.5rem;
}

.c33-sbct__warnings {
    background: #fff8e8;
    border-left: 4px solid #c47a18;
    margin: 1rem 0 0;
    padding: 0.9rem 1rem 0.9rem 2.1rem;
}

.c33-sbct__warnings li + li {
    margin-top: 0.45rem;
}

.c33-sbct__note {
    color: var(--c33-sbct-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 1rem 0 0;
}

.c33-sbct [hidden] {
    display: none !important;
}

@media (max-width: 680px) {
    .c33-sbct {
        max-width: 100%;
        overflow: hidden;
    }

    .c33-sbct__header {
        align-items: flex-start;
    }

    .c33-sbct__badge {
        display: none;
    }

    .c33-sbct__grid,
    .c33-sbct__metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .c33-sbct__answer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .c33-sbct__answer-row button,
    .c33-sbct__actions button {
        width: 100%;
    }
}

@media print {
    .c33-sbct__form,
    .c33-sbct [data-c33-sbct-copy] {
        display: none !important;
    }

    .c33-sbct__results {
        background: #fff;
        border: 1px solid #777;
    }
}
