.bciyd{
    --bciyd-red:#b91c1c;
    --bciyd-red-dark:#7f1d1d;
    --bciyd-red-soft:#fff1f2;
    --bciyd-ink:#111827;
    --bciyd-muted:#5f6b7a;
    --bciyd-line:#e5e7eb;
    --bciyd-soft:#f8fafc;
    --bciyd-white:#fff;
    --bciyd-green:#166534;
    --bciyd-green-soft:#f0fdf4;
    --bciyd-shadow:0 18px 45px rgba(15,23,42,.08);
    width:100%;
    max-width:100%;
    color:var(--bciyd-ink);
    font-family:inherit;
}

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

.bciyd button,
.bciyd input,
.bciyd select{
    font:inherit;
}

.bciyd-hero{
    background:linear-gradient(135deg,#7f1d1d 0%,#b91c1c 55%,#991b1b 100%);
    color:#fff;
    border-radius:22px;
    padding:34px;
    margin:10px 0 22px;
    box-shadow:0 24px 55px rgba(127,29,29,.17);
}

.bciyd-kicker{
    display:inline-flex;
    margin-bottom:9px;
    color:#fecaca;
    font-size:12px;
    font-weight:900;
    letter-spacing:1.4px;
    text-transform:uppercase;
}

.bciyd-hero h2{
    margin:0 0 12px;
    color:#fff;
    font-size:clamp(30px,4.2vw,48px);
    line-height:1.06;
    letter-spacing:-1.4px;
}

.bciyd-hero>p{
    max-width:900px;
    margin:0;
    color:#fee2e2;
    font-size:16px;
    line-height:1.65;
}

.bciyd-hero-note{
    margin-top:20px;
    padding:14px 16px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:12px;
    background:rgba(255,255,255,.09);
    color:#fff;
    font-size:13px;
    line-height:1.55;
}

.bciyd-form,
.bciyd-results,
.bciyd-method{
    margin:22px 0;
    padding:28px;
    border:1px solid var(--bciyd-line);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--bciyd-shadow);
}

.bciyd-section-head,
.bciyd-method-head{
    display:flex;
    align-items:flex-start;
    gap:14px;
    margin-bottom:20px;
}

.bciyd-step{
    display:grid;
    place-items:center;
    flex:0 0 38px;
    width:38px;
    height:38px;
    border-radius:11px;
    background:var(--bciyd-red);
    color:#fff;
    font-weight:900;
}

.bciyd-section-head h3,
.bciyd-method-head h3{
    margin:0 0 4px;
    color:var(--bciyd-ink);
    font-size:24px;
    line-height:1.2;
    letter-spacing:-.5px;
}

.bciyd-section-head p,
.bciyd-method-head p{
    margin:0;
    color:var(--bciyd-muted);
    font-size:14px;
}

.bciyd-age-panel{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);
    gap:18px;
    align-items:stretch;
}

.bciyd-age-field,
.bciyd-age-profile{
    margin:0;
    padding:20px;
    border:1px solid var(--bciyd-line);
    border-radius:16px;
    background:var(--bciyd-soft);
}

.bciyd-age-input-wrap{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:8px;
}

.bciyd-age-input-wrap input{
    width:120px;
    min-width:0;
    font-size:30px;
    font-weight:900;
    text-align:center;
}

.bciyd-age-suffix{
    color:var(--bciyd-muted);
    font-size:14px;
    font-weight:700;
}

.bciyd-age-profile{
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:linear-gradient(135deg,#fff,#fff7f7);
    border-color:#fecaca;
}

.bciyd-age-profile>span{
    color:var(--bciyd-red);
    font-size:11px;
    font-weight:900;
    letter-spacing:1.2px;
    text-transform:uppercase;
}

.bciyd-age-profile strong{
    margin-top:4px;
    font-size:22px;
    line-height:1.2;
}

.bciyd-age-profile small{
    margin-top:7px;
    color:var(--bciyd-muted);
    font-size:12px;
    line-height:1.5;
}

.bciyd-divider{
    height:1px;
    margin:26px 0;
    background:var(--bciyd-line);
}

.bciyd-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.bciyd-field{
    display:block;
    margin:0;
    color:var(--bciyd-ink);
    font-size:13px;
    font-weight:800;
}

.bciyd-field>span{
    display:block;
    margin-bottom:7px;
}

.bciyd-field b{
    color:var(--bciyd-red);
}

.bciyd-field input,
.bciyd-field select{
    width:100%;
    max-width:100%;
    min-height:48px;
    padding:11px 12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    outline:0;
    background:#fff;
    color:var(--bciyd-ink);
    transition:border-color .18s ease,box-shadow .18s ease;
}

.bciyd-field input:focus,
.bciyd-field select:focus{
    border-color:var(--bciyd-red);
    box-shadow:0 0 0 3px rgba(185,28,28,.11);
}

.bciyd-field small{
    display:block;
    margin-top:6px;
    color:var(--bciyd-muted);
    font-size:11px;
    font-weight:500;
    line-height:1.45;
}

.bciyd-error{
    display:block;
    min-height:18px;
    margin-top:4px;
    color:var(--bciyd-red);
    font-size:11px;
    font-style:normal;
    font-weight:800;
}

.bciyd-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:24px;
}

.bciyd-actions button,
.bciyd-result-actions button{
    min-height:46px;
    padding:11px 17px;
    border-radius:10px;
    font-weight:900;
    cursor:pointer;
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}

.bciyd-actions button:hover,
.bciyd-result-actions button:hover{
    transform:translateY(-1px);
}

.bciyd-primary{
    border:1px solid var(--bciyd-red);
    background:var(--bciyd-red);
    color:#fff;
    box-shadow:0 10px 24px rgba(185,28,28,.18);
}

.bciyd-primary:hover{
    background:var(--bciyd-red-dark);
}

.bciyd-secondary,
.bciyd-result-actions button{
    border:1px solid var(--bciyd-line);
    background:#fff;
    color:var(--bciyd-ink);
}

.bciyd-empty{
    padding:30px 20px;
    text-align:center;
}

.bciyd-empty-icon{
    display:grid;
    place-items:center;
    width:54px;
    height:54px;
    margin:0 auto 14px;
    border-radius:16px;
    background:var(--bciyd-red-soft);
    color:var(--bciyd-red);
    font-size:25px;
    font-weight:900;
}

.bciyd-empty h3{
    margin:0 0 5px;
    font-size:22px;
}

.bciyd-empty p{
    margin:0;
    color:var(--bciyd-muted);
}

.bciyd-results-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    margin-bottom:18px;
}

.bciyd-results-head .bciyd-kicker,
.bciyd-method .bciyd-kicker{
    color:var(--bciyd-red);
}

.bciyd-results-head h3{
    margin:0 0 6px;
    font-size:28px;
    line-height:1.2;
    letter-spacing:-.6px;
}

.bciyd-results-head p{
    margin:0;
    color:var(--bciyd-muted);
    font-size:14px;
}

.bciyd-updated{
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:999px;
    background:var(--bciyd-soft);
    color:var(--bciyd-muted);
    font-size:11px;
    font-weight:800;
}

.bciyd-summary{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
    margin:18px 0 24px;
}

.bciyd-summary>div{
    min-width:0;
    padding:13px;
    border:1px solid var(--bciyd-line);
    border-radius:12px;
    background:var(--bciyd-soft);
}

.bciyd-summary span{
    display:block;
    color:var(--bciyd-muted);
    font-size:10px;
    font-weight:900;
    letter-spacing:.8px;
    text-transform:uppercase;
}

.bciyd-summary strong{
    display:block;
    margin-top:4px;
    font-size:12px;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.bciyd-company-list{
    display:grid;
    gap:16px;
}

.bciyd-company{
    padding:20px;
    border:1px solid var(--bciyd-line);
    border-radius:16px;
    background:#fff;
}

.bciyd-company-top{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    gap:13px;
    align-items:center;
}

.bciyd-rank{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:12px;
    background:var(--bciyd-red);
    color:#fff;
    font-size:18px;
    font-weight:900;
}

.bciyd-company-title h4{
    margin:2px 0 2px;
    font-size:22px;
    line-height:1.2;
}

.bciyd-company-title p{
    margin:0;
    color:var(--bciyd-muted);
    font-size:12px;
}

.bciyd-match-label{
    display:inline-block;
    color:var(--bciyd-green);
    font-size:10px;
    font-weight:900;
    letter-spacing:.8px;
    text-transform:uppercase;
}

.bciyd-score{
    min-width:82px;
    padding:9px 11px;
    border-radius:11px;
    background:var(--bciyd-green-soft);
    text-align:center;
}

.bciyd-score strong{
    display:block;
    color:var(--bciyd-green);
    font-size:22px;
    line-height:1;
}

.bciyd-score span{
    display:block;
    margin-top:3px;
    color:#4b5563;
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
}

.bciyd-tags{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:14px 0 16px;
}

.bciyd-tags span{
    padding:5px 8px;
    border:1px solid #fecaca;
    border-radius:999px;
    background:#fff7f7;
    color:var(--bciyd-red-dark);
    font-size:10px;
    font-weight:800;
}

.bciyd-company-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.bciyd-company-grid>div{
    min-width:0;
    padding:15px;
    border-radius:12px;
    background:var(--bciyd-soft);
}

.bciyd-company-grid h5{
    margin:0 0 9px;
    font-size:13px;
}

.bciyd-company-grid ul{
    margin:0;
    padding-left:18px;
    color:#374151;
    font-size:12px;
    line-height:1.55;
}

.bciyd-company-grid li+li{
    margin-top:6px;
}

.bciyd-availability{
    margin-top:14px;
    padding:11px 13px;
    border-left:3px solid #94a3b8;
    border-radius:7px;
    background:#f8fafc;
    color:#475569;
    font-size:11px;
    line-height:1.5;
}

.bciyd-company-actions{
    margin-top:13px;
}

.bciyd-company-actions a{
    display:inline-flex;
    align-items:center;
    color:var(--bciyd-red);
    font-size:12px;
    font-weight:900;
    text-decoration:none;
}

.bciyd-company-actions a:hover,
.bciyd-company-actions a:focus{
    text-decoration:underline;
}

.bciyd-compare-note{
    margin-top:20px;
    padding:16px;
    border:1px solid #fde68a;
    border-radius:13px;
    background:#fffbeb;
}

.bciyd-compare-note h4{
    margin:0 0 5px;
    font-size:15px;
}

.bciyd-compare-note p{
    margin:0;
    color:#6b5a22;
    font-size:12px;
    line-height:1.55;
}

.bciyd-result-actions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:18px;
}

.bciyd-disclaimer{
    margin:15px 0 0;
    color:var(--bciyd-muted);
    font-size:11px;
    line-height:1.55;
}

.bciyd-method{
    background:var(--bciyd-soft);
}

.bciyd-method-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.bciyd-method-grid>div{
    padding:16px;
    border:1px solid var(--bciyd-line);
    border-radius:13px;
    background:#fff;
}

.bciyd-method-grid strong{
    font-size:13px;
}

.bciyd-method-grid p{
    margin:6px 0 0;
    color:var(--bciyd-muted);
    font-size:11px;
    line-height:1.5;
}

.bciyd-method details{
    margin-top:15px;
    padding:13px 15px;
    border:1px solid var(--bciyd-line);
    border-radius:12px;
    background:#fff;
}

.bciyd-method summary{
    cursor:pointer;
    font-size:13px;
    font-weight:900;
}

.bciyd-method details p{
    margin:10px 0 0;
    color:var(--bciyd-muted);
    font-size:12px;
    line-height:1.6;
}

.bciyd-no-match{
    padding:24px;
    border:1px dashed #cbd5e1;
    border-radius:14px;
    text-align:center;
    background:var(--bciyd-soft);
}

.bciyd-no-match h4{
    margin:0 0 6px;
}

.bciyd-no-match p{
    margin:0;
    color:var(--bciyd-muted);
}

@media(max-width:900px){
    .bciyd-age-panel,
    .bciyd-grid,
    .bciyd-company-grid,
    .bciyd-method-grid{
        grid-template-columns:1fr;
    }

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

@media(max-width:640px){
    .bciyd-hero,
    .bciyd-form,
    .bciyd-results,
    .bciyd-method{
        padding:20px;
        border-radius:16px;
    }

    .bciyd-hero h2{
        font-size:34px;
    }

    .bciyd-section-head h3,
    .bciyd-method-head h3,
    .bciyd-results-head h3{
        font-size:22px;
    }

    .bciyd-age-input-wrap{
        align-items:stretch;
        flex-direction:column;
    }

    .bciyd-age-input-wrap input{
        width:100%;
        text-align:left;
    }

    .bciyd-actions,
    .bciyd-result-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .bciyd-actions button,
    .bciyd-result-actions button{
        width:100%;
    }

    .bciyd-results-head{
        flex-direction:column;
    }

    .bciyd-summary{
        grid-template-columns:1fr;
    }

    .bciyd-company{
        padding:16px;
    }

    .bciyd-company-top{
        grid-template-columns:40px minmax(0,1fr);
    }

    .bciyd-rank{
        width:40px;
        height:40px;
    }

    .bciyd-score{
        grid-column:1/-1;
        width:100%;
        min-width:0;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
    }

    .bciyd-score span{
        margin-top:0;
    }

    .bciyd-company-title h4{
        font-size:19px;
    }

    .bciyd-company-actions a{
        width:100%;
        min-height:44px;
        justify-content:center;
        padding:10px 12px;
        border:1px solid #fecaca;
        border-radius:9px;
        background:#fff7f7;
        text-align:center;
    }
}

@media print{
    .bciyd-form,
    .bciyd-result-actions,
    .bciyd-method,
    .bciyd-empty{
        display:none!important;
    }

    .bciyd-hero,
    .bciyd-results,
    .bciyd-company{
        box-shadow:none!important;
    }

    .bciyd-hero{
        background:#fff!important;
        color:#111827!important;
        border:1px solid #ddd;
    }

    .bciyd-hero h2,
    .bciyd-hero>p,
    .bciyd-hero-note{
        color:#111827!important;
    }

    .bciyd-company{
        break-inside:avoid;
    }

    .bciyd-company-actions{
        display:none;
    }
}
