body.astar-v2-modal-open {
    overflow: hidden;
}

#profileTip,
.tip#profileTip,
a.astar-user-profile {
    display: none !important;
}

body.astar-v2-page .site-content {
    padding-top: 12px;
    padding-bottom: 24px;
}

body.astar-v2-page.astar-v2-auth-shell .site-content {
    padding-bottom: 8px;
}

body.astar-v2-page .entry-header {
    display: none !important;
}

body.astar-v2-page .site-main {
    padding-top: 0 !important;
}

body.astar-v2-page.astar-v2-auth-shell .site-below-footer-wrap {
    margin-top: 8px;
}

.astar-v2-page.astar-v2-clean-mode .astar-v2-shell > .astar-v2-card > .astar-v2-highlight-grid {
    display: none !important;
}

.astar-v2-shell {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 20px 20px;
    color: #163049;
}

@media (max-width: 1100px) {
    body.astar-v2-page #ast-mobile-header {
        position: relative;
        z-index: 10000;
    }

    body.astar-v2-page.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content,
    body.astar-v2-page.ast-main-header-nav-open .ast-mobile-header-content {
        position: fixed !important;
        top: 80px !important;
        left: 50vw !important;
        right: auto !important;
        width: min(94vw, 520px) !important;
        max-height: calc(100vh - 96px) !important;
        transform: translateX(-50%) !important;
        overflow-y: auto !important;
        border: 1px solid rgba(30, 65, 110, 0.14);
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(11, 32, 54, 0.18);
        background: #fff;
    }

    body.astar-v2-page .main-header-menu .menu-item-has-children > .ast-menu-toggle,
    body.astar-v2-page .ast-builder-menu-mobile .menu-item-has-children > .ast-menu-toggle {
        width: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 12px !important;
        background: #eef5fb !important;
    }
}

.astar-v2-shell h1,
.astar-v2-shell h2,
.astar-v2-shell p,
.astar-v2-shell li,
.astar-v2-shell span,
.astar-v2-shell strong,
.astar-v2-shell label,
.astar-v2-shell input,
.astar-v2-shell textarea,
.astar-v2-shell select,
.astar-v2-shell button {
    line-height: 1.55;
}

.astar-v2-shell h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.astar-v2-shell h2 {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.6vw, 24px);
}

.astar-v2-card {
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(24, 54, 84, 0.08);
    padding: 28px;
}

.astar-v2-card-wide {
    padding: 36px;
}

.astar-v2-auth-card {
    max-width: 560px;
    margin: 0 auto;
}

.astar-v2-eyebrow {
    color: #1f6aa5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.astar-v2-lead,
.astar-v2-muted {
    color: #546679;
}

.astar-v2-choice-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 24px 0;
}

.astar-v2-status-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 20px 0;
}

.astar-v2-choice-card {
    display: block;
    position: relative;
    z-index: 1;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    padding: 18px;
    background: #f8fbfe;
    color: #17334d;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(31, 95, 191, 0.16);
}

.astar-v2-choice-card,
.astar-v2-choice-card:hover,
.astar-v2-choice-card:focus,
.astar-v2-choice-card:active,
.astar-v2-choice-card * {
    text-decoration: none !important;
}

.astar-v2-choice-card strong {
    display: block;
    margin-bottom: 6px;
}

.astar-v2-status-card {
    display: block;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    padding: 18px;
    background: #f8fbfe;
    color: #17334d;
    text-decoration: none;
}

.astar-v2-status-card strong {
    display: block;
    margin-bottom: 6px;
}

.astar-v2-form label {
    display: block;
    margin-bottom: 16px;
}

.astar-v2-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.astar-v2-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #1f3040;
    font-weight: 600;
}

.astar-v2-form input[type="text"],
.astar-v2-form input[type="email"],
.astar-v2-form input[type="password"],
.astar-v2-form input[type="file"],
.astar-v2-form select,
.astar-v2-form textarea {
    width: 100%;
    border: 1px solid #c7d3de;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.38;
}

.astar-v2-form input[type="text"],
.astar-v2-form input[type="email"],
.astar-v2-form input[type="password"],
.astar-v2-form select {
    min-height: 58px;
    height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    line-height: 1.35;
}

.astar-v2-form input[type="file"] {
    padding: 10px 12px;
}

.astar-v2-form textarea {
    min-height: 130px;
    resize: vertical;
}

.astar-v2-button {
    appearance: none;
    border: 1px solid #244e73;
    background: #ffffff;
    color: #244e73;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.astar-v2-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(24, 54, 84, 0.12);
}

.astar-v2-button-primary {
    background: #244e73;
    color: #fff !important;
    text-decoration: none !important;
}

.astar-v2-button-primary:hover,
.astar-v2-button-primary:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.astar-v2-button-danger {
    border-color: #9a2e2e;
    color: #9a2e2e;
}

.astar-v2-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.astar-v2-notice {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: #edf7ff;
    color: #144a74;
}

.astar-v2-notice-error {
    background: #fff1f1;
    color: #8d1f1f;
}

.astar-v2-auth-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin: 18px 0;
}

.astar-v2-auth-links a {
    color: #1f6aa5;
    text-decoration: none;
}

.astar-v2-link-button {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: #1f6aa5;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.astar-v2-login-secondary-actions {
    margin-top: 14px;
    margin-bottom: 4px;
}

.astar-v2-delete-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(20, 36, 52, 0.42);
    z-index: 9999;
}

.astar-v2-delete-modal.is-open,
.astar-v2-delete-modal:target {
    display: grid;
}

.astar-v2-delete-modal__dialog {
    width: min(560px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #d8e4ef;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(20, 36, 52, 0.22);
    padding: 24px;
}

.astar-v2-delete-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.astar-v2-delete-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #607284;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 640px) {
    .astar-v2-shell {
        margin: 20px auto;
        padding: 0 14px 28px;
    }

    .astar-v2-card,
    .astar-v2-card-wide {
        padding: 18px;
        border-radius: 16px;
    }

    .astar-v2-choice-grid {
        grid-template-columns: 1fr;
    }

    .astar-v2-auth-links {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .astar-v2-auth-links a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d8e4ef;
        border-radius: 12px;
        background: #f8fbfe;
    }

    .astar-v2-delete-modal {
        padding: 12px;
    }

    .astar-v2-delete-modal__dialog {
        width: 100%;
        padding: 18px;
    }
}
