
/* Independent scrolling for standalone pages */
html.admin-page,
html.analytics-page {
    height: auto !important;
    min-height: 100%;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: auto;
}

html.admin-page body,
html.analytics-page body {
    position: static !important;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    overflow: visible !important;
    touch-action: auto;
}

html.admin-page main,
html.analytics-page main,
html.analytics-page .shell {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* SHIKAUTO administration design */
html.admin-page {
    font-family: Inter, ui-sans-serif, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1b2432;
    background: #f4f6f9;
    --blue: #0047a0;
    --line: #e4e9f0;
    --muted: #75808e;
}

.admin-page body {
    background: #f4f6f9;
    font-size: 14px;
    line-height: 1.55;
}

.admin-page .top {
    background: #fff;
    color: #1b2432;
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(18px, 4vw, 56px);
    flex-wrap: wrap;
}

.admin-page .admin-brand img {
    display: block;
    width: 185px;
    height: 62px;
    object-fit: contain;
}

.admin-page .top a {
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.admin-page .top b {
    font-size: 15px;
}

.admin-page main {
    width: 100%;
    max-width: 1490px;
    padding: 30px clamp(18px, 3.5vw, 56px) 80px;
}

.admin-page h1 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 850;
    letter-spacing: -.04em;
}

.admin-page h2 {
    font-weight: 800;
    letter-spacing: -.025em;
}

.admin-page .card,
.admin-page #editor {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 23px;
    box-shadow: 0 11px 32px rgba(24,42,72,.045);
    min-width: 0;
}

.admin-page .cards {
    grid-template-columns:
        repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 16px;
}

.admin-page button {
    min-height: 44px;
    background: var(--blue);
    color: white;
    border: 1px solid var(--blue);
    border-radius: 12px;
    font-weight: 750;
    padding: 11px 17px;
}

.admin-page button:hover:not(:disabled) {
    background: #125bb4;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
    min-height: 44px;
    border: 1px solid #dce4ec;
    border-radius: 11px;
    color: #1b2432;
    background: #fff;
    padding: 11px 13px;
}

.admin-page label {
    font-weight: 700;
    color: #506073;
    gap: 8px;
}

.admin-page :focus-visible {
    outline: 3px solid #bcd5f4;
    outline-offset: 2px;
}

.admin-page .toolbar {
    gap: 10px;
    margin: 18px 0;
}

.admin-page #notice {
    padding: 13px 17px;
    background: #edf5ff;
    color: #345981;
    border-radius: 12px;
    border: 1px solid #d7e7fc;
}

.admin-page #notice.error {
    background: #fff1f2;
    color: #a43849;
    border-color: #f5cfd5;
}

.admin-page #editor {
    margin-top: 24px;
}

.admin-page textarea {
    resize: vertical;
}

.admin-page .fields {
    gap: 18px;
}

@media(max-width: 620px) {
    .admin-page .top {
        gap: 10px;
        padding: 10px 16px;
    }

    .admin-page .admin-brand img {
        width: 145px;
        height: 49px;
    }

    .admin-page .top b {
        order: 0;
        width: 100%;
    }

    .admin-page main {
        padding: 16px 14px 65px;
    }

    .admin-page .card,
    .admin-page #editor {
        padding: 17px;
        border-radius: 16px;
    }

    .admin-page input,
    .admin-page select,
    .admin-page textarea {
        font-size: 16px;
    }

    .admin-page .fields {
        grid-template-columns: minmax(0,1fr);
    }

    .admin-page .toolbar select {
        max-width: 100%;
    }
}


/* ACCOUNT SCROLL FIX */

html.account-page {
    height: auto !important;
    min-height: 100%;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: auto;
}

html.account-page body {
    position: static !important;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    overflow: visible !important;
    touch-action: auto;
}

html.account-page main.shell,
html.account-page .profile-layout,
html.account-page .profile-workspace {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

html.account-page #adminPanel .inline {
    flex-wrap: wrap;
}

@media(max-width: 620px) {
    html.account-page #adminPanel .button {
        flex: 1 1 100%;
    }
}
