.c33-mp {
    --c33-mp-ink: #1f2937;
    --c33-mp-muted: #667085;
    --c33-mp-line: #d8dee9;
    --c33-mp-soft: #f8f9fc;
    --c33-mp-accent: #b45309;
    --c33-mp-accent-dark: #92400e;
    --c33-mp-danger: #a23a32;
    color: var(--c33-mp-ink);
    font-family: inherit;
    margin: 1.5rem 0;
    overflow-wrap: anywhere;
    width: 100%;
}

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

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

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

.c33-mp__header h2,
.c33-mp__panel-head h3,
.c33-mp__method h3 {
    color: var(--c33-mp-ink);
    line-height: 1.2;
    margin: 0;
}

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

.c33-mp__header p:not(.c33-mp__eyebrow),
.c33-mp__panel-head p {
    color: var(--c33-mp-muted);
    margin: 0.55rem 0 0;
    max-width: 860px;
}

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

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

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

.c33-mp__badge strong {
    color: var(--c33-mp-accent);
    font-size: 1.35rem;
    line-height: 1.2;
}

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

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

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

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

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

.c33-mp__panel-head h3,
.c33-mp__method h3 {
    font-size: 1.1rem;
}

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

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

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

.c33-mp label,
.c33-mp__field-group {
    color: var(--c33-mp-ink);
    display: flex;
    flex-direction: column;
    font-size: 0.94rem;
    font-weight: 700;
    gap: 0.42rem;
    min-width: 0;
}

.c33-mp label small,
.c33-mp__field-group small,
.c33-mp__check small {
    color: var(--c33-mp-muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
}

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

.c33-mp input[type="number"],
.c33-mp select,
.c33-mp textarea {
    background: #fff;
    border: 1px solid #cbd3df;
    border-radius: 10px;
    color: var(--c33-mp-ink);
    min-height: 46px;
    outline: 0;
    padding: 0.7rem 0.75rem;
    width: 100%;
}

.c33-mp textarea {
    line-height: 1.55;
    min-height: 180px;
    resize: vertical;
}

.c33-mp input:focus,
.c33-mp select:focus,
.c33-mp textarea:focus,
.c33-mp button:focus-visible {
    border-color: var(--c33-mp-accent);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.14);
}

.c33-mp input:disabled,
.c33-mp select:disabled,
.c33-mp textarea:disabled,
.c33-mp .is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.c33-mp__input-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.c33-mp__input-unit input {
    border-radius: 10px 0 0 10px;
}

.c33-mp__input-unit b {
    align-items: center;
    background: #f2f4f8;
    border: 1px solid #cbd3df;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: #475467;
    display: flex;
    font-size: 0.8rem;
    justify-content: center;
    min-width: 58px;
    padding: 0 0.75rem;
    white-space: nowrap;
}

.c33-mp__paste {
    margin-top: 1rem;
}

.c33-mp__paste-tools {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 0.8rem;
}

.c33-mp__check {
    display: grid !important;
    gap: 0.2rem 0.55rem !important;
    grid-template-columns: auto 1fr;
}

.c33-mp__check input {
    height: 18px;
    margin: 0.15rem 0 0;
    min-height: 0;
    width: 18px;
}

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

.c33-mp__live-count {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: var(--c33-mp-accent-dark);
    flex: 0 0 auto;
    font-size: 0.84rem;
    margin: 0;
    padding: 0.45rem 0.75rem;
}

.c33-mp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.c33-mp__button,
.c33-mp__copy {
    background: #fff;
    border: 1px solid #cbd3df;
    border-radius: 10px;
    color: var(--c33-mp-ink);
    cursor: pointer;
    font-weight: 800;
    min-height: 44px;
    padding: 0.7rem 1rem;
}

.c33-mp__button--primary {
    background: var(--c33-mp-accent);
    border-color: var(--c33-mp-accent);
    color: #fff;
}

.c33-mp__button--primary:hover {
    background: var(--c33-mp-accent-dark);
    border-color: var(--c33-mp-accent-dark);
}

.c33-mp__error {
    background: #fff1f0;
    border: 1px solid #fac5c1;
    border-radius: 10px;
    color: var(--c33-mp-danger);
    font-weight: 700;
    margin: 1rem 0 0;
    padding: 0.75rem 0.9rem;
}

.c33-mp__results {
    background: var(--c33-mp-soft);
    border-top: 1px solid var(--c33-mp-line);
    padding: 1.35rem;
}

.c33-mp__answer-card {
    align-items: center;
    background: linear-gradient(135deg, #8f2b27 0%, #c43d35 56%, #7654b5 100%);
    border-radius: 18px;
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem;
}

.c33-mp__answer-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0 0 0.25rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.c33-mp__answer {
    display: block;
    font-size: clamp(1.75rem, 5vw, 2.55rem);
    line-height: 1.05;
}

.c33-mp__answer-card p:last-child {
    margin: 0.4rem 0 0;
    max-width: 760px;
    opacity: 0.92;
}

.c33-mp__copy {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
    flex: 0 0 auto;
    min-height: 42px;
}

.c33-mp__status {
    align-items: baseline;
    background: #fff;
    border: 1px solid var(--c33-mp-line);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.c33-mp__status strong {
    color: var(--c33-mp-accent-dark);
}

.c33-mp__status span {
    color: var(--c33-mp-muted);
}

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

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

.c33-mp__metrics span {
    color: var(--c33-mp-muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.c33-mp__metrics strong {
    color: var(--c33-mp-ink);
    display: block;
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 0.28rem;
}

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

.c33-mp__method ol {
    margin: 0.75rem 0 0 1.2rem;
    padding: 0;
}

.c33-mp__method li {
    color: #475467;
    line-height: 1.55;
    margin: 0.35rem 0;
}

.c33-mp__warnings {
    background: #fff8e8;
    border: 1px solid #f0d79a;
    border-radius: 12px;
    color: #785b17;
    margin: 1rem 0 0;
    padding: 0.85rem 1rem 0.85rem 2rem;
}

.c33-mp__warnings li + li {
    margin-top: 0.35rem;
}

.c33-mp__note {
    color: var(--c33-mp-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 1rem 0 0;
}

@media (max-width: 820px) {
    .c33-mp__grid,
    .c33-mp__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .c33-mp__header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.1rem;
    }

    .c33-mp__badge {
        align-self: stretch;
        flex-direction: row;
        justify-content: space-between;
        min-width: 0;
    }

    .c33-mp__form,
    .c33-mp__results {
        padding: 0.9rem;
    }

    .c33-mp__panel {
        padding: 0.9rem;
    }

    .c33-mp__grid,
    .c33-mp__duration-grid,
    .c33-mp__metrics {
        grid-template-columns: 1fr;
    }

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

    .c33-mp__paste-tools,
    .c33-mp__answer-card {
        align-items: stretch;
        flex-direction: column;
    }

    .c33-mp__live-count {
        align-self: flex-start;
    }

    .c33-mp__copy,
    .c33-mp__button {
        width: 100%;
    }
}

.c33-mp__grid--after-duration {
    margin-top: 1rem;
}

.c33-mp__comparison {
    background: #fff;
    border: 1px solid var(--c33-mp-line);
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1.1rem;
}

.c33-mp__comparison h3 {
    color: var(--c33-mp-ink);
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 0.85rem;
}

.c33-mp__table-wrap {
    overflow-x: auto;
}

.c33-mp__comparison table {
    border-collapse: collapse;
    margin: 0;
    min-width: 560px;
    width: 100%;
}

.c33-mp__comparison th,
.c33-mp__comparison td {
    border-bottom: 1px solid var(--c33-mp-line);
    padding: 0.7rem;
    text-align: left;
    vertical-align: top;
}

.c33-mp__comparison th {
    background: var(--c33-mp-soft);
    color: #475467;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.c33-mp__comparison tr:last-child td {
    border-bottom: 0;
}

.c33-mp__comparison tr.is-selected td {
    background: #fff7ed;
    font-weight: 800;
}
