/* Productized DNS tools. Scoped to .tools-dns-page so the existing tool and
 * account pages keep their historical styles. */
.tools-dns-page,
.tools-dns-page * {
    box-sizing: border-box;
}

.tools-dns-page [hidden] {
    display: none !important;
}

.tools-dns-page {
    --dns-ink: #14233a;
    --dns-muted: #637188;
    --dns-subtle: #8b98aa;
    --dns-border: #dfe6ef;
    --dns-surface: #fff;
    --dns-soft: #f5f8fc;
    --dns-brand: #246bfd;
    --dns-brand-dark: #1455cb;
    --dns-success: #138a6a;
    --dns-warning: #a86a11;
    --dns-danger: #c33c51;
    width: min(1380px, calc(100% - 40px));
    margin: 42px auto 72px;
    color: var(--dns-ink);
    font-family: Arial, "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

.tools-dns-page button,
.tools-dns-page input,
.tools-dns-page select,
.tools-dns-page textarea {
    font: inherit;
}

.tools-dns-page button,
.tools-dns-page a {
    -webkit-tap-highlight-color: transparent;
}

.tools-dns-page a:not(.el-button) {
    color: inherit;
}

.tools-dns-page button:focus-visible,
.tools-dns-page a:focus-visible,
.tools-dns-page input:focus-visible,
.tools-dns-page select:focus-visible,
.tools-dns-page textarea:focus-visible {
    outline: 3px solid rgba(36, 107, 253, .28) !important;
    outline-offset: 2px;
}

.tools-dns-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.tools-dns-hero__copy {
    min-width: 0;
}

.tools-dns-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    color: var(--dns-brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.tools-dns-hero h1 {
    margin: 0;
    color: #111e33;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.tools-dns-hero__lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--dns-muted);
    font-size: 15px;
    line-height: 1.7;
}

.tools-dns-hero__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.tools-dns-privacy {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 250px;
    padding: 12px 14px;
    border: 1px solid #d8e9e4;
    border-radius: 8px;
    background: #f5fbf9;
}

.tools-dns-privacy__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 7px;
    background: #dff4ed;
    color: var(--dns-success);
}

.tools-dns-privacy strong,
.tools-dns-privacy span {
    display: block;
}

.tools-dns-privacy strong {
    color: #225247;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.tools-dns-privacy span {
    margin-top: 2px;
    color: #658a80;
    font-size: 12px;
    line-height: 1.4;
}

.tools-dns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    touch-action: manipulation;
}

.tools-dns-btn:active {
    transform: translateY(1px);
}

.tools-dns-btn[disabled] {
    cursor: not-allowed;
    opacity: .52;
    transform: none;
}

.tools-dns-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .52;
}

.tools-dns-btn--primary {
    background: var(--dns-brand);
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(36, 107, 253, .18);
}

.tools-dns-btn--primary:hover:not([disabled]) {
    background: var(--dns-brand-dark);
}

.tools-dns-btn--secondary {
    border-color: #ccd8e8;
    background: #fff;
    color: #30415a !important;
}

.tools-dns-btn--secondary:hover:not([disabled]) {
    border-color: #9bb6df;
    background: #f5f8fd;
}

.tools-dns-btn--quiet {
    min-height: 38px;
    padding: 0 11px;
    border-color: transparent;
    background: transparent;
    color: #53647c !important;
}

.tools-dns-btn--quiet:hover:not([disabled]) {
    background: #edf3fc;
    color: #1f58bf !important;
}

.tools-dns-btn--danger {
    border-color: #f0c4cc;
    background: #fff7f8;
    color: var(--dns-danger) !important;
}

.tools-dns-btn--danger:hover:not([disabled]) {
    background: #ffedf0;
}

.tools-dns-panel {
    border: 1px solid var(--dns-border);
    border-radius: 8px;
    background: var(--dns-surface);
    box-shadow: 0 10px 30px rgba(34, 51, 84, .055);
}

.tools-dns-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #edf1f6;
}

.tools-dns-panel__head h2,
.tools-dns-panel__head h3 {
    margin: 0;
    color: #1a2a41;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.tools-dns-panel__head p {
    margin: 5px 0 0;
    color: var(--dns-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tools-dns-panel__head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.tools-dns-panel__body {
    padding: 20px 22px 24px;
}

.tools-dns-tag {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1e5bd0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tools-dns-tag--success {
    background: #e8f7f1;
    color: #19795f;
}

.tools-dns-tag--warning {
    background: #fff4df;
    color: #9a630c;
}

.tools-dns-tag--muted {
    background: #f0f3f7;
    color: #68778d;
}

.tools-dns-alert {
    display: none;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid #f2c6cd;
    border-radius: 7px;
    background: #fff6f7;
    color: #a33245;
    font-size: 13px;
    line-height: 1.5;
}

.tools-dns-alert.is-visible {
    display: flex;
}

.tools-dns-alert--success {
    border-color: #bce5d5;
    background: #f1fbf7;
    color: #167359;
}

.tools-dns-alert i {
    margin-top: 2px;
}

/* Catalog */
.tools-dns-catalog {
    --dns-border: #dfe6ef;
    --dns-subtle: #8b98aa;
}

.tools-dns-catalog .el-button--primary {
    --el-button-hover-bg-color: #0056d6;
    --el-button-hover-border-color: #0056d6;
    --el-button-active-bg-color: #004bbd;
    --el-button-active-border-color: #004bbd;
}

.tools-dns-catalog .el-tag.el-tag--success {
    --el-tag-text-color: #21764b;
    --el-tag-bg-color: #eaf6ef;
    --el-tag-border-color: #cce5d5;
}

.tools-dns-catalog .el-tag.el-tag--info {
    --el-tag-text-color: #5c6e86;
    --el-tag-bg-color: #f1f4f8;
    --el-tag-border-color: #dde5ef;
}

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

.tools-dns-product-card {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--dns-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(34, 51, 84, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tools-dns-product-card:hover {
    border-color: #b8cceb;
    box-shadow: 0 12px 30px rgba(34, 51, 84, .09);
    transform: translateY(-2px);
}

.tools-dns-product-card__top {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.tools-dns-product-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 8px;
    background: #edf4ff;
    color: var(--dns-brand);
    font-size: 20px;
}

.tools-dns-product-card__title {
    min-width: 0;
    flex: 1;
}

.tools-dns-product-card h2 {
    margin: 0;
    color: #15243b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.tools-dns-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.tools-dns-product-card p {
    min-height: 45px;
    margin: 17px 0 0;
    color: var(--dns-muted);
    font-size: 13px;
    line-height: 1.7;
}

.tools-dns-product-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 19px;
}

.tools-dns-product-card__price {
    color: #263953;
    font-size: 14px;
    font-weight: 700;
}

.tools-dns-product-card__price small {
    color: var(--dns-subtle);
    font-size: 11px;
    font-weight: 400;
}

.tools-dns-catalog-note {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.tools-dns-catalog-note__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 16px;
    border: 1px solid #e5ebf2;
    border-radius: 7px;
    background: #fbfcfe;
}

.tools-dns-catalog-note__item i {
    margin-top: 2px;
    color: var(--dns-brand);
    font-size: 15px;
}

.tools-dns-catalog-note strong,
.tools-dns-catalog-note span {
    display: block;
}

.tools-dns-catalog-note strong {
    color: #2a3b53;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.tools-dns-catalog-note span {
    margin-top: 3px;
    color: var(--dns-muted);
    font-size: 12px;
    line-height: 1.45;
}

.tools-dns-catalog-secondary {
    margin-top: 24px;
}

.tools-dns-catalog-secondary__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 11px;
}

.tools-dns-catalog-secondary__head h2 {
    margin: 0;
    color: #253751;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.tools-dns-catalog-secondary__head p {
    margin: 0;
    color: var(--dns-subtle);
    font-size: 12px;
}

.tools-dns-catalog-secondary__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tools-dns-catalog-secondary__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    color: #41536e !important;
    text-decoration: none !important;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.tools-dns-catalog-secondary__link:hover {
    border-color: #b9cce9;
    background: #f8faff;
    color: #1d5dcc !important;
}

.tools-dns-catalog-secondary__link i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f0f4f9;
    color: #68809f;
    font-size: 14px;
}

.tools-dns-catalog-secondary__link strong,
.tools-dns-catalog-secondary__link span {
    display: block;
}

.tools-dns-catalog-secondary__link strong {
    color: #2a3f5c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.tools-dns-catalog-secondary__link > span {
    min-width: 0;
}

.tools-dns-catalog-secondary__link > span > span {
    margin-top: 2px;
    color: var(--dns-muted);
    font-size: 11px;
    line-height: 1.35;
}

/* A single hero surface restores visual hierarchy without tinting the whole page. */
.tools-dns-catalog-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: 28px;
    min-height: 228px;
    margin: 0 0 24px;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid #d3e2f5;
    border-radius: 12px;
    background: linear-gradient(120deg, #f7fbff 0%, #edf4ff 58%, #f9fbff 100%);
    box-shadow: 0 12px 30px rgba(44, 77, 125, .08);
}

.tools-dns-catalog-banner::before {
    position: absolute;
    z-index: -1;
    top: -100px;
    right: 18%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 153, 241, .17) 0%, rgba(96, 153, 241, 0) 70%);
    content: '';
    pointer-events: none;
}

.tools-dns-catalog-banner__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tools-dns-catalog-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    color: #246bfd;
    font-size: 13px;
    font-weight: 700;
}

.tools-dns-catalog-banner__copy h2 {
    max-width: 650px;
    margin: 0;
    color: #14233a;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
}

.tools-dns-catalog-banner__copy > p:last-of-type {
    max-width: 650px;
    margin: 10px 0 0;
    color: #5e708a;
    font-size: 14px;
    line-height: 1.7;
}

.tools-dns-catalog-banner__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tools-dns-catalog-banner__actions .tools-dns-btn {
    min-height: 44px;
}

.tools-dns-catalog-banner__visual {
    position: relative;
    min-width: 0;
    min-height: 170px;
}

.tools-dns-catalog-banner__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 178px;
    height: 178px;
    border-radius: 50%;
    background: rgba(65, 126, 232, .1);
    filter: blur(2px);
    transform: translate(-50%, -50%);
}

.tools-dns-catalog-banner__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(66, 126, 230, .23);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
}

.tools-dns-catalog-banner__orbit--one {
    width: 265px;
    height: 105px;
}

.tools-dns-catalog-banner__orbit--two {
    width: 215px;
    height: 150px;
    transform: translate(-50%, -50%) rotate(36deg);
}

.tools-dns-catalog-banner__stack {
    position: relative;
    z-index: 1;
    width: min(310px, 100%);
    height: 150px;
    margin: 10px auto 0;
}

.tools-dns-catalog-banner__back-card,
.tools-dns-catalog-banner__front-card {
    position: absolute;
    border: 1px solid #cbdcf1;
    border-radius: 10px;
    box-shadow: 0 9px 22px rgba(45, 78, 125, .1);
}

.tools-dns-catalog-banner__back-card {
    top: 18px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 192px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, .82);
    color: #5b7291;
    font-size: 12px;
    transform: rotate(5deg);
}

.tools-dns-catalog-banner__back-card i {
    color: #5d8fe5;
    font-size: 14px;
}

.tools-dns-catalog-banner__back-card strong {
    margin-left: auto;
    color: #2e6fcf;
    font-size: 11px;
}

.tools-dns-catalog-banner__front-card {
    bottom: 0;
    left: 0;
    width: 245px;
    padding: 16px;
    background: rgba(255, 255, 255, .96);
    transform: rotate(-4deg);
}

.tools-dns-catalog-banner__front-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #344d70;
    font-size: 12px;
    font-weight: 700;
}

.tools-dns-catalog-banner__front-head i {
    margin-right: 4px;
    color: #246bfd;
}

.tools-dns-catalog-banner__front-head b {
    padding: 4px 7px;
    border-radius: 999px;
    background: #eaf6ef;
    color: #21764b;
    font-size: 10px;
    font-weight: 700;
}

.tools-dns-catalog-banner__front-card > strong {
    display: block;
    margin-top: 18px;
    color: #172b47;
    font-size: 17px;
    line-height: 1.35;
}

.tools-dns-catalog-banner__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.tools-dns-catalog-banner__chips span {
    padding: 5px 8px;
    border: 1px solid #d8e5f5;
    border-radius: 5px;
    background: #f4f8fe;
    color: #4c6a92;
    font-size: 10px;
}

/* Provider workbench */
.tools-dns-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e3eaf3;
    border-radius: 8px;
    background: #f8fafd;
}

.tools-dns-toolbar__account {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    flex: 1;
}

.tools-dns-toolbar__account label {
    flex: 0 0 auto;
    color: #44556e;
    font-size: 13px;
    font-weight: 700;
}

.tools-dns-toolbar select {
    width: min(430px, 100%);
    min-height: 40px;
    padding: 0 35px 0 11px;
    border: 1px solid #ccd8e8;
    border-radius: 6px;
    background: #fff;
    color: #253852;
    cursor: pointer;
}

.tools-dns-toolbar__links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.tools-dns-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
    gap: 18px;
    align-items: start;
}

.tools-dns-workbench > .tools-dns-panel {
    min-width: 0;
}

.tools-dns-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.tools-dns-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-dns-field {
    min-width: 0;
}

.tools-dns-field--full {
    grid-column: 1 / -1;
}

.tools-dns-field label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: #33465f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.tools-dns-field label span {
    color: #8a97a8;
    font-size: 11px;
    font-weight: 400;
}

.tools-dns-input,
.tools-dns-select,
.tools-dns-textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #ccd8e7 !important;
    border-radius: 6px;
    background: #fff;
    color: #243852;
    font-size: 13px;
    line-height: 1.45;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.tools-dns-input:focus,
.tools-dns-select:focus,
.tools-dns-textarea:focus {
    border-color: #78a2ed !important;
    box-shadow: 0 0 0 3px rgba(36, 107, 253, .1);
}

.tools-dns-textarea {
    min-height: 126px;
    resize: vertical;
}

.tools-dns-textarea--compact {
    min-height: 91px;
}

.tools-dns-helper {
    margin: 6px 0 0;
    color: var(--dns-subtle);
    font-size: 11px;
    line-height: 1.5;
}

.tools-dns-segmented {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 19px;
    padding: 4px;
    border: 1px solid #e0e7f0;
    border-radius: 7px;
    background: #f5f8fc;
}

.tools-dns-segmented label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.tools-dns-segmented input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.tools-dns-segmented span {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border-radius: 5px;
    color: #6a788b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tools-dns-segmented label:hover span {
    color: #2d4c78;
}

.tools-dns-segmented input:checked + span {
    background: #fff;
    color: #1e5bd0;
    box-shadow: 0 2px 6px rgba(34, 51, 84, .1);
}

.tools-dns-segmented input:focus-visible + span {
    outline: 3px solid rgba(36, 107, 253, .28);
    outline-offset: 1px;
}

.tools-dns-mode {
    display: none;
}

.tools-dns-mode.is-active {
    display: block;
}

.tools-dns-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
}

.tools-dns-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    color: #465972;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
}

.tools-dns-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--dns-brand);
}

.tools-dns-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #edf1f6;
}

.tools-dns-domain-list {
    display: flex;
    min-height: 42px;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid #e1e7ef;
    border-radius: 6px;
    background: #fbfcfe;
}

.tools-dns-domain-list:empty::before {
    color: #8d9aac;
    content: "选择账号后加载域名";
    font-size: 12px;
}

.tools-dns-domain-chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 8px;
    border: 1px solid #d7e2f2;
    border-radius: 999px;
    background: #f0f5fd;
    color: #35557e;
    font-size: 11px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.tools-dns-empty {
    padding: 28px 12px;
    color: #8b98aa;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.tools-dns-results {
    overflow: hidden;
}

.tools-dns-results__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    margin: 0 0 12px;
    color: var(--dns-muted);
    font-size: 12px;
}

.tools-dns-results__summary [data-request-id] {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.tools-dns-progress {
    display: none;
    height: 7px;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #eaf0f7;
}

.tools-dns-progress.is-visible {
    display: block;
}

.tools-dns-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #246bfd, #3eb9e9);
    transition: width .25s ease;
}

.tools-dns-result-table-wrap {
    max-height: 510px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.tools-dns-result-table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.tools-dns-result-table th,
.tools-dns-result-table td {
    padding: 10px 9px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: top;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
}

.tools-dns-result-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f9fc;
    color: #66758a;
    font-size: 11px;
    font-weight: 700;
}

.tools-dns-result-table tr:last-child td {
    border-bottom: 0;
}

.tools-dns-result-table th:first-child,
.tools-dns-result-table td:first-child {
    width: 26%;
}

.tools-dns-result-table th:nth-child(2),
.tools-dns-result-table td:nth-child(2) {
    width: 14%;
}

.tools-dns-result-table th:nth-child(3),
.tools-dns-result-table td:nth-child(3) { width: 12%; }

.tools-dns-result-table th:nth-child(4),
.tools-dns-result-table td:nth-child(4) { width: 16%; }

.tools-dns-result-table th:last-child,
.tools-dns-result-table td:last-child {
    width: 32%;
}

.tools-dns-result-success {
    color: var(--dns-success);
}

.tools-dns-result-failed {
    color: var(--dns-danger);
}

/* Keep the account page on a quiet canvas. */
.content:has(> .tools-dns-service-accounts) {
    display: flow-root;
    background: #eef3f9;
}

/* Service-account management */
.tools-dns-service-accounts {
    --dns-border: #d2ddea;
    --dns-soft: #f1f5fa;
    --dns-subtle: #65758b;
}

.tools-dns-service-accounts .tools-dns-panel {
    box-shadow: 0 4px 18px rgba(34, 51, 84, .065);
}

.tools-dns-service-accounts .tools-dns-panel__head {
    border-bottom-color: #dbe4f0;
    border-radius: 7px 7px 0 0;
    background: #f2f6fc;
}

.tools-dns-service-accounts .tools-dns-panel:has([data-account-form]) .tools-dns-panel__body {
    border-radius: 0 0 7px 7px;
    background: #f8fafc;
}

.tools-dns-service-accounts .tools-dns-account-empty {
    border-color: #c6d4e5;
    background: var(--dns-soft);
    color: var(--dns-muted);
}

.tools-dns-service-accounts .tools-dns-account-empty i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #e0eafa;
    color: #5276a6;
}

.tools-dns-service-accounts .tools-dns-form-note {
    border-left-color: #6298ed;
    border-radius: 0 6px 6px 0;
    background: #eaf2ff;
    color: #3e5f8a;
}

.tools-dns-service-accounts .tools-dns-field label span {
    color: var(--dns-subtle);
}

.tools-dns-service-accounts .tools-dns-field label > [data-provider-key-label] {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.tools-dns-service-accounts .user-element-control .el-input__wrapper:not(.is-focus):not(:hover) {
    box-shadow: 0 0 0 1px #c9d5e5 inset !important;
}

.tools-dns-service-accounts .tools-dns-form-actions {
    border-top-color: #dbe4ef;
}

.tools-dns-service-accounts .tools-dns-footer-note {
    color: var(--dns-muted);
}

.tools-dns-account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    gap: 18px;
    align-items: start;
}

.tools-dns-account-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid #d1ddeb;
    border-radius: 9px;
    background: #e3ebf5;
}

.tools-dns-account-tabs a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #65758b;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.tools-dns-account-tabs a:hover {
    background: #f5f8fd;
    color: #1f5ccf;
}

.tools-dns-account-tabs a.is-active {
    border-color: #c8d8ed;
    background: #fff;
    color: #1f5ccf;
    box-shadow: 0 2px 5px rgba(40, 67, 107, .08);
}

.tools-dns-account-list {
    display: grid;
    gap: 9px;
}

.tools-dns-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
}

.tools-dns-account-item__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: 7px;
    background: #f0f4fa;
    color: #4f6480;
}

.tools-dns-account-item__copy {
    min-width: 0;
    flex: 1;
}

.tools-dns-account-item__copy strong,
.tools-dns-account-item__copy span {
    display: block;
    overflow-wrap: anywhere;
}

.tools-dns-account-item__copy strong {
    color: #2a3c56;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.tools-dns-account-item__copy span {
    margin-top: 3px;
    color: #7d8a9c;
    font-size: 11px;
    line-height: 1.4;
}

.tools-dns-account-item__actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
}

.tools-dns-form-note {
    margin: 0 0 17px;
    padding: 10px 12px;
    border-left: 3px solid #8ab1f6;
    background: #f5f8fd;
    color: #61728b;
    font-size: 12px;
    line-height: 1.55;
}

.tools-dns-account-empty {
    padding: 35px 15px;
    border: 1px dashed #ced9e8;
    border-radius: 7px;
    color: #7f8da0;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.tools-dns-account-empty i {
    display: block;
    margin-bottom: 8px;
    color: #9bacbf;
    font-size: 23px;
}

.tools-dns-account-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #edf8f3;
    color: #1a7c60;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.tools-dns-account-status.is-error {
    background: #fff0f2;
    color: #b23c50;
}

.tools-dns-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 25, 45, .48);
}

.tools-dns-modal.is-open {
    display: flex;
}

.tools-dns-modal__dialog {
    width: min(560px, 100%);
    max-height: min(720px, calc(100dvh - 40px));
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(12, 30, 64, .26);
}

.tools-dns-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 21px;
    border-bottom: 1px solid #edf1f6;
}

.tools-dns-modal__head h2 {
    margin: 0;
    color: #1c2d45;
    font-size: 17px;
    font-weight: 700;
}

.tools-dns-modal__body {
    padding: 20px 21px 22px;
}

.tools-dns-modal__close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7f8da0;
    cursor: pointer;
    font-size: 18px;
}

.tools-dns-modal__close:hover {
    background: #f0f4f9;
    color: #344a68;
}

.tools-dns-footer-note {
    margin-top: 18px;
    color: #8b98aa;
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 1040px) {
    .tools-dns-workbench,
    .tools-dns-account-layout {
        grid-template-columns: 1fr;
    }

    .tools-dns-workbench > .tools-dns-panel:last-child {
        order: 2;
    }
}

@media (max-width: 760px) {
    .tools-dns-page {
        width: min(100% - 24px, 620px);
        margin-top: 27px;
        margin-bottom: 45px;
    }

    .tools-dns-hero {
        display: block;
    }

    .tools-dns-hero h1 {
        font-size: 26px;
    }

    .tools-dns-hero__lead {
        font-size: 14px;
    }

    .tools-dns-hero__actions,
    .tools-dns-privacy {
        margin-top: 15px;
    }

    .tools-dns-catalog-grid,
    .tools-dns-catalog-note,
    .tools-dns-catalog-secondary__links {
        grid-template-columns: 1fr;
    }

    .tools-dns-catalog-banner {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 0;
        padding: 22px 18px;
    }

    .tools-dns-catalog-banner__copy h2 {
        font-size: 22px;
    }

    .tools-dns-catalog-banner__copy > p:last-of-type {
        font-size: 13px;
    }

    .tools-dns-catalog-banner__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tools-dns-catalog-banner__actions > .tools-ep-shell--button,
    .tools-dns-catalog-banner__actions .el-button,
    .tools-dns-catalog-banner__actions .tools-dns-btn {
        width: 100%;
    }

    .tools-dns-catalog-banner__visual {
        min-height: 158px;
        margin-top: 3px;
    }

    .tools-dns-catalog-banner__stack {
        transform: scale(.9);
        transform-origin: center center;
    }

    .tools-dns-product-card__foot {
        align-items: stretch;
        flex-direction: column;
    }

    .tools-dns-product-card__foot .tools-ep-shell--button,
    .tools-dns-product-card__foot .el-button {
        width: 100%;
    }

    .tools-dns-toolbar {
        display: block;
    }

    .tools-dns-toolbar__account {
        display: block;
    }

    .tools-dns-toolbar__account label,
    .tools-dns-toolbar select {
        display: block;
        width: 100%;
    }

    .tools-dns-toolbar select {
        margin-top: 7px;
    }

    .tools-dns-toolbar__links {
        margin-top: 8px;
    }

    .tools-dns-form-grid,
    .tools-dns-form-grid--three {
        grid-template-columns: 1fr;
    }

    .tools-dns-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .tools-dns-form-actions .tools-dns-btn {
        width: 100%;
    }

    .tools-dns-segmented {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tools-dns-panel__head,
    .tools-dns-panel__body {
        padding-right: 15px;
        padding-left: 15px;
    }

    .tools-dns-account-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .tools-dns-account-item__actions {
        width: 100%;
        justify-content: flex-end;
        padding-left: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tools-dns-page *,
    .tools-dns-page *::before,
    .tools-dns-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
