.megu-highlander-page {
    width: min(1688px, calc(100% - 32px));
    margin: 48px auto 90px;
    color: #f7f2ff;
}

.megu-highlander-hero {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.megu-highlander-hero-image {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 22px;
    background: #ffd6eb;
    box-shadow: 0 22px 54px rgba(255, 120, 210, .18);
}

.megu-highlander-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 232, 245, .94) 0%, rgba(255, 232, 245, .74) 25%, rgba(255, 232, 245, 0) 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 56%, rgba(18, 10, 25, .22) 100%);
    pointer-events: none;
}

.megu-highlander-hero-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    object-position: center;
}

.megu-highlander-hero-copy {
    position: absolute;
    top: 50%;
    left: 6%;
    z-index: 1;
    width: min(42%, 620px);
    transform: translateY(-50%);
    text-align: center;
}

.megu-highlander-star-login {
    position: absolute;
    top: 5%;
    right: 3%;
    z-index: 2;
    display: block;
    width: clamp(48px, 6vw, 96px);
    height: clamp(48px, 6vw, 96px);
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
}

.megu-highlander-star-login:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 4px;
}

.megu-highlander-config-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    background: rgba(255, 214, 235, .92);
    color: #7e2d67;
    font-size: 25px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 120, 210, .22);
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.megu-highlander-config-button:hover,
.megu-highlander-config-button:focus-visible {
    transform: translateY(-1px) rotate(12deg);
    background: #fff;
    color: #d8379c;
}

.megu-highlander-kicker {
    margin: 0;
    color: #d8379c;
    font-weight: 800;
    letter-spacing: .18em;
    text-shadow: 0 2px 14px rgba(255, 255, 255, .82);
}

.megu-highlander-hero h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1;
    margin: 8px 0 14px;
    color: #fff;
    text-shadow: 0 3px 18px rgba(151, 38, 114, .48), 0 1px 0 rgba(126, 45, 103, .42);
}

.megu-highlander-panel {
    width: 100%;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(20, 13, 30, .92);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

.megu-highlander-panel + .megu-highlander-panel {
    margin-top: 20px;
}

.megu-highlander-access-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
    align-items: stretch;
    gap: 20px;
}

.megu-highlander-access-overview .megu-highlander-panel {
    margin-top: 0;
}

.megu-highlander-panel h2 {
    margin: 0 0 14px;
    font-size: 32px;
}

.megu-highlander-panel p {
    color: #d9cce8;
}

.megu-highlander-account {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 120, 210, .11);
}

.megu-highlander-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.megu-highlander-menu-card {
    display: grid;
    min-height: 140px;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 120, 210, .26);
    border-radius: 18px;
    background: rgba(255, 120, 210, .1);
    color: #f7f2ff;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.megu-highlander-menu-card:hover,
.megu-highlander-menu-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 120, 210, .62);
    background: rgba(255, 120, 210, .16);
}

.megu-highlander-menu-card strong {
    font-size: 20px;
}

.megu-highlander-menu-card span {
    color: #d9cce8;
    line-height: 1.45;
}

.megu-highlander-inline-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.megu-highlander-inline-heading span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(101, 224, 173, .42);
    border-radius: 999px;
    background: rgba(101, 224, 173, .12);
    color: #91f1c4;
    font-size: 13px;
    font-weight: 900;
}

.megu-highlander-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.megu-highlander-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.megu-highlander-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #594868;
    border-radius: 11px;
    background: #130d1c;
    color: #fff;
    font: inherit;
}

.megu-highlander-form select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #594868;
    border-radius: 11px;
    background: #130d1c;
    color: #fff;
    font: inherit;
}

.megu-highlander-form input:focus {
    outline: 2px solid rgba(255, 120, 210, .55);
    outline-offset: 2px;
}

.megu-highlander-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.megu-highlander-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.megu-highlander-checkboxes label {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 120, 210, .26);
    border-radius: 999px;
    background: rgba(255, 120, 210, .1);
}

.megu-highlander-checkboxes input {
    width: auto;
}

.megu-highlander-access-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.megu-highlander-access-user {
    overflow: hidden;
    border: 1px solid rgba(255, 120, 210, .2);
    border-radius: 16px;
    background: rgba(255, 120, 210, .08);
}

.megu-highlander-access-user summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    cursor: pointer;
    color: #fff;
    list-style-position: inside;
}

.megu-highlander-access-user summary span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.megu-highlander-access-user summary small {
    color: #d9cce8;
    font-size: 14px;
}

.megu-highlander-access-user[open] summary {
    border-bottom: 1px solid rgba(255, 120, 210, .16);
    background: rgba(255, 120, 210, .07);
}

.megu-highlander-access-user-body {
    display: grid;
    gap: 14px;
    padding: 15px;
}

.megu-highlander-access-url {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.megu-highlander-access-list a {
    color: #ff8bd7;
    overflow-wrap: anywhere;
}

.megu-highlander-access-list form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.megu-highlander-permission-editor {
    width: 100%;
    min-width: 0;
}

.megu-highlander-permission-editor h3 {
    margin: 0 0 10px;
    color: #ffb8e4;
    font-size: 18px;
}

.megu-highlander-permission-editor form {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 120, 210, .18);
    border-radius: 14px;
    background: rgba(19, 13, 28, .8);
}

.megu-highlander-access-list button,
.megu-highlander-form button,
.megu-highlander-button {
    display: inline-flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: #f061bf;
    color: #160c17;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.megu-highlander-access-list button.danger {
    background: #54233b;
    color: #ffd8e9;
}

.megu-highlander-where-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    align-items: center;
    gap: 18px;
}

.megu-highlander-access-overview .megu-highlander-where-preview {
    grid-template-columns: minmax(0, 1fr);
    align-content: space-between;
}

.megu-highlander-confused-link {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 18px;
    background: #ffd6eb;
}

.megu-highlander-confused-link img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.megu-highlander-where-map {
    margin: 0 auto 32px;
}

.meguvrc-highlander-server-summary {
    display: grid;
    gap: 18px;
}

.meguvrc-highlander-server-name,
.meguvrc-highlander-server-columns section article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 120, 210, .22);
    border-radius: 14px;
    background: rgba(255, 120, 210, .08);
}

.meguvrc-highlander-server-name span {
    color: #d9cce8;
}

.meguvrc-highlander-server-target {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.meguvrc-highlander-server-target b {
    color: #f7f2ff;
    font-weight: 800;
}

.meguvrc-highlander-server-target small {
    color: #bcaecb;
    overflow-wrap: anywhere;
}

.meguvrc-highlander-server-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.meguvrc-highlander-server-columns section {
    display: grid;
    gap: 10px;
}

.meguvrc-highlander-server-columns h3 {
    margin: 0;
}

.meguvrc-highlander-server-columns strong {
    padding: 6px 10px;
    border-radius: 999px;
    background: #8a6a78;
    color: #fff;
    font-size: 13px;
}

.meguvrc-highlander-server-columns strong.is-online {
    background: #168a55;
}

.meguvrc-highlander-server-columns strong.is-offline {
    background: #bd3030;
}

.meguvrc-highlander-server-columns strong.is-warning,
.meguvrc-highlander-server-columns strong.is-unknown {
    background: #a36b16;
}

.megu-highlander-notice {
    max-width: 780px;
    margin: 0 auto 16px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 184, 92, .7);
    border-radius: 14px;
    background: #302414;
    color: #ffe3bd;
}

.megu-highlander-panel.is-locked {
    border-color: rgba(255, 184, 92, .35);
}

body.meguvrc-highlander-route #wpadminbar {
    display: none !important;
}

html:has(body.meguvrc-highlander-route) {
    margin-top: 0 !important;
}

@media (max-width: 700px) {
    .megu-highlander-page {
        margin-top: 30px;
    }

    .megu-highlander-panel {
        padding: 22px;
    }

    .megu-highlander-hero-image::after {
        background:
            linear-gradient(180deg, rgba(255, 232, 245, .9) 0%, rgba(255, 232, 245, .56) 48%, rgba(18, 10, 25, .22) 100%);
    }

    .megu-highlander-hero-copy {
        left: 50%;
        width: min(82%, 420px);
        transform: translate(-50%, -50%);
    }

    .megu-highlander-menu-grid {
        grid-template-columns: 1fr;
    }

    .megu-highlander-form-grid,
    .megu-highlander-where-preview,
    .megu-highlander-access-overview,
    .meguvrc-highlander-server-columns {
        grid-template-columns: 1fr;
    }

    .megu-highlander-access-url {
        grid-template-columns: 1fr;
    }

    .megu-highlander-access-list button,
    .megu-highlander-form button,
    .megu-highlander-button {
        width: 100%;
    }
}
