.tool-widget:has(.dac-tool) {
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dac-tool {
    --dac-accent: #38bdf8;
    --dac-accent-2: #22c55e;
    --dac-line: rgba(148, 163, 184, .18);
    --dac-panel: #0b1524;
    container-type: inline-size;
    width: 100%;
    color: #e8eef7;
    font-family: var(--font, "Plus Jakarta Sans", system-ui, sans-serif);
}

.dac-tool * { box-sizing: border-box; }

.dac-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.4rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(56, 189, 248, .18), transparent 34%),
        linear-gradient(135deg, #102033, #0a1320 70%);
    border: 1px solid var(--dac-line);
    border-radius: 18px 18px 0 0;
}

.dac-kicker,
.dac-eyebrow {
    display: block;
    color: var(--dac-accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dac-hero h2 {
    margin: .3rem 0 .4rem;
    color: #fff;
    font-size: clamp(1.2rem, 3cqi, 1.7rem);
    letter-spacing: -.02em;
}

.dac-hero p {
    max-width: 52ch;
    margin: 0;
    color: #93a8bd;
    font-size: .84rem;
    line-height: 1.6;
}

.dac-hero-pills {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: .4rem;
    max-width: 220px;
}

.dac-hero-pills span {
    padding: .28rem .55rem;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 999px;
    background: rgba(56, 189, 248, .08);
    color: #9edfff;
    font-size: .62rem;
    font-weight: 800;
}

.dac-form {
    position: sticky;
    top: 82px;
    z-index: 20;
    padding: 1.15rem 1.35rem 1rem;
    background: var(--dac-panel);
    border: 1px solid var(--dac-line);
    border-top: 0;
    box-shadow: 0 12px 28px rgba(2, 8, 23, .18);
}

.dac-label {
    display: block;
    margin-bottom: .45rem;
    color: #c9d8e8;
    font-size: .78rem;
    font-weight: 800;
}

.dac-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
}

.dac-input-shell {
    position: relative;
    min-width: 0;
}

.dac-input-row input {
    width: 100%;
    height: 46px;
    padding: 0 2.8rem 0 .9rem;
    background: #07111d;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 10px;
    color: #e8eef7;
}

.dac-input-clear {
    position: absolute;
    top: 50%;
    right: .55rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px;
    background: rgba(148, 163, 184, .08);
    color: #9db0c1;
    font: 400 1.15rem/1 system-ui, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.dac-input-clear:hover {
    border-color: rgba(56, 189, 248, .3);
    background: rgba(56, 189, 248, .12);
    color: #e0f5ff;
}
.dac-input-clear[hidden] { display: none; }

.dac-input-row .btn {
    min-height: 46px;
    padding: 0 1.1rem;
    white-space: nowrap;
}

.dac-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .65rem;
    color: #7f93a8;
    font-size: .68rem;
}

.dac-examples button {
    padding: .28rem .55rem;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 999px;
    background: rgba(56, 189, 248, .06);
    color: #9edfff;
    font: 700 .65rem inherit;
    cursor: pointer;
}

.dac-examples button:hover {
    background: rgba(56, 189, 248, .14);
}

.dac-recent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(148, 163, 184, .1);
    color: #7f93a8;
    font-size: .68rem;
}

.dac-recent > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.dac-recent button {
    padding: .25rem .5rem;
    border: 0;
    border-radius: 7px;
    background: rgba(148, 163, 184, .09);
    color: #bfd0e0;
    font: 700 .64rem inherit;
    cursor: pointer;
}
.dac-recent button:hover { background: rgba(56, 189, 248, .14); color: #b9eaff; }
.dac-recent .dac-recent-clear { margin-left: auto; background: transparent; color: #71869a; }

.dac-tool .tool-status {
    margin: 0 1.35rem .85rem;
}

.dac-progress {
    margin: 0 1.35rem .9rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 13px;
    background:
        radial-gradient(circle at 100% 0, rgba(56, 189, 248, .1), transparent 42%),
        #0d1a2a;
    box-shadow: 0 12px 30px rgba(2, 8, 23, .18);
}
.dac-progress-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
}
.dac-progress-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(56, 189, 248, .25);
    border-radius: 10px;
    background: rgba(56, 189, 248, .08);
}
.dac-progress-icon span {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(125, 211, 252, .25);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: dac-spin .8s linear infinite;
}
.dac-progress-head > div:nth-child(2) { display: grid; gap: .16rem; }
.dac-progress-head strong { color: #eaf5ff; font-size: .77rem; }
.dac-progress-head span { color: #849bae; font-size: .64rem; }
.dac-progress-head b {
    min-width: 42px;
    color: #7dd3fc;
    font-size: .76rem;
    text-align: right;
}
.dac-progress-track {
    height: 8px;
    margin-top: .75rem;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, .12);
}
.dac-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #22c55e);
    box-shadow: 0 0 18px rgba(56, 189, 248, .3);
    transition: width .35s ease;
}
.dac-progress-stages {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .35rem;
    margin-top: .6rem;
}
.dac-progress-stages span {
    position: relative;
    padding-top: .42rem;
    color: #61788d;
    font-size: .54rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.dac-progress-stages span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34485b;
    transform: translateX(-50%);
}
.dac-progress-stages .is-active { color: #7dd3fc; }
.dac-progress-stages .is-active::before { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.dac-progress-stages .is-done { color: #86efac; }
.dac-progress-stages .is-done::before { background: #22c55e; }
.dac-progress.is-complete { border-color: rgba(34, 197, 94, .28); }
.dac-progress.is-complete .dac-progress-icon { border-color: rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .1); }
.dac-progress.is-complete .dac-progress-icon span {
    width: 9px;
    height: 16px;
    border: solid #86efac;
    border-width: 0 3px 3px 0;
    border-radius: 0;
    animation: none;
    transform: rotate(45deg) translate(-2px, -1px);
}
.dac-progress.is-error { border-color: rgba(239, 68, 68, .3); }
.dac-progress.is-error .dac-progress-icon span { border-color: #fca5a5; animation: none; }
@keyframes dac-spin { to { transform: rotate(360deg); } }

.dac-results {
    padding: 0 1.35rem 1.35rem;
    background: var(--dac-panel);
    border: 1px solid var(--dac-line);
    border-top: 0;
    border-radius: 0 0 18px 18px;
}

.dac-snapshot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
    margin-bottom: .9rem;
    padding: 1rem 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .2);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(56, 189, 248, .12), transparent 38%),
        #0d1929;
}

.dac-score {
    --score: 0;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: conic-gradient(var(--dac-accent-2) calc(var(--score) * 1%), rgba(148, 163, 184, .13) 0);
    box-shadow: 0 0 30px rgba(34, 197, 94, .08);
}

.dac-score::before {
    content: "";
    grid-area: 1 / 1;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #0b1625;
}

.dac-score > div { position: relative; grid-area: 1 / 1; text-align: center; }
.dac-score strong { display: block; color: #f0fdf4; font-size: 1.55rem; line-height: 1; }
.dac-score span { color: #7890a5; font-size: .62rem; }
.dac-snapshot-copy h3 { margin: .22rem 0 .28rem; color: #eef7ff; font-size: 1rem; }
.dac-snapshot-copy p { margin: 0; color: #8399ad; font-size: .7rem; line-height: 1.45; }

.dac-health-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    margin-top: .65rem;
}

.dac-health-checks span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, .08);
    color: #a9b8c6;
    font-size: .61rem;
    font-weight: 800;
}
.dac-health-checks i {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-style: normal;
    font-size: .58rem;
}
.dac-health-checks .is-good { color: #9ce9b7; background: rgba(34, 197, 94, .1); }
.dac-health-checks .is-good i { background: rgba(34, 197, 94, .2); }
.dac-health-checks .is-bad { color: #f6b0b0; background: rgba(239, 68, 68, .1); }
.dac-health-checks .is-bad i { background: rgba(239, 68, 68, .2); }
.dac-health-checks .is-unknown i { background: rgba(148, 163, 184, .16); }

.dac-age-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
    padding: 1rem 1.1rem;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, .16), transparent 40%),
        linear-gradient(145deg, #10263a, #0c1828);
    border: 1px solid rgba(34, 197, 94, .22);
    border-radius: 14px;
}

.dac-age-card strong {
    display: block;
    margin: .25rem 0 .2rem;
    color: #f0fdf4;
    font-size: clamp(1.25rem, 3.5cqi, 1.7rem);
    letter-spacing: -.02em;
}

.dac-age-card small {
    color: #92b5a3;
    font-size: .7rem;
}

.dac-age-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    min-width: min(100%, 280px);
}

.dac-age-stats div {
    padding: .55rem .6rem;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 10px;
}

.dac-age-stats span {
    display: block;
    color: #7f93a8;
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dac-age-stats b {
    display: block;
    margin-top: .2rem;
    color: #e8eef7;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.dac-lifecycle {
    margin-bottom: .9rem;
    padding: .85rem 1rem;
    border: 1px solid var(--dac-line);
    border-radius: 12px;
    background: #0d1929;
}
.dac-lifecycle > div:first-child { display: flex; justify-content: space-between; gap: 1rem; }
.dac-lifecycle > div:first-child span { color: #8197aa; font-size: .66rem; font-weight: 700; }
.dac-lifecycle > div:first-child strong { color: #dce8f4; font-size: .7rem; }
.dac-lifecycle-track {
    position: relative;
    height: 8px;
    margin: .65rem 0 .5rem;
    border-radius: 99px;
    background: rgba(148, 163, 184, .12);
}
.dac-lifecycle-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dac-accent), var(--dac-accent-2));
    transition: width .45s ease;
}
.dac-lifecycle-track i {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    border: 3px solid #0d1929;
    border-radius: 50%;
    background: #86efac;
    transform: translate(-50%, -50%);
    transition: left .45s ease;
}
.dac-lifecycle small { color: #8298ab; font-size: .64rem; }

.dac-charts {
    margin-bottom: .9rem;
    padding: 1rem;
    border: 1px solid var(--dac-line);
    border-radius: 12px;
    background: #0d1929;
}
.dac-chart-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dac-chart-head h3 { margin: .2rem 0 0; color: #e8f1fa; font-size: .9rem; }
.dac-chart-head > span { color: #70869a; font-size: .61rem; }
.dac-chart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 1.25rem;
}
.dac-signal-chart { display: grid; gap: .7rem; }
.dac-signal-row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) 28px;
    align-items: center;
    gap: .65rem;
}
.dac-signal-row > span { color: #aabccc; font-size: .66rem; font-weight: 700; }
.dac-signal-row > div {
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, .12);
}
.dac-signal-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
    box-shadow: 0 0 16px rgba(56, 189, 248, .2);
    transition: width .45s ease;
}
.dac-signal-row strong { color: #d9e7f3; font-size: .65rem; text-align: right; }
.dac-dns-chart {
    display: grid;
    justify-items: center;
    gap: .6rem;
    padding-left: 1.15rem;
    border-left: 1px solid rgba(148, 163, 184, .12);
}
.dac-donut {
    --value: 0;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: conic-gradient(#38bdf8 calc(var(--value) * 1%), rgba(148, 163, 184, .12) 0);
}
.dac-donut::before {
    content: "";
    grid-area: 1 / 1;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #0d1929;
}
.dac-donut > div { position: relative; grid-area: 1 / 1; text-align: center; }
.dac-donut strong { display: block; color: #eef8ff; font-size: 1.35rem; line-height: 1; }
.dac-donut span { color: #7890a5; font-size: .58rem; }
.dac-dns-chart p { display: grid; gap: .15rem; margin: 0; text-align: center; }
.dac-dns-chart p strong { color: #c9d8e6; font-size: .68rem; }
.dac-dns-chart p span { color: #748b9e; font-size: .6rem; }

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

.dac-panel {
    min-width: 0;
    padding: .9rem 1rem;
    background: #0d1929;
    border: 1px solid var(--dac-line);
    border-radius: 12px;
}

.dac-panel-wide { grid-column: 1 / -1; }

.dac-panel h3 {
    margin: 0 0 .7rem;
    color: #dbe7f4;
    font-size: .82rem;
}

.dac-dl {
    display: grid;
    gap: .45rem;
    margin: 0;
}

.dac-dl div {
    display: grid;
    grid-template-columns: minmax(90px, 34%) minmax(0, 1fr);
    gap: .55rem;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.dac-dl div:last-child { border-bottom: 0; }

.dac-dl dt {
    color: #8096ab;
    font-size: .68rem;
    font-weight: 700;
}

.dac-dl dd {
    margin: 0;
    color: #e7eef8;
    font-size: .74rem;
    overflow-wrap: anywhere;
}

.dac-dns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .55rem;
}

.dac-dns-block {
    padding: .65rem .7rem;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 10px;
}

.dac-dns-block strong {
    display: block;
    margin-bottom: .35rem;
    color: var(--dac-accent);
    font-size: .68rem;
    letter-spacing: .04em;
}

.dac-dns-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dac-dns-block li {
    color: #d5e2ef;
    font-size: .68rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dac-dns-block li + li { margin-top: .2rem; }

.dac-empty-note {
    color: #8096ab;
    font-size: .72rem;
}

.dac-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
}
.dac-actions .btn { min-height: 40px; }
.dac-actions .dac-export-pdf { border-color: rgba(239, 68, 68, .3); color: #fca5a5; }
.dac-actions .dac-export-excel { border-color: rgba(34, 197, 94, .3); color: #86efac; }

.dac-badge {
    display: inline-flex;
    align-items: center;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
}

.dac-badge-ok {
    background: rgba(34, 197, 94, .14);
    color: #86efac;
}

.dac-badge-warn {
    background: rgba(245, 158, 11, .14);
    color: #fcd34d;
}

.dac-badge-bad {
    background: rgba(239, 68, 68, .14);
    color: #fca5a5;
}

@container (max-width: 720px) {
    .dac-hero { flex-direction: column; }
    .dac-hero-pills { max-width: none; justify-content: flex-start; }
    .dac-age-card { flex-direction: column; }
    .dac-grid { grid-template-columns: 1fr; }
    .dac-chart-layout { grid-template-columns: 1fr; }
    .dac-dns-chart { padding: 1rem 0 0; border-top: 1px solid rgba(148, 163, 184, .12); border-left: 0; }
}

@container (max-width: 520px) {
    .dac-input-row { grid-template-columns: 1fr; }
    .dac-input-row .btn { width: 100%; }
    .dac-age-stats { grid-template-columns: 1fr; }
    .dac-form,
    .dac-results { padding-left: 1rem; padding-right: 1rem; }
    .dac-dl div { grid-template-columns: 1fr; gap: .15rem; }
    .dac-snapshot { grid-template-columns: 1fr; text-align: center; }
    .dac-score { margin: 0 auto; }
    .dac-health-checks { justify-content: center; }
    .dac-lifecycle > div:first-child { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .dac-actions { display: grid; grid-template-columns: 1fr; }
    .dac-actions .btn { width: 100%; justify-content: center; }
    .dac-chart-head { align-items: flex-start; flex-direction: column; }
    .dac-signal-row { grid-template-columns: 82px minmax(0, 1fr) 24px; gap: .45rem; }
    .dac-progress { margin-left: 1rem; margin-right: 1rem; }
    .dac-progress-stages span { font-size: .48rem; }
}

@media (max-width: 760px) {
    .dac-form { top: 68px; }
}

@media (prefers-reduced-motion: reduce) {
    .dac-tool * { transition: none !important; }
    .dac-progress-icon span { animation: none; }
}
