@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
    --navy-950: #08081f;
    --navy-900: #0d102b;
    --navy-800: #142648;
    --blue-600: #ed1b2f;
    --blue-500: #f3293d;
    --cyan-400: #ed1b2f;
    --slate-900: #17182b;
    --slate-700: #36394d;
    --slate-500: #686b7d;
    --slate-300: #cfd1d9;
    --slate-200: #e5e6eb;
    --slate-100: #f6f6f8;
    --white: #ffffff;
    --danger-bg: #fff0f2;
    --danger-border: #ffc2ca;
    --danger-text: #b51227;
    --brand-red: #ed1b2f;
    --brand-red-dark: #c91025;
    --brand-blue: #164a7f;
    --brand-blue-light: #2569a3;
    --shadow:
        0 24px 70px rgba(8, 8, 31, 0.14),
        0 3px 12px rgba(8, 8, 31, 0.08);
}

/* ==========================================================
   Global Reset and Base Elements
   ========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--slate-900);
    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;
    font-weight: 500;
}

button,
input {
    font: inherit;
}

label {
    display: block;
    margin: 19px 0 8px;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 700;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--slate-300);
    border-radius: 3px;
    outline: none;
    color: var(--slate-900);
    background: var(--white);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(237, 27, 47, 0.12);
}

button[type="submit"] {
    width: 100%;
    height: 50px;
    margin-top: 26px;
    border: 0;
    border-radius: 3px;
    color: var(--white);
    background: var(--brand-red);
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(237, 27, 47, 0.20);
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

button[type="submit"]:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(237, 27, 47, 0.26);
}

/* ==========================================================
   Shared Brand Components
   ========================================================== */

.brand-mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 42px;
    border: 2px solid var(--brand-red);
    border-radius: 2px;
    color: var(--white);
    background: transparent;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow:
        inset 6px 0 0 -4px var(--brand-red),
        inset -6px 0 0 -4px var(--brand-red);
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 4px;
    font-size: 14px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan-400);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--blue-600);
}

/* ==========================================================
   Login Page
   ========================================================== */

.login-body {
    background: var(--slate-100);
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 44%) 1fr;
}

.brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 72px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 52% 50%,
            rgba(34, 112, 177, 0.75),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            var(--navy-950) 0%,
            #101b38 42%,
            #173b65 68%,
            var(--navy-950) 100%
        );
}

.brand-panel::after {
    content: "";
    position: absolute;
    right: -210px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.025),
        0 0 0 140px rgba(255, 255, 255, 0.018);
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 530px;
}

.brand-content h1 {
    margin: 0;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.brand-description {
    max-width: 500px;
    margin: 28px 0 42px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
    line-height: 1.7;
}

.security-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.security-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--navy-950);
    background: var(--cyan-400);
    font-weight: 900;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 48px;
}

.login-card {
    width: min(100%, 440px);
    padding: 46px;
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-card h2 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.035em;
}

.mobile-brand {
    display: none;
}

.subtitle {
    margin: 12px 0 32px;
    color: var(--slate-500);
    line-height: 1.6;
}

.alert {
    margin-bottom: 24px;
    padding: 13px 15px;
    border: 1px solid var(--danger-border);
    border-radius: 3px;
    color: var(--danger-text);
    background: var(--danger-bg);
    font-size: 14px;
}

.login-footer {
    margin: 25px 0 0;
    color: var(--slate-500);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================
   Application Shell and Header
   ========================================================== */

.app-body {
    min-height: 100vh;
    background: #f7f7f9;
}

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 38px;
    color: var(--white);
    background: var(--navy-950);
    border-top: 3px solid var(--brand-red);
    box-shadow: 0 2px 12px rgba(8, 8, 31, 0.22);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar-brand > div:last-child {
    display: flex;
    flex-direction: column;
}

.topbar-brand span,
.user-details span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 22px;
}

.user-area form {
    margin: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.header-link:hover {
    color: var(--white);
}

.logout-button {
    width: auto !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 17px;
    border: 1px solid var(--brand-red) !important;
    border-radius: 2px !important;
    color: var(--white) !important;
    background: var(--brand-red) !important;
    box-shadow: none !important;
}

/* ==========================================================
   Dashboard Layout
   ========================================================== */

.dashboard {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0;
}

.welcome h1 {
    margin: 0;
    font-size: 42px;
    letter-spacing: -0.04em;
}

.welcome > p:last-child {
    margin: 14px 0 0;
    color: var(--slate-500);
    font-size: 17px;
}

.tool-section {
    margin-top: 68px;
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--slate-500);
}

.tool-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(310px, 1fr));
    gap: 22px;
    margin-top: 22px;
}

/* ==========================================================
   Dashboard Tool Cards
   ========================================================== */

.tool-card {
    display: flex;
    gap: 20px;
    padding: 26px;
    border: 1px solid var(--slate-200);
    border-radius: 5px;
    background: var(--white);
    box-shadow: 0 3px 12px rgba(8, 8, 31, 0.04);
}

.tool-card.disabled {
    opacity: 0.78;
}

.tool-card-link {
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.tool-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(237, 27, 47, 0.55);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.09);
}

.tool-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 3px;
    color: var(--white);
    background: var(--navy-950);
    border-bottom: 4px solid var(--brand-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.tool-content h3 {
    margin: 11px 0 8px;
    font-size: 18px;
}

.tool-content p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.6;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 2px;
    color: var(--brand-red-dark);
    background: #fff0f2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-badge.success {
    color: #067647;
    background: #ecfdf3;
}

.status-badge.neutral {
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    background: var(--slate-100);
}

/* ==========================================================
   PTR Page Navigation and Layout
   ========================================================== */

.page-nav {
    margin-bottom: 20px;
}

.back-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}

.ptr-layout {
    display: grid;
    grid-template-columns:
        minmax(320px, 0.85fr)
        minmax(420px, 1.4fr);
    gap: 24px;
    margin-top: 42px;
}

.form-card,
.result-card {
    padding: 30px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

.form-card h2,
.result-card h2 {
    margin-top: 0;
}

.form-note {
    margin: 22px 0 0;
    color: var(--slate-500);
    font-size: 12px;
    line-height: 1.6;
}

.optional-label {
    margin-left: 6px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 600;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.button-group button {
    margin-top: 0;
}

.secondary-button {
    border: 1px solid var(--brand-red) !important;
    color: var(--brand-red) !important;
    background: var(--white) !important;
    box-shadow: none !important;
}

/* ==========================================================
   PTR Result Details
   ========================================================== */

.result-list {
    margin: 24px 0 0;
}

.result-list > div {
    padding: 15px 0;
    border-bottom: 1px solid var(--slate-200);
}

.result-list dt {
    margin-bottom: 6px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.result-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 13px;
}

.empty-result {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    text-align: center;
}

.empty-result h2 {
    margin: 18px 0 8px;
    color: var(--slate-900);
}

.empty-result p {
    max-width: 390px;
    line-height: 1.6;
}

/* ==========================================================
   Nameserver Details and Badges
   ========================================================== */

.ns-section {
    margin-top: 28px;
}

.ns-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
}

.ns-row > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ns-row span {
    color: var(--slate-500);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 12px;
    text-align: right;
}

.ns-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.ns-badge.hivelocity {
    border: 1px solid #abefc6;
    color: #067647;
    background: #ecfdf3;
}

.ns-badge.external {
    border: 1px solid #fedf89;
    color: #b54708;
    background: #fffaeb;
}

/* ==========================================================
   PTR Success and FCrDNS Status Panels
   ========================================================== */

.success-panel {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #abefc6;
    border-radius: 14px;
    color: #05603a;
    background: #ecfdf3;
}

.success-panel strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.success-panel p {
    margin: 0;
    color: #067647;
    line-height: 1.6;
}

.fcrdns-panel {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 14px;
}

.fcrdns-panel.confirmed {
    border: 1px solid #abefc6;
    color: #05603a;
    background: #ecfdf3;
}

.fcrdns-panel.warning {
    border: 1px solid #fedf89;
    color: #93370d;
    background: #fffaeb;
}

.fcrdns-heading {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 800;
}

.fcrdns-panel p {
    margin: 0 0 14px;
    line-height: 1.6;
}

.compact-list {
    margin: 0;
}

.compact-list > div {
    display: grid;
    grid-template-columns: minmax(150px, 34%) 1fr;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 24, 40, 0.1);
}

.compact-list dt {
    font-size: 13px;
    font-weight: 800;
}

.compact-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

/* ==========================================================
   PTR Confirmation Workflow
   ========================================================== */

.confirmation-panel {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #fecdca;
    border-radius: 5px;
    background: #fff6f5;
}

.confirmation-panel h3 {
    margin: 0 0 10px;
    color: #912018;
    font-size: 18px;
}

.confirmation-panel > p {
    margin: 0 0 14px;
    color: var(--slate-700);
    line-height: 1.6;
}

.confirmation-target {
    padding: 13px 15px;
    overflow-wrap: anywhere;
    border: 1px solid #fecdca;
    border-radius: 3px;
    color: #912018;
    background: var(--white);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 14px;
    font-weight: 700;
}

.confirmation-warning {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #fedf89;
    border-radius: 3px;
    color: #93370d;
    background: #fffaeb;
    font-size: 13px;
    line-height: 1.5;
}

.confirmation-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    color: var(--slate-700);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.confirmation-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
}

.danger-action {
    border: 1px solid #d92d20 !important;
    color: var(--white) !important;
    background: #d92d20 !important;
    box-shadow: 0 10px 24px rgba(217, 45, 32, 0.2) !important;
}

.danger-action:hover {
    background: #b42318 !important;
    filter: none !important;
}

.confirmation-expiry {
    margin: 12px 0 0 !important;
    color: var(--slate-500) !important;
    font-size: 12px;
}

/* ==========================================================
   Responsive Layout
   ========================================================== */

@media (max-width: 920px) {
    .ptr-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        padding: 24px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 40px;
        color: var(--navy-950);
        font-weight: 800;
    }

    .mobile-brand .brand-mark {
        color: var(--white);
        background: var(--navy-900);
    }

    .topbar {
        padding: 14px 18px;
    }

    .user-details {
        display: none;
    }

    .dashboard {
        width: min(100% - 32px, 1180px);
        padding: 48px 0;
    }
}

@media (max-width: 720px) {
    .compact-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .login-panel {
        padding: 0;
    }

    .login-card {
        min-height: 100vh;
        padding: 34px 24px;
        border-radius: 0;
    }

    .welcome h1 {
        font-size: 34px;
    }
}

/* ==========================================================
   Bulk PTR Manager
   ========================================================== */

.bulk-layout {
    display: grid;
    grid-template-columns:
        minmax(340px, var(--bulk-input-column, 0.8fr))
        minmax(320px, 1.7fr);
    gap: 24px;
    width: 100%;
    margin-top: 42px;
}

.bulk-form-card,
.bulk-result-card {
    min-width: 0;
}

.bulk-form-card {
    position: relative;
}

textarea {
    width: 100%;
    min-height: 310px;
    padding: 14px;
    resize: vertical;
    border: 1px solid var(--slate-300);
    border-radius: 3px;
    outline: none;
    color: var(--slate-900);
    background: var(--white);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 13px;
    line-height: 1.6;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.bulk-input {
    resize: both;
    min-width: 100%;
    max-width: 100%;
    overflow: auto;
    white-space: pre;
}

.bulk-layout-expanded {
    grid-template-columns:
        minmax(340px, var(--bulk-input-column))
        minmax(320px, 1fr);
}

.bulk-layout-submitting {
    --bulk-input-column: 0.8fr;
    width: 100%;
}

.bulk-layout-submitting .bulk-input {
    width: 100% !important;
}

textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(237, 27, 47, 0.12);
}

.bulk-format-note {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
    background: var(--slate-100);
}

.bulk-format-note strong {
    display: block;
    margin-bottom: 10px;
}

.bulk-format-note pre {
    margin: 0;
    overflow-x: auto;
    color: var(--slate-700);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.bulk-format-note p {
    margin: 12px 0 0;
    color: var(--slate-500);
    font-size: 12px;
    line-height: 1.6;
}

.bulk-format-note code {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.bulk-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.bulk-summary-grid > div {
    padding: 14px;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
    background: var(--slate-100);
}

.bulk-summary-grid span {
    display: block;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bulk-summary-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.bulk-table-wrapper {
    margin-top: 22px;
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
}

.bulk-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--white);
}

.bulk-table th,
.bulk-table td {
    padding: 12px 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-bottom: 1px solid var(--slate-200);
    vertical-align: top;
    text-align: left;
}

.bulk-table th {
    color: var(--slate-500);
    background: var(--slate-100);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bulk-table td {
    font-size: 12px;
    line-height: 1.5;
}

.bulk-table tbody tr:last-child td {
    border-bottom: 0;
}

.bulk-table th:first-child,
.bulk-table td:first-child {
    width: 56px;
}

.bulk-table th:nth-child(2),
.bulk-table td:nth-child(2) {
    width: 21%;
}

.bulk-table th:last-child,
.bulk-table td:last-child {
    min-width: 220px;
}

.bulk-table tbody tr:has(.bulk-status.error) {
    background: rgba(180, 35, 24, 0.035);
}

.bulk-table tbody tr:has(.bulk-status.success) {
    background: rgba(6, 118, 71, 0.03);
}

.bulk-table tbody tr:has(.bulk-status.warning) {
    background: rgba(181, 71, 8, 0.025);
}

.bulk-table tbody tr:has(.bulk-status.unchanged) {
    background: rgba(102, 112, 133, 0.025);
}

.bulk-ip-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bulk-ip-cell span {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.bulk-ip-cell small {
    color: var(--slate-500);
    font-size: 11px;
}

.bulk-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.bulk-status.success {
    border: 1px solid #abefc6;
    color: #067647;
    background: #ecfdf3;
}

.bulk-status.warning {
    border: 1px solid #fedf89;
    color: #b54708;
    background: #fffaeb;
}

.bulk-status.unchanged {
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    background: var(--slate-100);
}

.bulk-status.error {
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    background: var(--danger-bg);
}

.bulk-error-detail {
    margin-top: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--danger-text);
    font-size: 11px;
    line-height: 1.5;
}

.ptr-mode-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ptr-mode-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--slate-300);
    border-radius: 3px;
    color: var(--blue-600);
    background: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.ptr-mode-link:hover {
    border-color: var(--blue-600);
    background: rgba(36, 107, 253, 0.04);
}

@media (max-width: 1100px) {
    .bulk-layout,
    .bulk-layout-expanded,
    .bulk-layout-submitting {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .bulk-input {
        max-width: 100%;
        resize: vertical;
    }
}

@media (max-width: 720px) {
    .bulk-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bulk-table {
        min-width: 700px;
    }
}


/* ==========================================================
   DNS Validator Components
   ========================================================== */

.dns-validator-layout {
    align-items: start;
}

.dns-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.dns-section h3 {
    margin: 0 0 16px;
    font-size: 17px;
}

.dns-section > p {
    color: var(--slate-500);
    line-height: 1.6;
}

.dns-record-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--slate-100);
}

.dns-record-row:last-child {
    border-bottom: 0;
}

.dns-record-row code,
.dns-record-group code,
.dns-resolver-record code {
    overflow-wrap: anywhere;
    color: var(--navy-800);
    font-family:
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 13px;
}

.dns-record-group {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}

.dns-record-group > span {
    color: var(--slate-500);
}

.dns-record-group code {
    display: block;
    margin-bottom: 5px;
}

.dns-warning {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #fedf89;
    border-radius: 3px;
    color: #93370d;
    background: #fffaeb;
    font-size: 13px;
}

.dns-resolver-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.dns-resolver-card,
.dns-reverse-card {
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
    background: var(--slate-100);
}

.dns-resolver-heading,
.dns-reverse-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dns-resolver-heading span {
    color: var(--slate-500);
    font-size: 12px;
}

.dns-resolver-record {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 5px 10px;
    padding: 10px 0;
    border-top: 1px solid var(--slate-200);
}

.dns-resolver-record code,
.dns-resolver-record small {
    grid-column: 1 / -1;
}

.dns-resolver-record small {
    color: var(--slate-500);
}

.dns-reverse-card {
    margin-bottom: 12px;
}

.dns-long-record {
    display: block;
}

.dns-long-record code {
    display: block;
    padding: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    background: var(--slate-100);
}

@media (max-width: 760px) {
    .dns-record-row,
    .dns-resolver-heading,
    .dns-reverse-heading {
        flex-direction: column;
    }

    .dns-record-group {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   DNS Propagation Checker
   ============================================================ */

.form-card select {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    line-height: 1.3;
    cursor: pointer;
}

.form-card select:focus {
    outline: none;
    border-color: #5f7cff;
    box-shadow: 0 0 0 3px rgba(95, 124, 255, 0.14);
}

.result-header h2 small {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #eef2f7;
    color: #475569;
    font-size: 0.72em;
    vertical-align: middle;
}

.propagation-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(310px, 1fr)
    );
    gap: 1rem;
}

.propagation-card {
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-left-width: 5px;
    border-radius: 12px;
    background: #fff;
}

.propagation-card-match {
    border-left-color: #22965f;
}

.propagation-card-different {
    border-left-color: #d99a17;
}

.propagation-card-error {
    border-left-color: #c94545;
}

.propagation-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e8edf2;
    background: #f8fafc;
}

.propagation-card-heading strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #172033;
}

.propagation-card-heading span {
    color: #64748b;
    font-size: 0.85rem;
}

.propagation-card .dns-record-row {
    padding-right: 1rem;
    padding-left: 1rem;
}

.propagation-records {
    margin: 1rem;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    background: #f8fafc;
}

.propagation-records-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #dbe2ea;
    font-size: 0.85rem;
    font-weight: 700;
}

.propagation-records pre,
.raw-dig-details pre {
    overflow-x: auto;
    max-height: 360px;
    margin: 0;
    padding: 0.85rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #172033;
    font-size: 0.82rem;
    line-height: 1.55;
}

.copy-records-button {
    width: auto;
    margin: 0;
    padding: 0.35rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.copy-records-button:hover {
    background: #eef2f7;
}

.raw-dig-details {
    margin: 1rem;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    background: #f8fafc;
}

.raw-dig-details summary {
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    color: #334155;
    font-weight: 700;
}

.raw-dig-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #dbe2ea;
    border-bottom: 1px solid #dbe2ea;
}

@media (max-width: 720px) {
    .propagation-grid {
        grid-template-columns: 1fr;
    }

    .propagation-card-heading {
        flex-direction: column;
    }
}


/* ============================================================
   Category Dashboard
   ============================================================ */

.category-dashboard {
    padding-bottom: 4rem;
}

.tool-search-section {
    margin: 1.5rem 0 2.25rem;
}

.tool-search-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.tool-search-wrapper {
    position: relative;
}

.tool-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.35rem;
    pointer-events: none;
}

.tool-search-input {
    width: 100%;
    min-height: 54px;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.tool-search-input:focus {
    outline: none;
    border-color: #5f7cff;
    box-shadow:
        0 0 0 3px rgba(95, 124, 255, 0.14),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

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

.category-card {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    padding: 1.3rem;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #9cabff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.category-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.category-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eef2ff;
    color: #364fc7;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.category-arrow {
    color: #64748b;
    font-size: 1.45rem;
}

.category-card-content {
    flex: 1;
    margin-top: 1.15rem;
}

.category-card-content h3 {
    margin: 0 0 0.55rem;
    color: #172033;
    font-size: 1.15rem;
}

.category-card-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.category-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid #edf1f5;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}


/* ============================================================
   Dashboard Search Results
   ============================================================ */

.tool-search-results {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dbe2ea;
    border-radius: 13px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

a.search-result-item:hover {
    border-color: #9cabff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.search-result-disabled {
    opacity: 0.68;
}

.search-result-icon {
    display: flex;
    width: 46px;
    min-width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eef2ff;
    color: #364fc7;
    font-size: 0.72rem;
    font-weight: 800;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.search-result-heading strong {
    color: #172033;
}

.search-result-heading span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.search-result-content p {
    margin: 0.35rem 0;
    color: #64748b;
    line-height: 1.45;
}

.search-result-content small {
    color: #8290a3;
    font-weight: 700;
}

.search-empty {
    padding: 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}


/* ============================================================
   Recent Activity
   ============================================================ */

.activity-section {
    margin-top: 2.5rem;
}

.activity-list {
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 15px;
    background: #fff;
}

.activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #edf1f5;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5f7cff;
}

.activity-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.activity-content strong {
    color: #172033;
    font-size: 0.9rem;
}

.activity-details {
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-item time {
    color: #8290a3;
    font-size: 0.74rem;
    white-space: nowrap;
}

.activity-empty {
    padding: 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}


/* ============================================================
   Tool Category Pages
   ============================================================ */

.category-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-page-icon {
    width: 60px;
    min-width: 60px;
    height: 60px;
}

.category-title-row h1,
.category-title-row .eyebrow {
    margin-top: 0;
    margin-bottom: 0;
}

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

.category-tool-card {
    position: relative;
    display: flex;
    min-height: 150px;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.04);
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

a.category-tool-card:hover {
    transform: translateY(-2px);
    border-color: #9cabff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.category-tool-card-disabled {
    background: #f8fafc;
    opacity: 0.72;
}

.category-tool-icon {
    display: flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eef2ff;
    color: #364fc7;
    font-size: 0.7rem;
    font-weight: 800;
}

.category-tool-content {
    flex: 1;
    min-width: 0;
}

.category-tool-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.category-tool-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 1rem;
}

.category-tool-content p {
    margin: 0.55rem 0 0;
    color: #64748b;
    line-height: 1.5;
}

.category-tool-arrow {
    align-self: center;
    color: #64748b;
    font-size: 1.25rem;
}

@media (max-width: 800px) {
    .category-grid,
    .category-tool-grid {
        grid-template-columns: 1fr;
    }

    .activity-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .activity-item time {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .category-tool-heading,
    .search-result-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .category-card-footer {
        flex-direction: column;
        gap: 0.3rem;
    }
}


/* ============================================================
   Operational Health Score
   ============================================================ */

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.health-score {
    display: flex;
    width: 104px;
    min-width: 104px;
    height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    text-align: center;
}

.health-score strong {
    color: #172033;
    font-size: 1.75rem;
    line-height: 1;
}

.health-score span {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.health-score-healthy {
    border-color: #22965f;
}

.health-score-warning {
    border-color: #d99a17;
}

.health-score-error {
    border-color: #c94545;
}

.dns-error-message {
    border-color: #f2b7b7;
    background: #fff1f1;
    color: #9f2626;
}

@media (max-width: 620px) {
    .result-header {
        flex-direction: column;
    }

    .health-score {
        width: 88px;
        min-width: 88px;
        height: 88px;
    }
}


/* Clickable portal brand */
.topbar-brand-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.topbar-brand-link:hover,
.topbar-brand-link:focus {
    color: inherit;
    text-decoration: none;
}

.topbar-brand-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Administration */
.admin-title-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}.admin-primary-link,.admin-action-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800}.admin-primary-link{padding:.85rem 1.1rem;border-radius:4px;color:#fff;background:var(--brand-red)}.admin-panel{margin-top:1.25rem;padding:1.25rem;border:1px solid #dbe2ea;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.04)}.admin-table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;font-size:.88rem}.admin-table th,.admin-table td{padding:.9rem .75rem;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:middle}.admin-table th{color:#64748b;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}.admin-table td:first-child span{display:block;margin-top:.2rem;color:#64748b}.admin-badge{display:inline-block;padding:.3rem .55rem;border-radius:999px;background:#e8f7ef;color:#18794e;font-size:.72rem;font-weight:800}.admin-badge-muted{background:#eef0f3;color:#667085}.admin-action-link{color:var(--brand-blue)}.admin-message{margin-top:1rem;padding:.85rem 1rem;border:1px solid #a7e0c2;border-radius:6px;background:#ecfdf3;color:#17663f}.admin-message-error{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger-text)}.admin-form-panel{max-width:880px}.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}.admin-form-wide{grid-column:1/-1}.admin-form-panel input[type="email"],.admin-form-panel input[disabled]{width:100%;height:48px;padding:0 14px;border:1px solid var(--slate-300);border-radius:3px;background:#fff}.admin-form-panel input[disabled]{background:#f3f4f6}.admin-form-panel small{display:block;margin-top:.4rem;color:#64748b}.admin-check-grid{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.3rem}.admin-check{display:flex;align-items:center;gap:.5rem;margin:0;padding:.75rem 1rem;border:1px solid #dbe2ea;border-radius:6px}.admin-future-note{margin-top:1.25rem;padding:1rem;border-radius:6px;background:#f5f7fb;color:#526070;font-size:.86rem}@media(max-width:720px){.admin-title-row{align-items:flex-start;flex-direction:column}.admin-form-grid{grid-template-columns:1fr}.admin-form-wide{grid-column:auto}}

/* Password recovery and destructive administration actions */
.login-help-row{display:flex;justify-content:flex-end;margin:-.25rem 0 1rem}.login-help-row a,.login-footer a{color:var(--brand-blue);font-weight:700;text-decoration:none}.login-help-row a:hover,.login-footer a:hover{text-decoration:underline}.admin-danger-panel{max-width:880px;border-color:#efb4b4;background:#fffafa}.admin-danger-panel h2{margin-top:0;color:#9f2626}.admin-delete-form{max-width:520px}.admin-delete-form input[type="text"]{width:100%;height:48px;padding:0 14px;border:1px solid var(--slate-300);border-radius:3px;background:#fff}.admin-danger-button{background:#b42318}.admin-danger-button:hover{background:#912018}

/* User administration lifecycle controls */
.admin-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;min-width:180px}.admin-actions form{margin:0}.admin-inline-button{appearance:none;border:0;background:transparent;padding:0;color:var(--brand-blue);font:inherit;font-weight:800;cursor:pointer}.admin-inline-button:hover,.admin-action-link:hover{text-decoration:underline}.admin-inline-danger{color:#b42318}.admin-badge-info{margin-left:.35rem;background:#e8f0ff;color:#2755a3}.admin-table td:nth-child(5) span{display:block;margin-top:.2rem;color:#64748b;font-size:.76rem}

/* ============================================================
   Site map v2 additions
   ============================================================ */
.category-subsection { margin-top: 2rem; }
.category-subsection + .category-subsection { margin-top: 2.6rem; }
.category-tool-card-roadmap { background: #f8fafc; border-style: dashed; }
.category-tool-card-roadmap:hover { background: #fff; }
.status-badge.warning { background: #fff7ed; color: #9a3412; }
.status-badge.danger { background: #fef2f2; color: #b91c1c; }
.roadmap-panel { padding: 1.5rem; border: 1px solid #dbe2ea; border-radius: 16px; background: #fff; }
.roadmap-panel h2 { margin: 1rem 0 0.55rem; color: #172033; }
.roadmap-panel p { margin: 0; color: #64748b; line-height: 1.65; }
.roadmap-status-row { display: flex; align-items: center; gap: 0.8rem; color: #64748b; font-size: 0.86rem; font-weight: 700; }
/* Catalog-driven tool page shell */
.tool-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    color: var(--muted-text, #667085);
    font-size: 0.9rem;
}
.tool-breadcrumbs a { color: inherit; text-decoration: none; }
.tool-breadcrumbs a:hover { text-decoration: underline; }
.tool-breadcrumbs [aria-current="page"] { color: var(--text-color, #101828); font-weight: 600; }
.tool-title-row { display: flex; align-items: center; gap: 1rem; }
.tool-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.tool-title-line h1 { margin-bottom: 0; }
.tool-page-actions { justify-content: flex-end; }
.category-subsection { scroll-margin-top: 6rem; }
@media (max-width: 640px) {
    .tool-title-row { align-items: flex-start; }
    .tool-title-line { align-items: flex-start; }
}

/* BGP Prefix Lookup Phase 1 */
.bgp-phase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}
.bgp-phase-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
}
.bgp-phase-grid span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bgp-phase-grid strong { color: #172033; }
@media (max-width: 620px) {
    .bgp-phase-grid { grid-template-columns: 1fr; }
}

/* BGP Prefix Lookup Phase 2 */
.bgp-origin-row span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bgp-origin-row small {
    color: var(--slate-500);
    font-size: 12px;
}

.dns-record-row a {
    color: var(--blue-600);
    text-decoration: none;
}

.dns-record-row a:hover {
    text-decoration: underline;
}

.status-badge.warning {
    color: #8a4b00;
    background: #fff4d6;
    border-color: #f0d38a;
}

/* BGP Prefix Lookup Phase 3 */
.bgp-phase-grid strong { overflow-wrap: anywhere; }

/* BGP Prefix Lookup Phase 4 */
.rpki-status { font-weight: 700; }
.rpki-valid { color: #16834a; }
.rpki-invalid_asn, .rpki-invalid_length { color: #b42318; }
.rpki-unknown { color: #8a6116; }
.tool-link-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.raw-json-panel summary { cursor: pointer; font-weight: 700; }
.raw-json-panel pre { margin-top: 1rem; max-height: 34rem; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: .78rem; }

/* SSL Certificate Checker */
.ssl-status-valid { background:#e8f7ef; color:#18794e; }
.ssl-status-warning, .ssl-status-critical { background:#fff4d6; color:#8a4b00; }
.ssl-status-expired, .ssl-status-not_yet_valid, .ssl-status-hostname_mismatch, .ssl-status-untrusted { background:#fef2f2; color:#b91c1c; }
.ssl-fingerprint code { overflow-wrap:anywhere; word-break:break-all; }
.ssl-finding { display:flex; gap:.8rem; align-items:flex-start; margin:.6rem 0; padding:.85rem 1rem; border:1px solid #dbe2ea; border-radius:7px; }
.ssl-finding strong { min-width:4.5rem; font-size:.75rem; letter-spacing:.04em; }
.ssl-finding-pass { background:#f0fdf4; border-color:#a7e0c2; color:#17663f; }
.ssl-finding-warning { background:#fffbeb; border-color:#f0d38a; color:#8a6116; }
.ssl-finding-fail { background:#fff1f1; border-color:#f2b7b7; color:#9f2626; }
.ssl-summary-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.ssl-summary-heading h3 { margin:0; }
.ssl-summary-text { width:100%; min-height:245px; margin-top:1rem; padding:1rem; border:1px solid #dbe2ea; border-radius:7px; background:#f8fafc; color:#172033; font: .82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize:vertical; }
.secondary-button { width:auto; margin:0; padding:.65rem .9rem; border:1px solid #cbd5e1; background:#fff; color:#172033; }
@media(max-width:620px){.ssl-summary-heading{align-items:flex-start;flex-direction:column}.secondary-button{width:100%}}


/* PTR lookup result emphasis */
.ptr-lookup-summary {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin: 0 0 1rem;
    padding: .95rem 1rem;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
}
.ptr-lookup-summary strong { color: inherit; }
.ptr-lookup-summary span { color: inherit; opacity: .88; line-height: 1.45; }
.ptr-lookup-summary-success { background: #f0fdf4; border-color: #a7e0c2; color: #17663f; }
.ptr-lookup-summary-warning { background: #fffbeb; border-color: #f0d38a; color: #8a6116; }
.ptr-lookup-summary-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4f91; }
.ptr-lookup-summary-neutral { background: #f8fafc; border-color: #dbe2ea; color: #475569; }
.ptr-current-value {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #86d6a5;
    border-left: 5px solid #16a05d;
    border-radius: 8px;
    background: #eefbf4;
}
.ptr-current-value-label {
    color: #147a49;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.ptr-current-value-hostname {
    display: block;
    padding: 0;
    background: transparent;
    color: #075f37;
    font-size: 1.08rem;
    font-weight: 750;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bulk-status.neutral {
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    background: var(--white);
}

.bulk-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(2px);
}

.bulk-progress-overlay[hidden] {
    display: none;
}

.bulk-progress-dialog {
    width: min(520px, 100%);
    padding: 26px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.bulk-progress-dialog strong {
    display: block;
    font-size: 19px;
}

.bulk-progress-dialog p {
    margin: 10px 0 18px;
    color: var(--slate-600);
    line-height: 1.55;
}

.bulk-progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--slate-200);
}

.bulk-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--blue-600);
    transition: width 0.35s ease;
}

.bulk-progress-dialog small {
    display: block;
    margin-top: 9px;
    color: var(--slate-600);
    text-align: right;
    font-weight: 800;
}

body.bulk-progress-active {
    overflow: hidden;
}

/* ==========================================================
   Bulk PTR Manager v2.7.3 - textarea stacking correction
   ========================================================== */
.bulk-form-card {
    position: relative;
    z-index: 3;
    overflow: visible;
}

.bulk-result-card {
    position: relative;
    z-index: 1;
}

.bulk-input {
    position: relative;
    z-index: 4;
}

.bulk-input:focus {
    z-index: 5;
}

.bulk-layout-submitting .bulk-form-card,
.bulk-layout-submitting .bulk-input {
    z-index: auto;
}

/* ==========================================================
   Interface polish v2.7.5
   - Resize the complete Bulk PTR input panel
   - Keep button labels contained and add subtle depth
   ========================================================== */

/* Allow the browser's native horizontal resize handle to move beyond the
   current card width. JavaScript then converts that requested width into a
   wider grid column, so the complete card grows and the result card shrinks. */
.bulk-input {
    width: 100%;
    min-width: 100%;
    max-width: min(920px, calc(100vw - 420px));
    resize: both;
}

.bulk-layout-expanded .bulk-form-card {
    width: 100%;
}

.bulk-layout-expanded .bulk-result-card {
    min-width: 320px;
}

/* Consistent, contained action buttons with a restrained raised appearance. */
button[type="submit"] {
    min-height: 50px;
    height: auto;
    padding: 13px 18px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    border: 1px solid rgba(143, 8, 25, 0.34);
    border-bottom-color: rgba(112, 5, 18, 0.62);
    border-radius: 6px;
    background: linear-gradient(180deg, #f72b40 0%, #ed1b2f 58%, #d91429 100%);
    box-shadow:
        0 3px 0 #a90d20,
        0 9px 18px rgba(237, 27, 47, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 1px rgba(91, 5, 16, 0.26);
}

button[type="submit"]:hover {
    background: linear-gradient(180deg, #ff3549 0%, #e8172c 62%, #c91025 100%);
    transform: translateY(-1px);
    box-shadow:
        0 4px 0 #950a1b,
        0 11px 22px rgba(237, 27, 47, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button[type="submit"]:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 #950a1b,
        0 5px 12px rgba(237, 27, 47, 0.2),
        inset 0 1px 2px rgba(93, 4, 15, 0.16);
}

button[type="submit"]:focus-visible {
    outline: 3px solid rgba(237, 27, 47, 0.24);
    outline-offset: 3px;
}

button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: 0 2px 0 #9f1323, 0 5px 12px rgba(8, 8, 31, 0.12);
}

/* The two-button single PTR row must let labels wrap inside each control. */
.button-group > button,
.button-group > .button,
.button-group > a {
    min-width: 0;
    flex: 1 1 0;
}

.secondary-button {
    min-height: 50px;
    height: auto;
    padding: 12px 16px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    border-radius: 6px !important;
    box-shadow:
        0 3px 0 rgba(201, 16, 37, 0.28),
        0 7px 14px rgba(8, 8, 31, 0.08) !important;
}

.secondary-button:hover {
    transform: translateY(-1px);
    background: #fff7f8 !important;
    box-shadow:
        0 4px 0 rgba(201, 16, 37, 0.32),
        0 9px 17px rgba(8, 8, 31, 0.1) !important;
}

@media (max-width: 900px) {
    .bulk-input {
        max-width: 100%;
        resize: vertical;
    }
}

/* ==========================================================
   Bulk PTR Manager v2.7.6
   - Resize the complete left panel with a dedicated divider
   - Show real record-by-record validation progress
   ========================================================== */
.bulk-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    resize: vertical;
}

.bulk-panel-resizer {
    position: absolute;
    top: 0;
    right: -13px;
    bottom: 0;
    z-index: 8;
    width: 26px;
    cursor: col-resize;
    touch-action: none;
}

.bulk-panel-resizer::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 12px;
    width: 3px;
    border-radius: 999px;
    background: var(--slate-300);
    transition: background 0.18s ease, width 0.18s ease;
}

.bulk-panel-resizer:hover::before,
.bulk-panel-resizer:focus-visible::before,
body.bulk-panel-resizing .bulk-panel-resizer::before {
    width: 4px;
    background: var(--blue-600);
}

body.bulk-panel-resizing {
    cursor: col-resize;
    user-select: none;
}

.bulk-progress-overlay {
    place-items: start center;
    padding-top: 24px;
    background: rgba(15, 23, 42, 0.28);
}

.bulk-progress-dialog {
    width: min(760px, calc(100% - 32px));
    padding: 18px 22px;
    border-top: 4px solid var(--blue-600);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
}

@media (max-width: 900px) {
    .bulk-panel-resizer {
        display: none;
    }
}

/* ==========================================================
   PTR bulk layout v2.7.7
   The left card itself is horizontally resizable. The textarea
   follows the card width, so it cannot expand behind the result card.
   ========================================================== */
@media (min-width: 981px) {
    .bulk-layout {
        display: flex !important;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .bulk-form-card {
        flex: 0 0 42%;
        width: 42%;
        min-width: 360px;
        max-width: calc(100% - 384px);
        resize: horizontal;
        overflow: auto;
        position: relative;
        z-index: 2;
    }

    .bulk-result-card {
        flex: 1 1 0;
        min-width: 360px;
        width: auto;
        position: relative;
        z-index: 1;
    }

    .bulk-form-card textarea {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        resize: vertical !important;
    }
}

@media (max-width: 980px) {
    .bulk-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .bulk-form-card,
    .bulk-result-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        resize: none !important;
    }
}

/* ============================================================
   Administration - Activity Reports
   ============================================================ */
.audit-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:1.25rem}.audit-summary-card{padding:1rem 1.1rem;border:1px solid #dbe2ea;border-radius:10px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.035)}.audit-summary-card span,.audit-summary-card small{display:block;color:#64748b;font-size:.76rem;font-weight:700}.audit-summary-card strong{display:block;margin:.28rem 0;color:#172033;font-size:1.7rem}.audit-report-tabs{display:flex;gap:.55rem;flex-wrap:wrap;margin-bottom:1rem}.audit-report-tabs a{padding:.55rem .8rem;border:1px solid #dbe2ea;border-radius:5px;color:#475569;background:#f8fafc;text-decoration:none;font-size:.8rem;font-weight:800}.audit-report-tabs a.active{border-color:var(--brand-blue);color:#fff;background:var(--brand-blue)}.audit-filter-form{display:grid;grid-template-columns:1.1fr 1.35fr .8fr .8fr 1.6fr;gap:.8rem;align-items:end}.audit-filter-form label{display:flex;flex-direction:column;gap:.35rem;color:#475569;font-size:.75rem;font-weight:800}.audit-filter-form select,.audit-filter-form input{width:100%;height:42px;padding:0 .7rem;border:1px solid #cbd5e1;border-radius:4px;background:#fff;color:#172033;font:inherit}.audit-filter-actions{display:flex;align-items:center;gap:.8rem;grid-column:1/-1}.audit-filter-actions .tool-submit{width:auto;margin:0;padding:.7rem 1rem}.audit-filter-actions a{color:var(--brand-blue);font-size:.82rem;font-weight:800;text-decoration:none}.audit-table{min-width:980px}.audit-table code{font-size:.78rem}.audit-time{white-space:nowrap}.audit-time span{display:block;margin-top:.2rem;color:#64748b;font-size:.75rem}.audit-event-badge{display:inline-block;padding:.3rem .5rem;border-radius:999px;background:#eef2f7;color:#475569;font-size:.68rem;font-weight:900;white-space:nowrap}.audit-event-badge.success{background:#ecfdf3;color:#067647}.audit-event-badge.error{background:#fef3f2;color:#b42318}.audit-event-badge.unchanged{background:#f2f4f7;color:#475467}.audit-ptr-value{max-width:260px;overflow-wrap:anywhere}.audit-details{min-width:280px;max-width:520px;color:#526070;font-size:.78rem;line-height:1.45;overflow-wrap:anywhere}.audit-empty{text-align:center!important;color:#64748b;padding:2rem!important}@media(max-width:1050px){.audit-summary-grid{grid-template-columns:repeat(2,1fr)}.audit-filter-form{grid-template-columns:repeat(2,1fr)}.audit-search-field{grid-column:1/-1}}@media(max-width:620px){.audit-summary-grid,.audit-filter-form{grid-template-columns:1fr}.audit-search-field{grid-column:auto}}

/* ==========================================================
   Strong Password Generator
   ========================================================== */

.password-generator-shell {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(480px, 1.35fr);
    gap: 24px;
    margin-top: 42px;
}

.password-options-card,
.password-result-card {
    min-width: 0;
}

.password-card-heading,
.password-result-heading,
.password-length-heading,
.password-strength-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.password-card-heading p {
    margin: 7px 0 0;
    color: var(--slate-500);
    font-size: 13px;
    line-height: 1.55;
}

.local-only-badge,
.password-strength-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.local-only-badge {
    border: 1px solid #abefc6;
    color: #067647;
    background: #ecfdf3;
}

.password-length-control {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    background: #fafafd;
}

.password-length-heading label {
    margin: 0;
}

.password-length-heading output {
    min-width: 48px;
    padding: 7px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 5px;
    color: var(--navy-900);
    background: var(--white);
    font-weight: 800;
    text-align: center;
}

.password-length-control input[type="range"] {
    width: 100%;
    margin: 22px 0 4px;
    accent-color: var(--brand-red);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: var(--slate-500);
    font-size: 11px;
}

.password-options-fieldset {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.password-options-fieldset legend {
    margin-bottom: 10px;
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.password-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--slate-200);
    cursor: pointer;
}

.password-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.password-option strong {
    color: var(--slate-900);
    font-size: 13px;
}

.password-option small {
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}

.password-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    accent-color: var(--brand-red);
}

.password-preferences-fieldset {
    margin-top: 28px;
}

.password-inline-error {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--danger-border);
    border-radius: 4px;
    color: var(--danger-text);
    background: var(--danger-bg);
    font-size: 12px;
    line-height: 1.5;
}

.password-generate-button {
    width: 100%;
    min-height: 50px;
    margin-top: 24px;
    border: 0;
    border-radius: 4px;
    color: var(--white);
    background: var(--brand-red);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(237, 27, 47, .18);
}

.password-generate-button:hover {
    background: var(--brand-red-dark);
}

.password-generate-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.password-result-card {
    display: flex;
    flex-direction: column;
}

.password-result-heading h2 {
    margin-bottom: 0;
}

.password-strength-badge {
    border: 1px solid #abefc6;
    color: #067647;
    background: #ecfdf3;
}

.password-strength-badge[data-strength="strong"] {
    border-color: #b2ddff;
    color: #175cd3;
    background: #eff8ff;
}

.password-strength-badge[data-strength="moderate"] {
    border-color: #fedf89;
    color: #b54708;
    background: #fffaeb;
}

.password-output-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 30px;
}

.password-output {
    height: 62px !important;
    min-width: 0;
    padding: 0 18px !important;
    border: 1px solid #b9bdc9 !important;
    border-radius: 5px !important;
    color: var(--navy-950) !important;
    background: #fafafd !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(16px, 1.7vw, 22px);
    font-weight: 700;
    letter-spacing: .035em;
}

.password-output-actions {
    display: flex;
    gap: 8px;
}

.password-output-actions button {
    min-width: 76px;
    height: 62px;
    margin: 0;
    padding: 0 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.password-icon-button {
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
    background: var(--white);
}

.password-copy-button {
    border: 1px solid var(--brand-red);
    color: var(--white);
    background: var(--brand-red);
}

.password-copy-button:hover {
    background: var(--brand-red-dark);
}

.password-feedback {
    min-height: 20px;
    margin: 8px 0 0;
    color: #067647;
    font-size: 12px;
    font-weight: 700;
}

.password-strength-panel {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    background: #fafafd;
}

.password-strength-row span {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.password-strength-row strong {
    font-size: 13px;
}

.password-strength-meter {
    height: 7px;
    margin: 13px 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e8ed;
}

.password-strength-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--brand-red);
    transition: width .2s ease;
}

.password-strength-panel p {
    margin: 0;
    color: var(--slate-500);
    font-size: 12px;
    line-height: 1.55;
}

.password-security-notes {
    margin-top: 28px;
}

.password-security-notes h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.password-security-notes ul {
    margin: 0;
    padding-left: 20px;
    color: var(--slate-700);
    font-size: 12px;
    line-height: 1.7;
}

.password-security-notes li + li {
    margin-top: 7px;
}

.password-local-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 18px;
    margin-top: auto;
    padding: 17px 18px;
    border: 1px solid #abefc6;
    border-radius: 6px;
    color: #05603a;
    background: #ecfdf3;
}

.password-local-note strong {
    font-size: 12px;
}

.password-local-note span {
    color: #067647;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .password-generator-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .password-output-wrap {
        grid-template-columns: 1fr;
    }

    .password-output-actions button {
        flex: 1 1 0;
        height: 48px;
    }

    .password-output-actions {
        width: 100%;
    }

    .password-card-heading,
    .password-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .password-local-note {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   My Profile
   ========================================================== */
.profile-page { padding-top: 54px; }
.profile-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,.82fr); gap:1.25rem; margin-top:1.5rem; }
.profile-card { padding:1.4rem; border:1px solid #dbe2ea; border-radius:14px; background:#fff; box-shadow:0 7px 22px rgba(15,23,42,.04); }
.profile-card h2 { margin:.2rem 0 0; color:#172033; }
.profile-card-copy { margin:.65rem 0 1.1rem; color:#64748b; font-size:.9rem; line-height:1.55; }
.profile-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.profile-initials { display:grid; place-items:center; width:48px; height:48px; flex:0 0 48px; border-radius:50%; background:#eef2f7; color:var(--navy-900); font-weight:900; font-size:1.05rem; }
.profile-details { margin:1.25rem 0 0; }
.profile-details > div { display:grid; grid-template-columns:145px 1fr; gap:1rem; padding:.78rem 0; border-top:1px solid #edf0f3; }
.profile-details dt { color:#667085; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.profile-details dd { margin:0; color:#172033; font-weight:650; overflow-wrap:anywhere; }
.profile-status { display:inline-flex; padding:.25rem .55rem; border-radius:999px; background:#eaf7ef; color:#16784a; font-size:.76rem; font-weight:850; }
.profile-password-form { display:grid; gap:.55rem; }
.profile-password-form label { margin-top:.35rem; font-size:.83rem; font-weight:800; color:#344054; }
.profile-password-form input { width:100%; height:46px; padding:0 13px; border:1px solid var(--slate-300); border-radius:4px; background:#fff; }
.profile-password-form button { margin-top:.55rem; }
.profile-success,.profile-info-note { margin:0 0 1rem; padding:.85rem 1rem; border-radius:6px; font-size:.88rem; }
.profile-success { border:1px solid #a7e0c2; background:#ecfdf3; color:#17663f; }
.profile-info-note { border:1px solid #dbe2ea; background:#f5f7fb; color:#526070; }
.profile-activity-card { margin-top:1.25rem; }
.profile-activity-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; padding-bottom:1rem; border-bottom:1px solid #edf0f3; }
.profile-activity-heading p:last-child { margin:.5rem 0 0; color:#64748b; font-size:.88rem; }
.profile-count { flex:0 0 auto; padding:.35rem .65rem; border-radius:999px; background:#eef2f7; color:#526070; font-size:.75rem; font-weight:800; }
.profile-activity-list { display:flex; flex-direction:column; }
.profile-activity-item { display:grid; grid-template-columns:10px minmax(0,1fr); gap:.85rem; padding:1rem 0; border-bottom:1px solid #edf0f3; }
.profile-activity-item:last-child { border-bottom:0; }
.profile-activity-status { width:9px; height:9px; margin-top:.38rem; border-radius:50%; background:#98a2b3; }
.profile-activity-status.success { background:#16a163; }
.profile-activity-status.failed { background:#c4322b; }
.profile-activity-title-row { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; }
.profile-activity-title-row strong { color:#172033; }
.profile-activity-title-row time { color:#667085; font-size:.78rem; white-space:nowrap; }
.profile-activity-fields { display:flex; flex-wrap:wrap; gap:.45rem .95rem; margin-top:.45rem; color:#475467; font-size:.84rem; }
.profile-activity-fields span { overflow-wrap:anywhere; }
.profile-activity-fields b { margin-right:.25rem; color:#344054; }
.profile-activity-fields .activity-reason { flex-basis:100%; color:#8f2d2a; }
.profile-activity-meta { margin-top:.45rem; color:#98a2b3; font-size:.74rem; }
@media(max-width:820px){.profile-grid{grid-template-columns:1fr}.profile-activity-heading,.profile-activity-title-row{align-items:flex-start;flex-direction:column}.profile-activity-title-row{gap:.25rem}.profile-details>div{grid-template-columns:1fr;gap:.25rem}}

/* cPanel License Checker */
.cpanel-license-layout{display:grid;grid-template-columns:minmax(330px,.82fr) minmax(0,1.45fr);gap:1.25rem;align-items:start}.cpanel-license-form-card,.cpanel-license-result-card{min-height:340px}.cpanel-license-form-card>div:first-child p:not(.eyebrow){margin:.45rem 0 0;color:#64748b;line-height:1.55}.cpanel-license-form{margin-top:1.4rem}.cpanel-license-form label{display:block;margin-bottom:.45rem;color:#334155;font-size:.78rem;font-weight:850}.cpanel-license-input-row{display:flex;gap:.65rem}.cpanel-license-input-row input{min-width:0;flex:1;height:46px;padding:0 .85rem;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#172033;font:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.cpanel-license-input-row input:focus{outline:2px solid rgba(37,99,235,.16);outline-offset:1px;border-color:var(--brand-blue)}.cpanel-license-submit{width:auto!important;margin:0!important;white-space:nowrap}.cpanel-license-form small{display:block;margin-top:.55rem;color:#64748b;line-height:1.45}.cpanel-license-source-note,.cpanel-license-error{display:flex;flex-direction:column;gap:.25rem;margin-top:1.2rem;padding:.85rem 1rem;border-radius:6px;font-size:.8rem;line-height:1.45}.cpanel-license-source-note{border:1px solid #dbe2ea;background:#f8fafc;color:#526070}.cpanel-license-source-note strong{color:#334155}.cpanel-license-error{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}.cpanel-license-result-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.cpanel-license-result-heading h2{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.cpanel-license-status{display:inline-flex;align-items:center;justify-content:center;max-width:280px;padding:.42rem .68rem;border-radius:999px;background:#eef2f7;color:#475569;font-size:.72rem;font-weight:850;text-align:center;line-height:1.25}.cpanel-license-status.active{background:#ecfdf3;color:#067647}.cpanel-license-status.expired,.cpanel-license-status.inactive{background:#fef2f2;color:#b42318}.cpanel-license-status.unknown{background:#fff7ed;color:#9a3412}.cpanel-license-status.compact{font-size:.67rem;padding:.3rem .48rem}.cpanel-license-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1rem}.cpanel-license-summary-grid>div{min-width:0;padding:.85rem .9rem;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc}.cpanel-license-summary-grid span{display:block;margin-bottom:.3rem;color:#64748b;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.cpanel-license-summary-grid strong{display:block;color:#1e293b;font-size:.83rem;line-height:1.4;overflow-wrap:anywhere}.cpanel-license-history{margin-top:1.3rem}.cpanel-license-history h3{margin:0 0 .7rem}.cpanel-license-table-wrap{overflow-x:auto;border:1px solid #e2e8f0;border-radius:7px}.cpanel-license-table{width:100%;min-width:920px;border-collapse:collapse;font-size:.75rem}.cpanel-license-table th,.cpanel-license-table td{padding:.7rem .65rem;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.cpanel-license-table th{background:#f8fafc;color:#64748b;font-size:.65rem;text-transform:uppercase;letter-spacing:.04em}.cpanel-license-table tbody tr:last-child td{border-bottom:0}.cpanel-license-empty,.cpanel-license-placeholder{display:flex;min-height:270px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b}.cpanel-license-empty strong,.cpanel-license-placeholder h2{color:#334155}.cpanel-license-placeholder .category-icon{margin-bottom:.9rem}.cpanel-license-placeholder p,.cpanel-license-empty span{max-width:600px;line-height:1.55}.tool-external-link{display:inline-flex;align-items:center;padding:.55rem .75rem;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:var(--brand-blue);font-size:.78rem;font-weight:800;text-decoration:none}.tool-external-link:hover{border-color:var(--brand-blue)}@media(max-width:900px){.cpanel-license-layout{grid-template-columns:1fr}.cpanel-license-result-card{min-height:260px}}@media(max-width:560px){.cpanel-license-input-row{flex-direction:column}.cpanel-license-submit{width:100%!important}.cpanel-license-summary-grid{grid-template-columns:1fr}.cpanel-license-result-heading{flex-direction:column}.cpanel-license-status{max-width:100%}}

.password-custom-exclusions{display:grid;gap:.45rem;margin-top:.75rem;padding-top:.85rem;border-top:1px solid #e5e7eb}.password-custom-exclusions label{color:#334155;font-size:.82rem}.password-custom-exclusions input{width:100%;height:44px;padding:0 .8rem;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#172033;font:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.password-custom-exclusions input:focus{outline:2px solid rgba(37,99,235,.16);outline-offset:1px;border-color:var(--brand-blue)}.password-custom-exclusions small{color:#64748b;line-height:1.45}

/* AbuseIPDB Lookup */
.abuseipdb-layout .form-card select{margin-bottom:1rem}.abuse-score{min-width:132px;padding:.9rem 1rem;border:1px solid #dbe2ea;border-radius:8px;background:#f8fafc;text-align:center}.abuse-score strong{display:block;font-size:1.8rem;line-height:1}.abuse-score span{display:block;margin-top:.4rem;color:#64748b;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.abuse-score-healthy{background:#ecfdf3;border-color:#bbf7d0;color:#067647}.abuse-score-warning{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.abuse-score-error{background:#fef2f2;border-color:#fecaca;color:#b42318}.abuseipdb-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0}.abuseipdb-metrics>div{padding:.85rem .9rem;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc}.abuseipdb-metrics span,.abuseipdb-metrics small{display:block;color:#64748b}.abuseipdb-metrics span{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.abuseipdb-metrics strong{display:block;margin:.3rem 0;color:#1e293b;font-size:1rem;overflow-wrap:anywhere}.abuseipdb-metrics small{font-size:.68rem}.abuseipdb-tags{display:flex;flex-wrap:wrap;gap:.45rem}.abuseipdb-tags code{padding:.28rem .45rem;border:1px solid #dbe2ea;border-radius:4px;background:#f8fafc;font-size:.72rem}.abuseipdb-report-list{display:grid;gap:.75rem}.abuseipdb-report-list article{padding:.85rem .95rem;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc}.abuseipdb-report-list article p{margin:.65rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.abuseipdb-report-meta{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.6rem;font-size:.74rem}.abuseipdb-report-meta span{color:#64748b}.abuseipdb-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem}.abuseipdb-footer>div{display:flex;flex-direction:column;gap:.25rem}.abuseipdb-footer span{color:#64748b;font-size:.74rem}.abuseipdb-placeholder{display:flex;min-height:300px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b}.abuseipdb-placeholder .category-icon{margin-bottom:.9rem}.abuseipdb-placeholder h2{color:#334155}.abuseipdb-placeholder p{max-width:580px;line-height:1.55}@media(max-width:760px){.abuseipdb-metrics{grid-template-columns:1fr}.abuseipdb-footer,.abuseipdb-report-meta{align-items:flex-start;flex-direction:column}}
.zone-health-score {
    align-items: baseline;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    color: #1e3a8a;
    display: flex;
    gap: 3px;
    padding: 12px 16px;
}

.zone-health-score strong {
    font-size: 1.8rem;
    line-height: 1;
}

.zone-health-score span {
    font-size: .8rem;
    font-weight: 700;
}

.dns-issue-list {
    color: #7f1d1d;
    margin: 0;
    padding-left: 1.2rem;
}

.dns-issue-list li + li {
    margin-top: .45rem;
}

/* Looking Glass */
.looking-glass-layout{display:grid;grid-template-columns:minmax(320px,.72fr) minmax(0,1.5fr);gap:1.25rem;align-items:start}.lg-location-heading{display:flex;align-items:center;gap:.8rem;margin-bottom:1.2rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.lg-location-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:#eef2ff;color:#1d4ed8;font-size:.75rem;font-weight:900;letter-spacing:.05em}.lg-location-heading span,.lg-location-heading strong{display:block}.lg-location-heading span{margin-bottom:.2rem;color:#64748b;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.lg-location-heading strong{color:#172033}.lg-form{display:grid;gap:.55rem}.lg-form label{margin-top:.35rem;color:#334155;font-size:.8rem;font-weight:800}.lg-form select,.lg-form input{width:100%;height:46px;padding:0 .8rem;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#172033;font:inherit}.lg-form input{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.lg-form select:focus,.lg-form input:focus{outline:2px solid rgba(37,99,235,.16);outline-offset:1px;border-color:var(--brand-blue)}.lg-form button{margin-top:.45rem}.lg-result-card{min-height:390px}.lg-summary-list{grid-template-columns:repeat(2,minmax(0,1fr))}.lg-output-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.lg-output-heading h3{margin:0}.lg-output-heading span{color:#64748b;font-size:.72rem;font-weight:750}.lg-terminal{max-height:520px;margin:.75rem 0 0;padding:1rem;overflow:auto;border:1px solid #1e293b;border-radius:7px;background:#0f172a;color:#d1fae5;font-size:.76rem;line-height:1.55;white-space:pre-wrap;word-break:break-word}.lg-placeholder{display:flex;min-height:350px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b}.lg-placeholder .category-icon{margin-bottom:.9rem}.lg-placeholder h2{color:#334155}.lg-placeholder p{max-width:520px;line-height:1.55}@media(max-width:900px){.looking-glass-layout{grid-template-columns:1fr}.lg-result-card{min-height:280px}}@media(max-width:580px){.lg-summary-list{grid-template-columns:1fr}.lg-output-heading{align-items:flex-start;flex-direction:column}}


/* Utility toolbox */
.utility-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.55rem;
    border: 1px solid var(--border-color, #dbe3ef);
    border-radius: 14px;
    background: #fff;
}

.utility-tab {
    width: auto;
    margin: 0;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-weight: 700;
}

.utility-tab:hover,
.utility-tab.active {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.utility-panel[hidden] {
    display: none;
}

.utility-panel textarea {
    width: 100%;
    resize: vertical;
    min-height: 9rem;
    font: 0.92rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.utility-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.utility-action-row button {
    width: auto;
    margin: 0;
}

.utility-cron-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 0.75rem;
}

.utility-cron-grid label {
    margin: 0;
}

@media (max-width: 760px) {
    .utility-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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