.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0;
}

.account-panel {
    display: grid;
    gap: 22px;
}

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

.account-heading {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.account-heading h1,
.account-panel h1 {
    margin-bottom: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1;
}

.account-kicker {
    margin-bottom: 8px;
    color: var(--sea);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-type-toggle {
    width: fit-content;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: grid;
    grid-template-columns: repeat(2, minmax(86px, 1fr));
    gap: 4px;
    background: var(--white);
}

.account-type-toggle label {
    min-height: 28px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.account-type-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-toggle span {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.account-type-toggle input:checked + span {
    color: var(--white);
    background: var(--sea);
}

.account-type-toggle input:focus-visible + span {
    outline: 3px solid rgba(85, 182, 209, 0.24);
}

.account-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 92px;
}

.account-menu {
    display: grid;
    gap: 6px;
}

.account-menu-item {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.account-menu-item:hover,
.account-menu-item-active {
    color: var(--sea);
    background: var(--white);
    border-color: var(--line);
}

.account-menu-item[hidden],
.account-section[hidden] {
    display: none;
}

.account-content {
    display: grid;
    gap: 18px;
}

.account-section {
    display: grid;
    gap: 14px;
}

.account-section h2 {
    margin-bottom: 0;
    font-size: 22px;
}

.account-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 32px rgba(12, 55, 68, 0.08);
}

.account-card.danger-zone {
    margin-top: 0;
    padding-top: 20px;
}

.account-card.danger-zone h2 {
    margin-bottom: 4px;
    font-size: 18px;
}

.account-card textarea {
    width: 100%;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    resize: vertical;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.account-card textarea:focus {
    outline: 3px solid rgba(85, 182, 209, 0.24);
    border-color: rgba(12, 107, 120, 0.45);
}

.creator-type-field {
    display: grid;
    gap: 8px;
}

.creator-type-field[hidden] {
    display: none;
}

.creator-type-field label {
    font-size: 14px;
    font-weight: 800;
}

.account-favorites-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.account-favorites-card > p {
    margin-bottom: 0;
    color: var(--muted);
}

.account-favorite {
    display: grid;
    gap: 8px;
}

.account-favorite-image {
    aspect-ratio: 1.18 / 1;
    border-radius: 16px;
    background: var(--sea);
    background-position: center;
    background-size: cover;
}

.account-favorite-content {
    display: grid;
    gap: 3px;
}

.account-favorite h3,
.account-favorite p {
    margin-bottom: 0;
}

.account-favorite h3 {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-favorite p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.account-created-tours-card {
    display: grid;
    gap: 12px;
}

.account-created-tour {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    background: var(--foam);
}

.account-created-tour h3,
.account-created-tour p {
    margin-bottom: 0;
}

.account-created-tour h3 {
    font-size: 16px;
}

.account-created-tour p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.account-created-tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-created-tour-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--sea);
    background: rgba(85, 182, 209, 0.12);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .account-heading {
        align-items: flex-start;
    }

    .account-type-toggle {
        width: fit-content;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-menu-item {
        justify-content: center;
        text-align: center;
    }
}
