
.agdws-results-wrap{
    max-width:1120px;margin:0 auto;padding:26px 20px 80px;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#0f172a;
}
.agdws-error{
    max-width:860px;margin:24px auto;padding:16px 18px;border-radius:14px;
    border:1px solid #f2c9c9;background:#fff7f7;color:#b42318;font-weight:700;
}
.agdws-results-head{text-align:center;margin-bottom:28px}
.agdws-risk-label{
    color:#2563eb;font-size:13px;font-weight:800;letter-spacing:.14em;
}
.agdws-risk-value{
    font-size:64px;line-height:1;font-weight:900;margin:10px 0 8px;
}
.agdws-results-target{color:#6b7c96;font-size:15px}

.agdws-metric-grid{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;
    margin:34px 0 28px;
}
.agdws-metric-card{
    background:#fff;border:1px solid #d8e1ee;border-radius:20px;
    padding:28px 20px;text-align:center;box-shadow:0 1px 0 rgba(15,23,42,.02);
}
.agdws-metric-card.is-danger{border-color:#f1b3b3;background:#fff8f8}
.agdws-metric-card.is-safe{border-color:#b9e6d0;background:#f7fffb}
.agdws-metric-title{font-size:14px;color:#667892;margin-bottom:12px}
.agdws-metric-number{font-size:54px;line-height:1;font-weight:900;color:#0f172a}
.agdws-metric-card.is-danger .agdws-metric-number,
.agdws-inline-number.is-danger{color:#ef4444}
.agdws-metric-card.is-safe .agdws-metric-number{color:#10b981}

.agdws-panel-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:46px;
}
.agdws-panel{
    background:#fff;border:1px solid #d8e1ee;border-radius:20px;padding:24px;
}
.agdws-panel-title{
    margin:0 0 18px;font-size:18px;font-weight:900;color:#0f172a;
}
.agdws-row-card{
    display:flex;justify-content:space-between;align-items:center;gap:16px;
    background:#fff8f8;border:1px solid #f2c9c9;border-radius:16px;padding:18px 18px;
}
.agdws-row-card + .agdws-row-card{margin-top:14px}
.agdws-row-title{font-size:16px;font-weight:800;color:#ef4444}
.agdws-row-sub{font-size:13px;color:#6f7f97;margin-top:4px}
.agdws-row-number{font-size:40px;line-height:1;font-weight:900;color:#ef4444}

.agdws-breach-heading{
    margin:28px 0 22px;font-size:18px;font-weight:900;color:#0f172a;
}

.agdws-timeline{
    position:relative;max-width:1040px;margin:0 auto;padding:8px 0 40px;
}
.agdws-timeline-line{
    position:absolute;left:50%;top:0;bottom:0;width:4px;
    transform:translateX(-50%);
    background:rgba(59,130,246,.16);border-radius:999px;overflow:hidden;
    box-shadow:0 0 18px rgba(59,130,246,.08);
}
.agdws-timeline-line-progress{
    position:absolute;left:0;top:0;width:100%;height:0%;
    background:linear-gradient(180deg,#93c5fd 0%, #3b82f6 45%, #2563eb 72%, #1d4ed8 100%);
    box-shadow:0 0 18px rgba(37,99,235,.45), 0 0 34px rgba(59,130,246,.28);
    border-radius:999px;
}
.agdws-timeline-item{
    position:relative;width:50%;padding:26px 48px;box-sizing:border-box;
    opacity:0;transform:translateY(26px);
    transition:opacity .6s ease, transform .6s ease;
}
.agdws-timeline-item.is-visible{opacity:1;transform:translateY(0)}
.agdws-timeline-item-left{left:0;padding-right:54px}
.agdws-timeline-item-right{left:50%;padding-left:54px}

.agdws-timeline-node{
    position:absolute;top:28px;width:74px;height:74px;border-radius:999px;
    display:flex;align-items:center;justify-content:center;text-align:center;
    font-size:12px;font-weight:800;color:#fff;
    background:radial-gradient(circle at 30% 30%, #4f8cff 0%, #2563eb 55%, #1e40af 100%);
    box-shadow:0 0 0 6px #eef4fb, 0 0 22px rgba(59,130,246,.40), 0 0 42px rgba(59,130,246,.22);
    z-index:3;
    opacity:0;transform:scale(.75);
    transition:opacity .45s ease, transform .45s ease;
}
.agdws-timeline-item.is-visible .agdws-timeline-node{opacity:1;transform:scale(1)}
.agdws-timeline-item-left .agdws-timeline-node{right:-37px}
.agdws-timeline-item-right .agdws-timeline-node{left:-37px}

.agdws-timeline-card{
    background:#fff;border:1px solid #d8e1ee;border-radius:20px;padding:22px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}
.agdws-timeline-card h3{
    margin:0 0 14px;font-size:20px;line-height:1.2;font-weight:900;color:#17263c;
}
.agdws-timeline-card p{
    margin:0;color:#43556f;font-size:15px;line-height:1.85;
}
.agdws-breach-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.agdws-breach-tags span{
    display:inline-block;background:#fff1f1;color:#ef4444;border:1px solid #f5cccc;
    padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;
    text-transform:uppercase;letter-spacing:.04em;
}

.agdws-inline-number{
    display:inline-block;font-size:inherit;font-weight:900;color:#0f172a;
}
.agdws-simple-block,
.agdws-simple-detail,
.agdws-simple-breaches{
    background:#fff;border:1px solid #d8e1ee;border-radius:16px;padding:16px 18px;
}
.agdws-simple-detail{
    display:flex;justify-content:space-between;align-items:center;gap:12px;
}
.agdws-simple-detail small{
    display:block;margin-top:4px;color:#6f7f97;
}
.agdws-simple-breaches ul{
    margin:12px 0 0;padding-left:18px;
}
.agdws-simple-breaches li + li{margin-top:8px}
.agdws-simple-breaches small{
    display:block;color:#6f7f97;margin-top:3px;
}

body.agdws-popup-open{
    overflow:hidden;
}

.agdws-report-popup{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:transparent;
    z-index:99999;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .25s ease, visibility .25s ease;
}
.agdws-report-popup.is-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.agdws-report-popup__dialog{
    width:min(92vw,780px);
    max-height:none;
    overflow:visible;
    box-sizing:border-box;
    border-radius:28px;
    background:linear-gradient(160deg,#ffffff 0%,#f8fbff 55%,#ffffff 100%);
    border:1px solid #d9e2ef;
    box-shadow:0 28px 62px rgba(15,23,42,.22), 0 0 0 1px rgba(255,255,255,.7) inset;
    padding:22px 22px 20px;
    position:relative;
    isolation:isolate;
    transform:translateY(14px) scale(.98);
    transition:transform .28s ease;
}
.agdws-report-popup.is-visible .agdws-report-popup__dialog{
    transform:translateY(0) scale(1);
}
.agdws-report-popup__dialog::before{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    right:-95px;
    top:-80px;
    background:radial-gradient(circle,rgba(59,130,246,.18) 0%,rgba(59,130,246,0) 72%);
    pointer-events:none;
    z-index:0;
}
.agdws-report-popup__dialog::after{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    left:-120px;
    bottom:-135px;
    background:radial-gradient(circle,rgba(79,70,229,.16) 0%,rgba(79,70,229,0) 72%);
    pointer-events:none;
    z-index:0;
}
.agdws-report-popup__close{
    position:absolute;
    top:14px;
    right:14px;
    width:36px;
    height:36px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#eef2ff,#e2e8f0);
    color:#475569;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(15,23,42,.12);
    z-index:20;
}
.agdws-report-popup__banner{
    display:flex;
    gap:14px;
    align-items:center;
    justify-content:space-between;
    background:linear-gradient(115deg,#f6f9ff 0%,#f3f7ff 55%,#f6f9ff 100%);
    border:1px solid #dce6f6;
    border-radius:14px;
    padding:14px 16px;
    position:relative;
    z-index:1;
}
.agdws-report-popup__banner strong{
    color:#111f37;
    font-size:36px;
    line-height:1;
    font-weight:900;
}
.agdws-report-popup__banner span{
    font-size:12px;
    line-height:1.3;
    font-weight:800;
    letter-spacing:.02em;
    color:#b91c1c;
    text-transform:uppercase;
    text-align:right;
    background:#f8fbff;
    border:1px solid #dce6f6;
    border-radius:999px;
    padding:7px 12px;
}
.agdws-report-popup__count-wrap{
    text-align:center;
    margin:16px 0;
    position:relative;
    z-index:1;
}
.agdws-report-popup__count{
    font-size:80px;
    line-height:1;
    font-weight:900;
    background:linear-gradient(180deg,#fb7185 0%,#ef4444 52%,#dc2626 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}
.agdws-report-popup__count-sub{
    margin:6px 0 0;
    color:#1f2937;
    font-size:29px;
    font-weight:800;
}
.agdws-report-popup__stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    position:relative;
    z-index:1;
}
.agdws-report-popup__stat-card{
    border:1px solid #dce6f6;
    border-radius:14px;
    background:linear-gradient(160deg,#f8fbff 0%,#f4f8ff 100%);
    min-height:112px;
    padding:14px 12px;
    text-align:center;
    display:flex;
    flex-direction:column;
    justify-content:center;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.agdws-report-popup__stat-card.is-danger{
    border-color:#dce6f6;
    background:linear-gradient(160deg,#f6f9ff 0%,#f2f7ff 100%);
}
.agdws-report-popup__stat-card strong{
    color:#ef4444;
    font-size:40px;
    line-height:1;
    font-weight:900;
}
.agdws-report-popup__stat-card span{
    margin-top:8px;
    color:#1f2937;
    font-size:13px;
    line-height:1.3;
    font-weight:800;
    letter-spacing:.03em;
}
.agdws-report-popup__summary{
    margin:18px 0 14px;
    text-align:center;
    color:#51637a;
    font-size:17px;
    position:relative;
    z-index:1;
}
.agdws-report-popup__label{
    display:block;
    margin-bottom:8px;
    color:#334155;
    font-size:13px;
    font-weight:800;
    letter-spacing:.06em;
}
.agdws-report-popup__field-row{
    display:grid;
    grid-template-columns:1fr;
    position:relative;
    z-index:1;
}
.agdws-report-popup__input{
    height:48px;
    border-radius:12px;
    border:1px solid #d5e3f7;
    background:#fff;
    padding:0 14px;
    font-size:17px;
    outline:none;
}
.agdws-report-popup__input:focus{
    border-color:#60a5fa;
    box-shadow:0 0 0 3px rgba(96,165,250,.2);
}
.agdws-report-popup__submit{
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#3b82f6 0%,#4f46e5 100%);
    color:#fff;
    font-size:17px;
    font-weight:800;
    width:100%;
    height:48px;
    margin-top:10px;
    padding:0 20px;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(79,70,229,.24);
}
.agdws-report-popup__submit.is-loading{
    opacity:.72;
    cursor:wait;
}
.agdws-report-popup__progress{
    margin:10px 0 0;
    height:8px;
    border-radius:999px;
    background:#e9f0fb;
    overflow:hidden;
    position:relative;
    z-index:1;
}
.agdws-report-popup__progress-fill{
    display:block;
    width:0%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#60a5fa,#3b82f6,#4f46e5);
    box-shadow:0 2px 8px rgba(79,70,229,.24);
}
.agdws-report-popup__consent{
    margin:12px 0 0;
    color:#70839a;
    font-size:12px;
    line-height:1.5;
    position:relative;
    z-index:1;
    display:flex;
    gap:10px;
    align-items:flex-start;
}
.agdws-report-popup__consent input{
    width:16px;
    height:16px;
    margin-top:2px;
    accent-color:#3b82f6;
    flex:0 0 auto;
}
.agdws-report-popup__consent span{
    display:block;
    flex:1;
}
.agdws-report-popup__status{
    margin:10px 0 0;
    font-size:13px;
    line-height:1.35;
    color:#047857;
    font-weight:700;
}
.agdws-report-popup__status.is-error{
    color:#b42318;
}

@media (max-width:900px){
    .agdws-metric-grid,.agdws-panel-grid{grid-template-columns:1fr}
    .agdws-risk-value{font-size:46px}

    .agdws-timeline-line{left:24px;transform:none}
    .agdws-timeline-item,
    .agdws-timeline-item-left,
    .agdws-timeline-item-right{
        width:100%;left:0;padding-left:84px;padding-right:0;
    }
    .agdws-timeline-item-left .agdws-timeline-node,
    .agdws-timeline-item-right .agdws-timeline-node{
        left:-13px;right:auto;
    }

    .agdws-report-popup__banner{
        flex-direction:column;
        align-items:flex-start;
    }
    .agdws-report-popup__banner strong{
        font-size:30px;
    }
    .agdws-report-popup__banner span{
        text-align:left;
    }
    .agdws-report-popup__count{
        font-size:60px;
    }
    .agdws-report-popup__count-sub{
        font-size:24px;
    }
    .agdws-report-popup__stats{
        grid-template-columns:1fr;
    }
    .agdws-report-popup__field-row{
        grid-template-columns:1fr;
    }
    .agdws-report-popup__submit{
        height:48px;
    }
    .agdws-report-popup__dialog{
        max-height:calc(100dvh - 28px);
        overflow-y:auto;
        overflow-x:hidden;
    }
}
@media (max-height:840px){
    .agdws-report-popup__dialog{
        max-height:calc(100dvh - 28px);
        overflow-y:auto;
        overflow-x:hidden;
    }
}
