.licc-wrap,
.licc-wrap * {
    box-sizing: border-box;
}

.licc-wrap {
    --licc-page: #f5f7fa;
    --licc-surface: #ffffff;
    --licc-soft: #f0f3f6;
    --licc-text: #111827;
    --licc-muted: #657184;
    --licc-border: #d9dee7;
    --licc-strong: #111827;
    --licc-accent: #1f6f43;
    --licc-accent-text: #ffffff;
    --licc-danger: #a83232;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: var(--licc-text);
    font-family: inherit;
    overflow-wrap: anywhere;
}

.licc-wrap.licc-dark {
    --licc-page: #111827;
    --licc-surface: #192231;
    --licc-soft: #263244;
    --licc-text: #f8fafc;
    --licc-muted: #c7d0df;
    --licc-border: #344156;
    --licc-strong: #ffffff;
    --licc-accent: #51b97f;
    --licc-accent-text: #0b1220;
    --licc-danger: #ffb3b3;
}

.licc-shell {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(14px, 4vw, 28px);
    background: var(--licc-page);
    border-radius: 22px;
}

.licc-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(18px, 4vw, 28px);
    margin-bottom: 16px;
    background: var(--licc-surface);
    border: 1px solid var(--licc-border);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.licc-eyebrow {
    margin: 0 0 6px;
    color: var(--licc-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.licc-header h2 {
    margin: 0;
    color: var(--licc-strong);
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    line-height: 1.12;
}

.licc-header p {
    margin: 8px 0 0;
    color: var(--licc-muted);
    font-size: clamp(.96rem, 2.6vw, 1.06rem);
    line-height: 1.55;
}

.licc-theme-toggle,
.licc-btn {
    min-height: 46px;
    border: 1px solid var(--licc-border);
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--licc-surface);
    color: var(--licc-text);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.licc-theme-toggle:hover,
.licc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(17, 24, 39, .12);
}

.licc-theme-toggle:focus-visible,
.licc-btn:focus-visible,
.licc-field input:focus-visible,
.licc-field select:focus-visible {
    outline: 3px solid rgba(31, 111, 67, .35);
    outline-offset: 2px;
}

.licc-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.licc-field {
    min-width: 0;
    padding: 16px;
    background: var(--licc-surface);
    border: 1px solid var(--licc-border);
    border-radius: 18px;
}

.licc-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--licc-strong);
    font-weight: 800;
}

.licc-field input,
.licc-field select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    border: 1px solid var(--licc-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--licc-soft);
    color: var(--licc-text);
    font: inherit;
}

.licc-field small {
    display: block;
    margin-top: 8px;
    color: var(--licc-muted);
    line-height: 1.45;
}

.licc-input-prefix,
.licc-input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.licc-input-prefix span,
.licc-input-suffix span {
    flex: 0 0 auto;
    color: var(--licc-muted);
    font-weight: 900;
}

.licc-errors {
    min-height: 22px;
    color: var(--licc-danger);
    font-weight: 800;
    line-height: 1.45;
}

.licc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.licc-btn {
    flex: 1 1 150px;
}

.licc-btn-primary {
    border-color: var(--licc-accent);
    background: var(--licc-accent);
    color: var(--licc-accent-text);
}

.licc-btn-muted {
    background: transparent;
}

.licc-result {
    width: 100%;
    max-width: 100%;
    padding: clamp(18px, 5vw, 34px) clamp(16px, 4vw, 28px);
    background: var(--licc-surface);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
    overflow: hidden;
}

.licc-result-top {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--licc-border);
}

.licc-result-top span {
    display: block;
    margin-bottom: 8px;
    color: var(--licc-muted);
    font-size: clamp(1rem, 4vw, 1.18rem);
    font-weight: 900;
}

.licc-result-top strong {
    display: block;
    color: var(--licc-strong);
    font-size: clamp(2rem, 10vw, 3.8rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.licc-result-line {
    height: 4px;
    margin: 22px 0 12px;
    background: var(--licc-strong);
    border-radius: 999px;
}

.licc-result h3 {
    margin: 20px 0 8px;
    color: var(--licc-strong);
    font-size: clamp(1.28rem, 5vw, 1.9rem);
    line-height: 1.15;
}

.licc-report {
    width: 100%;
    max-width: 100%;
}

.licc-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--licc-border);
    min-width: 0;
}

.licc-row span {
    min-width: 0;
    color: var(--licc-muted);
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 900;
    line-height: 1.25;
}

.licc-row strong {
    flex: 0 0 auto;
    max-width: 55%;
    color: var(--licc-strong);
    font-size: clamp(1.05rem, 4.5vw, 1.45rem);
    font-weight: 950;
    line-height: 1.2;
    text-align: right;
    overflow-wrap: anywhere;
}

.licc-row strong.licc-positive {
    color: var(--licc-accent);
}

.licc-explain,
.licc-disclaimer {
    margin: 18px 0 0;
    color: var(--licc-muted);
    line-height: 1.65;
}

.licc-explain {
    padding-top: 4px;
    font-weight: 700;
}

@media (min-width: 720px) {
    .licc-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .licc-theme-toggle {
        flex: 0 0 auto;
    }

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

    .licc-errors,
    .licc-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 430px) {
    .licc-shell {
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 0;
    }

    .licc-result,
    .licc-header,
    .licc-field {
        border-radius: 14px;
    }

    .licc-row {
        gap: 10px;
    }

    .licc-row strong {
        max-width: 50%;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .licc-wrap,
    .licc-wrap * {
        visibility: visible !important;
    }

    .licc-wrap {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
    }

    .licc-actions,
    .licc-theme-toggle {
        display: none !important;
    }

    .licc-shell,
    .licc-result,
    .licc-header,
    .licc-field {
        box-shadow: none !important;
    }
}
