.c33-srfs {
    --c33-srfs-ink: #17233a;
    --c33-srfs-muted: #5d6b80;
    --c33-srfs-line: #d8e1ec;
    --c33-srfs-soft: #f5f8fc;
    --c33-srfs-accent: #3158a6;
    --c33-srfs-accent-dark: #233f79;
    --c33-srfs-purple: #6d55a7;
    --c33-srfs-danger: #a23a32;
    color: var(--c33-srfs-ink);
    font-family: inherit;
    margin: 1.5rem 0;
    overflow-wrap: anywhere;
    width: 100%;
}

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

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

.c33-srfs__header {
    align-items: center;
    background: linear-gradient(135deg, #eef4ff 0%, #fbfcff 55%, #f3efff 100%);
    border: 1px solid var(--c33-srfs-line);
    border-radius: 22px 22px 0 0;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.c33-srfs__header h2,
.c33-srfs__panel-head h3,
.c33-srfs__method h3 {
    color: var(--c33-srfs-ink);
    line-height: 1.2;
    margin: 0;
}

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

.c33-srfs__header p:not(.c33-srfs__eyebrow),
.c33-srfs__panel-head p {
    color: var(--c33-srfs-muted);
    margin: 0.55rem 0 0;
    max-width: 800px;
}

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

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

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

.c33-srfs__badge strong {
    color: var(--c33-srfs-accent);
    font-size: 1.55rem;
    line-height: 1.2;
}

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

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

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

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

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

.c33-srfs__panel-head h3,
.c33-srfs__method h3 {
    font-size: 1.1rem;
}

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

.c33-srfs__duration {
    border: 0;
    margin: 1rem 0 0;
    min-width: 0;
    padding: 0;
}

.c33-srfs__duration legend {
    color: var(--c33-srfs-ink);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
    padding: 0;
}

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

.c33-srfs__custom-resolution {
    background: var(--c33-srfs-soft);
    border: 1px dashed #b8c7da;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
}

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

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

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

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

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

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

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

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

.c33-srfs__check {
    background: var(--c33-srfs-soft);
    border: 1px solid var(--c33-srfs-line);
    border-radius: 12px;
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 0.85rem;
}

.c33-srfs__check input {
    grid-row: 1 / span 2;
    height: 20px;
    margin: 0.05rem 0.35rem 0 0;
    min-height: 0;
    width: 20px;
}

.c33-srfs__check small {
    grid-column: 2;
}

.c33-srfs label.is-disabled {
    opacity: 0.55;
}

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

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

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

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

.c33-srfs__secondary,
.c33-srfs [data-c33-srfs-copy] {
    background: #eaf0f7;
    color: var(--c33-srfs-ink);
}

.c33-srfs__secondary:hover,
.c33-srfs [data-c33-srfs-copy]:hover {
    background: #dce6f1;
}

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

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

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

.c33-srfs__answer-row span,
.c33-srfs__answer-row small,
.c33-srfs__metrics span {
    color: var(--c33-srfs-muted);
}

.c33-srfs__answer-row strong {
    display: block;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    line-height: 1.15;
    margin: 0.25rem 0;
}

.c33-srfs__answer-row small {
    display: block;
    line-height: 1.4;
}

.c33-srfs__status {
    background: #edf3ff;
    border: 1px solid #cddbf4;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.c33-srfs__status b {
    color: var(--c33-srfs-accent-dark);
}

.c33-srfs__status p {
    color: var(--c33-srfs-muted);
    margin: 0.25rem 0 0;
}

.c33-srfs__metrics {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.c33-srfs__metrics article {
    background: #fff;
    border: 1px solid var(--c33-srfs-line);
    border-radius: 12px;
    min-width: 0;
    padding: 0.85rem;
}

.c33-srfs__metrics span {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
}

.c33-srfs__metrics strong {
    display: block;
    font-size: 1rem;
    margin-top: 0.35rem;
}

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

.c33-srfs__method ol {
    color: var(--c33-srfs-muted);
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.c33-srfs__method li + li {
    margin-top: 0.55rem;
}

.c33-srfs__warnings {
    background: #fff8df;
    border: 1px solid #ead89b;
    border-radius: 12px;
    color: #6d5010;
    margin: 1rem 0 0;
    padding: 0.9rem 1rem 0.9rem 2rem;
}

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

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

@media (max-width: 780px) {
    .c33-srfs__header {
        align-items: flex-start;
    }

    .c33-srfs__badge {
        min-width: 82px;
    }

    .c33-srfs__grid,
    .c33-srfs__custom-resolution,
    .c33-srfs__metrics {
        grid-template-columns: 1fr;
    }

    .c33-srfs__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .c33-srfs__header,
    .c33-srfs__form,
    .c33-srfs__results {
        padding: 1rem;
    }

    .c33-srfs__header {
        display: block;
    }

    .c33-srfs__badge {
        align-items: center;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 1rem;
        width: fit-content;
    }

    .c33-srfs__duration-grid,
    .c33-srfs__metrics {
        grid-template-columns: 1fr;
    }

    .c33-srfs__answer-row {
        align-items: stretch;
        flex-direction: column;
    }

    .c33-srfs__answer-row button {
        width: 100%;
    }
}
