.world-switcher a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease;
}

.world-switcher a:hover {
    border-color: rgba(242, 166, 90, 0.35);
    background: var(--panel-raised);
}

.profile-static {
    cursor: default;
}

.logout-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: var(--text-faint);
    cursor: pointer;
}

.logout-button:hover {
    color: var(--accent);
    border-color: rgba(242,166,90,.35);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(470px, 100%);
    padding: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(25,28,38,.96), rgba(15,17,23,.98));
    box-shadow: var(--shadow);
}

.auth-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
}

.auth-brand .brand-mark {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
}

.auth-brand h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
}

.auth-brand p {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.auth-card .field label,
.world-form-card .field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 760;
}

.auth-card .field input,
.world-form-card .field input,
.world-form-card .field textarea,
.setup-card .field input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    outline: none;
    background: rgba(10,11,15,.74);
    color: var(--text);
}

.auth-card .field input,
.world-form-card .field input,
.setup-card .field input {
    min-height: 46px;
    padding: 0 13px;
}

.world-form-card .field textarea {
    min-height: 190px;
    padding: 13px;
    resize: vertical;
    line-height: 1.65;
}

.auth-card .field input:focus,
.world-form-card .field input:focus,
.world-form-card .field textarea:focus,
.setup-card .field input:focus {
    border-color: rgba(242,166,90,.55);
    box-shadow: 0 0 0 4px rgba(242,166,90,.08);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0;
    color: var(--text-soft);
    font-size: 12px;
}

.remember-row input {
    width: auto;
}

.auth-submit {
    width: 100%;
}

.setup-stack {
    display: grid;
    gap: 18px;
    margin-bottom: 8vh;
}

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

.world-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(25,28,38,.9), rgba(15,17,23,.94));
    box-shadow: 0 22px 54px rgba(0,0,0,.22);
}

.world-card.current {
    border-color: rgba(242,166,90,.35);
    box-shadow: 0 22px 54px rgba(0,0,0,.22), 0 0 0 1px rgba(242,166,90,.08) inset;
}

.world-card-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(169,152,255,.25);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(242,166,90,.18), rgba(169,152,255,.12));
    color: var(--accent-strong);
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 800;
}

.world-card-copy h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 500;
}

.world-card-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.current-world-badge {
    padding: 4px 8px;
    border: 1px solid rgba(116,216,196,.26);
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.world-card-copy p {
    margin: 10px 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.65;
}

.world-card-meta {
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 750;
}

.world-card-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.world-form-card {
    max-width: 820px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(25,28,38,.9), rgba(15,17,23,.94));
}

.world-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

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

.dashboard-stat-card,
.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(25,28,38,.88), rgba(15,17,23,.94));
}

.dashboard-stat-card {
    padding: 20px;
}

.dashboard-stat-card > span {
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-stat-card > strong {
    display: block;
    margin: 12px 0 10px;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.dashboard-stat-card a,
.dashboard-stat-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.55;
}

.dashboard-stat-card a:hover {
    color: var(--accent);
}

.dashboard-panel {
    margin-top: 18px;
    padding: 22px;
}

.dashboard-recent-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.dashboard-recent-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
}

.dashboard-recent-row:last-child {
    border-bottom: 0;
}

.dashboard-recent-row:hover {
    background: rgba(255,255,255,.025);
}

.dashboard-recent-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: Georgia, serif;
    font-weight: 800;
}

.dashboard-recent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-recent-copy strong,
.dashboard-recent-copy small {
    display: block;
}

.dashboard-recent-copy small,
.dashboard-recent-time {
    margin-top: 4px;
    color: var(--text-faint);
    font-size: 10px;
}

.dashboard-zero {
    padding: 32px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    text-align: center;
}

.dashboard-zero h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 23px;
}

.dashboard-zero p {
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .world-grid,
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-recent-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .dashboard-recent-time {
        display: none;
    }
}
