body.account-ui {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f1f4f8;
    color: #191b20;
}

.account-ui > .min-h-screen {
    background: linear-gradient(160deg, #f6f8fb, #eaf0f6);
}

.account-ui .max-w-7xl { max-width: 980px; }

.account-ui.app-ui header {
    background: transparent;
    box-shadow: none;
}

.account-ui.app-ui header h2 {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -.025em;
    color: #191b20;
}

.account-ui.app-ui main .bg-white,
.account-ui.guest-ui .shadow-md {
    border: 1px solid #dfe3ea;
    border-radius: 26px;
    box-shadow: none;
}

.account-ui.guest-ui .shadow-md { padding: 28px; }

.account-ui.guest-ui > .min-h-screen {
    padding: 32px 16px;
}

.account-ui.app-ui nav.bg-white {
    background: rgba(255, 255, 255, .9);
    border-color: #dfe3ea;
}

.account-ui .account-brand {
    color: #087bff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.account-ui .bg-gray-800 {
    background: #087bff;
    border-radius: 14px;
    min-height: 44px;
    padding: 10px 20px;
}

.account-ui .bg-gray-800:hover { background: #0068df; }

.account-ui input[type="text"],
.account-ui input[type="email"],
.account-ui input[type="password"],
.account-ui input[type="number"],
.account-ui textarea,
.account-ui select {
    border-color: #d5dce7;
    border-radius: 14px;
    min-height: 44px;
    background: #fbfcfe;
}

.account-ui input:focus,
.account-ui textarea:focus,
.account-ui select:focus {
    border-color: #087bff;
    --tw-ring-color: #087bff;
}

.account-ui input[type="checkbox"] {
    color: #087bff;
    border-radius: 5px;
}

.account-ui a.underline { color: #0068df; }

.account-ui nav .border-indigo-400 { border-color: #087bff; }
.account-ui nav .text-indigo-700 { color: #0068df; }
.account-ui nav .bg-indigo-50 { background: #e6f0ff; }

.account-ui table th {
    color: #6b7280;
    font-weight: 600;
}

.account-ui table td { border-top: 1px solid #e7ebf1; }

@media (max-width: 600px) {
    .account-ui.app-ui main .py-12 { padding-top: 20px; }
    .account-ui.app-ui main .bg-white {
        margin-left: 12px;
        margin-right: 12px;
        padding: 22px;
    }
}

/* Mobile auth actions */
.account-ui.guest-ui button[type="submit"] {
    text-transform: none;
    letter-spacing: normal;
    justify-content: center;
    white-space: normal;
}

@media (max-width: 600px) {
    .account-ui.guest-ui form > .flex.items-center.justify-end {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .account-ui.guest-ui form > .flex.items-center.justify-end > a {
        text-align: center;
        overflow-wrap: anywhere;
    }

    .account-ui.guest-ui form > .flex.items-center.justify-end > button {
        width: 100%;
        margin: 0;
        min-height: 48px;
        font-size: 15px;
    }
}

/* Soft action buttons */
.account-ui .site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 16px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.account-ui .site-button--primary {
    background: #d6e7fb;
    color: #0063cc;
    border-color: #a5c8f2;
}

.account-ui .site-button--primary:hover {
    background: #c9dff9;
    border-color: #89b5ec;
}

.account-ui .site-button--primary:active {
    background: #bdd7f6;
}

.account-ui .site-button--danger {
    background: #f9e4e6;
    color: #c82736;
    border-color: #eeb9bf;
}

.account-ui .site-button--danger:hover {
    background: #f5d7dc;
    border-color: #e69da7;
}

.account-ui .site-button--danger:active {
    background: #f0c9d0;
}

.account-ui .site-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.account-ui .site-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Administrator menu */
.account-ui .admin-menu-caption {
    margin: 0 20px 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.account-ui .admin-menu-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 26px;
}
.account-ui .admin-menu-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 18px 22px;
    color: #191b20;
    text-decoration: none;
    transition: background-color .15s;
}
.account-ui .admin-menu-row + .admin-menu-row {
    border-top: 1px solid #e7ebf1;
}
.account-ui .admin-menu-row:hover {
    background: #f5f9ff;
}
.account-ui .admin-menu-row:focus-visible {
    outline: 2px solid #087bff;
    outline-offset: -3px;
}
.account-ui .admin-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid;
    border-radius: 15px;
}
.account-ui .admin-menu-icon--blue {
    background: #e6f0ff;
    border-color: #b4d4ff;
    color: #087bff;
}
.account-ui .admin-menu-icon--purple {
    background: #eeebff;
    border-color: #cec6f8;
    color: #7060cf;
}
.account-ui .admin-menu-icon--green {
    background: #e7f7ee;
    border-color: #b8e6ce;
    color: #278456;
}
.account-ui .admin-menu-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.account-ui .admin-menu-label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.account-ui .admin-menu-title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.account-ui .admin-menu-description {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}
.account-ui .admin-menu-arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #8b94a2;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 600px) {
    .account-ui .admin-menu-list {
        margin: 0 12px;
    }
    .account-ui .admin-menu-row {
        gap: 12px;
        padding: 16px;
    }
    .account-ui .admin-menu-title {
        font-size: 16px;
    }
}
