/* Profile/account page layer. Keep account.new.css as the shared account baseline. */
:root {
    --account-page-bg: #f6f7fb;
    --account-surface: #ffffff;
    --account-surface-soft: #ffffff;
    --account-border: #e5e8ef;
    --account-text: #1c1c1c;
    --account-muted: #667085;
    --account-blue: #259feb;
    --account-green: #17ae76;
    --account-amber: #009be4;
    --account-rose: #d35050;
    --account-shadow: 0 16px 44px rgba(23, 32, 51, 0.08);
    --a-name-a-avatar-size-mobile: 20px;
    --footer-logo-color: black;
    --footer-logo-bg: #ffffff;
}

body {
    background-color: var(--account-page-bg) !important;
}

.background {
    display: none;
}

body.dark {
    --account-page-bg: #202020;
    --account-surface: #302f2f;
    --account-surface-soft: #3c3e40;
    --account-border: #505050;
    --account-text: #f8fafc;
    --account-muted: #b8c2d2;
    --account-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
    /*--footer-logo-color: #fafafa;*/
}

.account-page {
    min-height: 100vh;
    height: auto;
    background: var(--account-page-bg);
    color: var(--account-text);
    font-family: "Roboto", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.account-page *,
.account-page *::before,
.account-page *::after {
    box-sizing: border-box;
}

.account-page .hidden {
    display: none !important;
}

.account-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 64px;
    padding: 0 clamp(16px, 3vw, 32px);
    gap: 14px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--account-border);
    backdrop-filter: blur(14px);
}

body.dark .account-topbar {
    background: rgba(44, 44, 44, 0.9);
}

.account-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--account-text);
}

.account-icon-btn:hover {
    background: var(--account-surface-soft);
}

.account-icon-btn:disabled,
.account-icon-btn[aria-disabled="true"] {
    opacity: 0.42;
    cursor: default;
    pointer-events: none;
}

.account-topbar .account-icon-btn i {
    margin: 0;
    font-size: 1.1rem;
}

.account-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--account-text);
    text-decoration: none;
    font-weight: 700;
}

.account-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.nav-account {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.h-dropdown {
    position: relative;
    display: inline;
}

.a-name-a-avatar {
    margin: 0 15px 0 15px;
}

.a-avatar {
    aspect-ratio: 1 / 1;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    align-items: center;
    justify-content: center;
    display: flex;
    max-height: 2.5em;
}

.a-a-alt {
    display: none;
    color: var(--account-text);
    font-weight: 300;
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-right: 15px;
    text-align: right;
}

.h-d-content {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    background: var(--account-surface);
}

.h-d-content.opened {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: rgba(17, 12, 46, 0.15) 0 48px 100px 0;
}

body.dark .h-d-content.opened {
    box-shadow: rgba(18, 18, 18, 0.35) 0 5px 15px;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .h-dropdown:hover .h-d-content,
    .h-d-content:hover {
        opacity: 1; visibility: visible; pointer-events: auto;
    }

    .h-dropdown:focus-within .h-d-content {
        opacity: 1; visibility: visible; pointer-events: auto;
    }
}

.h-d-item {
    box-sizing: border-box;
    position: relative;
    padding: 14px 12px;
    min-height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.3s ease;
    background-color: var(--account-surface);
    color: var(--account-text);
}

.h-d-content > .h-d-item:first-of-type {
    border-radius: 8px 8px 0 0;
}

.h-d-content > .h-d-item:last-of-type {
    border-radius: 0 0 8px 8px;
}

.h-d-item:hover {
    background-color: var(--account-surface-soft);
}

.h-d-item:active {
    background-color: var(--account-border);
}

.h-d-item a {
    color: var(--account-text);
    font-size: 16px;
    font-weight: bold;
    padding-left: 50px;
    white-space: normal;
    text-decoration: none;
    outline: none;
}

.h-d-item img,
.h-d-item .theme-icon,
.h-d-item .theme_icon,
.h-d-item .svg-icon,
.h-d-item .svg_icon {
    aspect-ratio: 1 / 1;
    height: 100%;
    max-height: 2.5em;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
}

.h-d-item .login-icon,
.h-d-item .logout-icon,
.h-d-item.account-switch-theme .theme-icon,
.h-d-item.account-switch-theme .theme_icon,
#login_btn .svg-icon,
#login_btn .svg_icon,
#logout_btn .svg-icon,
#logout_btn .svg_icon {
    width: 35px;
    height: 35px;
    max-height: none;
    color: #a3ff6b;
    fill: currentColor !important;
}

.h-d-item .logout-icon,
#logout_btn .svg-icon,
#logout_btn .svg_icon {
    color: #ff8f8f;
}

.h-d-item svg {
    height: 100%;
    max-height: 1.5em;
}

.h-d-item.disabled {
    filter: brightness(50%);
    pointer-events: none;
}

.site-header.left-side .nav-account {
    margin: 0;
}

.site-header.left-side .a-name-a-avatar {
    display: flex;
    text-align: center;
    align-items: center;
}

.site-header.left-side .a-a-alt {
    display: block;
    border-bottom: none;
    font-weight: 400;
    width: 80%;
    text-align: left;
    margin-left: 20px;
}

@media only screen and (max-width: 767px) {
    .site-header.left-side .a-a-alt {
        font-size: 0.8em;
    }

    .site-header.left-side .h-d-content {
        min-width: 0;
    }
}

.site-header.left-side .h-dropdown {
    padding-top: 20px;
    width: calc(var(--nav-left-width) - 30px);
    background-color: var(--dropdown-bg-color);
    border-radius: 10px;
}

.site-header.left-side .h-d-content {
    position: relative;
    top: 0;
    z-index: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    overflow-y: scroll;
    scrollbar-color: var(--scrollbar-color);
    scrollbar-width: thin;
    background-color: transparent;
}

.site-header.left-side .h-d-content::-webkit-scrollbar {
    width: 8px;
}

.site-header.left-side .h-d-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
}

.site-header.left-side .h-d-content::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 4px;
}

.site-header.left-side .h-d-item {
    position: relative;
    top: 20px;
    background-color: transparent;
}

.site-header.left-side .h-d-item:hover {
    background-color: var(--account-surface-soft);
}

.site-header.left-side .h-d-item:active {
    background-color: var(--account-border);
}

@media only screen and (max-width: 767px)  {
    .site-header.left-side .a-name-a-avatar {
        font-size: var(--a-name-a-avatar-size-mobile);
    }
}

.account-theme-dropdown {
    position: relative;
    margin-left: auto;
}

.account-theme-trigger {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    color: var(--account-text);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(23, 32, 51, 0.06);
}

.account-theme-trigger i {
    color: var(--account-blue);
}

.account-theme-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    width: 180px;
    display: none;
    padding: 6px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    box-shadow: var(--account-shadow);
}

.account-theme-dropdown.open .account-theme-menu {
    display: grid;
    gap: 4px;
}

.account-theme-option {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--account-text);
    font: inherit;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.account-theme-option:hover,
.account-theme-option.active {
    background: var(--account-surface-soft);
    color: var(--account-blue);
}

.account-shell {
    width: min(1440px, 100%);
    min-height: calc(100vh - 64px);
    margin: 0 auto;
    align-items: stretch;
}

.account-sidebar {
    position: sticky;
    top: 64px;
    width: 244px;
    height: calc(100vh - 64px);
    flex: 0 0 244px;
    padding: 20px 14px;
    background: transparent;
}

.account-nav-list {
    gap: 6px;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.account-nav-list li {
    padding: 0;
    border-radius: 8px;
}

.account-nav-list li::before {
    display: none;
}

.account-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    margin: 0;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--account-muted);
    font-size: 0.96rem;
    font-weight: 650;
    letter-spacing: 0;
}

.account-nav-list li a i {
    width: 20px;
    color: inherit;
    text-align: center;
}

.account-nav-list li:hover,
.account-nav-list li.active {
    background: transparent;
}

.account-nav-list li:hover a {
    background: var(--account-surface-soft);
    color: var(--account-blue);
}

.account-nav-list li.active a {
    background: #eaf1ff;
    color: var(--account-blue);
}

body.dark .account-nav-list li.active a {
    background: rgba(37, 99, 235, 0.22);
}

.account-main {
    width: calc(100% - 244px);
    min-width: 0;
    height: auto;
    margin: 0;
    padding: clamp(14px, 2vw, 28px);
    background: transparent;
    border-left: 1px solid var(--account-border);
}

.account-main.full {
    width: 100%;
}

.account-hero {
    min-height: auto;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    /*box-shadow: var(--account-shadow);*/
}

.account-cover {
    height: clamp(180px, 24vw, 320px);
    background: #dfe6f2;
}

.account-cover img {
    filter: saturate(1.03);
}

.account-identity {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin: -54px 0 0;
    padding: 0 clamp(18px, 3vw, 34px) 28px;
}

.account-avatar {
    width: clamp(104px, 12vw, 148px);
    height: clamp(104px, 12vw, 148px);
    margin: 0;
    border: 5px solid var(--account-surface);
    background: var(--account-surface);
    object-fit: cover;
}

.account-heading {
    min-width: 0;
    padding-top: 60px;
}

.account-kicker,
.account-section-kicker {
    margin: 0 0 4px;
    color: var(--account-muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.account-heading h1 {
    margin: 0;
    color: var(--account-text);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.account-username {
    display: inline-flex;
    margin-top: 8px;
    color: var(--account-muted);
    text-decoration: none;
    font-weight: 600;
}

.account-username:hover {
    color: var(--account-blue);
}

.account-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    color: var(--account-text);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.account-edit-link:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--account-blue);
}

.account-content {
    display: grid;
    gap: 24px;
    padding: 24px 0 48px;
}

.account-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    box-shadow: var(--account-shadow);
}

.account-page-title {
    min-width: 0;
}

.account-page-title h1 {
    margin: 0;
    color: var(--account-text);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.account-page-title span {
    display: inline-flex;
    margin-top: 8px;
    color: var(--account-muted);
    font-weight: 600;
    line-height: 1.5;
}

.account-page-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--account-surface-soft);
}

.account-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.account-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    padding: 16px 18px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    color: var(--account-text);
    text-decoration: none;
    /*box-shadow: 0 8px 28px rgba(23, 32, 51, 0.05);*/
}

.account-stat strong {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1;
}

.account-stat span {
    color: var(--account-muted);
    font-weight: 650;
}

.account-section {
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    /*box-shadow: 0 8px 28px rgba(23, 32, 51, 0.05);*/
}

.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.account-section-header h2 {
    margin-top: 10px;
    color: var(--account-text);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
}

.account-section-header > a {
    color: var(--account-blue);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 750;
    white-space: nowrap;
}

.account-section-header > a:hover {
    text-decoration: underline;
}

.account-embed {
    display: grid;
    align-items: stretch;
    gap: 16px;
    height: auto;
    min-height: 0;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.account-embed-posts {
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 520px);
}

.account-embed-articles {
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 360px);
}

.account-embed-comments {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 2px 2px 10px;
    overflow-y: scroll;
    scroll-snap-type: none;
}

.account-embed > * {
    scroll-snap-align: start;
}

.account-embed-posts .post .post-footer {
    margin-top: auto;
}

.account-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed var(--account-border);
    border-radius: 8px;
    background: var(--account-surface-soft);
    color: var(--account-muted);
    text-align: center;
    padding: 20px;
}

.account-empty i {
    color: var(--account-blue);
    font-size: 1.6rem;
}

.account-empty p {
    margin: 0;
    font-weight: 650;
}

.account-embed .post,
.account-embed .article-card,
.account-embed .comment {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 220px;
    margin: 0;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface);
    box-shadow: none;
    overflow: hidden;
}

.account-embed .post {
    display: flex;
    flex-direction: column;
}

.account-embed .post-title,
.account-embed .article-card-title {
    color: var(--account-text);
    overflow-wrap: anywhere;
}

.account-embed .post-body,
.account-embed .comment-body,
.account-embed .article-card-description {
    color: var(--account-text);
}

.account-embed .post-body {
    flex: 1;
    max-height: 260px;
    overflow: hidden;
}

.account-embed .article-card-header {
    min-height: 200px;
}

.account-embed .article-card-header-image {
    height: 280px;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.account-embed .comment-body {
    max-height: 220px;
    overflow: hidden;
}

.account-embed-comments .comment {
    width: clamp(220px, 28%, 380px);
    height: auto;
    min-height: 0;
    flex: 0 1 clamp(220px, 28%, 380px);
    overflow: hidden;
    transform: none;
}

.account-embed-comments .comment:nth-child(6n + 1) {
    flex-basis: clamp(240px, 31%, 420px);
}

.account-embed-comments .comment:nth-child(6n + 2) {
    flex-basis: clamp(200px, 24%, 340px);
}

.account-embed-comments .comment:nth-child(6n + 3) {
    flex-basis: clamp(260px, 35%, 460px);
}

.account-embed-comments .comment:nth-child(6n + 4) {
    flex-basis: clamp(210px, 26%, 360px);
}

.account-embed-comments .comment:nth-child(6n + 5) {
    flex-basis: clamp(230px, 30%, 400px);
}

.account-embed-comments .comment:nth-child(6n) {
    flex-basis: clamp(250px, 33%, 440px);
}

.account-embed-comments .comment-body {
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
}

.account-embed-comments .comment-body p {
    margin-bottom: 0;
}

.account-embed .tag {
    border-radius: 999px;
}

.account-settings-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    box-shadow: 0 8px 28px rgba(23, 32, 51, 0.05);
    background: var(--account-surface);
    border: 1px solid var(--account-border);
    border-radius: 8px;
}

.account-secondary-nav {
    position: sticky;
    top: 84px;
    width: 100%;
    min-height: 100%;
    padding: 12px;
    background: transparent;
}

.account-secondary-nav.full {
    width: 100%;
}

.account-secondary-nav .account-nav-list li a {
    min-height: 42px;
}

.account-settings-panels {
    min-width: 0;
}

.account-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    border-left: 1px solid var(--account-border);
    /*border-radius: 8px;*/
    background: none;
    /*box-shadow: 0 8px 28px rgba(23, 32, 51, 0.05);*/
    padding: 22px 22px 50px;
}

.account-option-group {
    /*display: grid;*/
    gap: 18px;
    margin: 0;
    padding: 0;
}

.account-option-group h3 {
    margin: 8px 0 -6px;
    color: var(--account-text);
    font-size: 1rem;
}

.account-option-list {
    /*display: grid;*/
    gap: 10px;
    margin: 0;
    padding: 0;
}

.account-option {
    width: 100%;
    min-height: 64px;
    margin: 0;
    gap: 16px;
    border: 1px solid var(--account-border);
    border-radius: 8px;
    background: var(--account-surface-soft);
}

.account-option h4 {
    margin: 0;
    color: var(--account-text);
    font-size: 1rem;
    font-weight: 700;
}

.account-option p,
.account-option .center-item {
    margin: 0;
    color: var(--account-muted);
    overflow-wrap: anywhere;
}

.account-option-heading {
    background: transparent;
    box-shadow: none;
}

.account-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    padding-top: 0;
}

.account-report-card {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    /*gap: 16px;*/
}

.account-report-card > *:not(:last-child) {
    margin-bottom: 16px;
}

.account-report-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    background: var(--account-surface-soft);
}

.account-report-card h2 {
    margin: 0 0 8px;
    color: var(--account-text);
    font-size: 1.35rem;
}

.account-report-card p {
    margin: 0;
    color: var(--account-muted);
    line-height: 1.7;
}

.account-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*gap: 8px;*/
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--account-blue);
    color: #ffffff;
    text-decoration: none;
    font-weight: 750;
    align-self: end;
}

.account-action-link:hover {
    filter: brightness(0.96);
}

.account-report-card .account-action-link[href*="special=report"] {
    background: var(--account-rose);
}

.account-report-card .account-action-link[href*="special=feedback"] {
    background: var(--account-green);
}

.account-report-card .account-action-link[href^="mailto:"] {
    background: var(--account-amber);
}

.account-help-note {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--account-surface-soft);
}

.account-page .modal-content {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
}

.account-page .modal-main,
.account-page .modal-body {
    width: 100%;
}

.account-page .modal-body input,
.account-page .modal-body p {
    width: min(100%, 560px);
}

.account-footer {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 18px clamp(16px, 3vw, 32px) 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--account-border);
    color: var(--account-muted);
    font-family: "Roboto", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--account-page-bg);
}

.account-footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    color: var(--account-text);
    text-decoration: none;
    font-weight: 750;
}

.account-footer-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.account-footer p {
    min-width: 0;
    flex: 1 1 220px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .account-shell {
        display: block;
    }

    .account-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--account-border);
    }

    .account-main > .account-sidebar.full {
        margin: 0 0 20px;
        border: 1px solid var(--account-border);
        border-radius: 8px;
        background: var(--account-surface);
        box-shadow: 0 8px 28px rgba(23, 32, 51, 0.05);
    }

    .account-nav-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .account-nav-list li a {
        justify-content: flex-start;
        min-height: 50px;
        padding: 0 14px;
    }

    .account-main {
        width: 100%;
    }

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

    .account-secondary-nav {
        position: static;
    }

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

@media (max-width: 640px) {
    .account-topbar {
        height: 58px;
        padding: 0 12px;
    }

    .account-brand span {
        display: none;
    }

    .account-theme-label {
        display: none;
    }

    .account-theme-menu {
        width: 160px;
    }

    .account-main {
        padding: 10px;
    }

    .account-page-header {
        align-items: flex-start;
        padding: 18px;
    }

    .account-page-avatar {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .account-identity {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: end;
        gap: 12px;
        padding: 0 16px 20px;
    }

    .account-edit-link {
        grid-column: 1 / -1;
        width: 100%;
    }

    .account-heading {
        padding-top: 58px;
    }

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

    .account-section {
        padding: 16px;
    }

    .account-panel {
        padding: 16px;
    }

    .account-option h4,
    .account-option p,
    .account-option .center-item {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .account-option .center-item {
        width: 100%;
        order: 3;
    }

    .account-option .a-s-btn {
        max-width: 100%;
        min-width: 96px;
        padding: 11px 14px;
        white-space: normal;
    }

    .account-section-header {
        align-items: flex-start;
    }

    .account-embed-articles {
        grid-auto-columns: minmax(260px, 88vw);
    }

    .account-embed-posts {
        gap: 12px;
        grid-auto-columns: minmax(320px, 95vw);
    }

    .account-embed-posts .post {
        min-height: 0;
    }

    .account-embed-posts .post-header,
    .account-embed-posts .post-footer {
        padding: 10px 7px;
    }

    .account-embed-posts .post-author-name,
    .account-embed-posts .post-author-display-name,
    .account-embed-posts .post-author-username,
    .account-embed-posts .display-name,
    .account-embed-posts .username {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .account-embed-posts .post-body {
        max-height: 180px;
        padding: 10px 14px 14px;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .account-embed-posts .post-footer {
        font-size: 0.78rem;
    }

    .account-embed-posts .post-footer-floor {
        gap: 8px;
        flex-wrap: wrap;
    }

    .account-embed-posts .post-footer-action {
        gap: 8px;
    }

    .account-embed-posts .post-button,
    .account-embed-posts .action-button {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .account-embed-comments {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        padding: 2px 2px 10px;
    }

    .account-embed-comments .comment {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        flex-basis: auto;
        overflow: visible;
        transform: none;
    }

    .account-embed-comments .comment:nth-child(n) {
        flex-basis: auto;
    }

    .account-embed-comments .comment-body {
        max-height: none;
        overflow: visible;
    }

    .account-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 22px;
    }

    .account-footer p {
        flex-basis: auto;
        text-align: left;
    }
}

@media (max-width: 640px), (max-width: 1200px) {
    .account-embed-posts .post-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .account-embed-posts .post-header .post-author {
        flex-direction: row;
    }

    .account-embed-posts .post-avatar {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .account-embed-posts .post-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .account-option {
        width: 100%;
        max-width: 95%;
        min-width: 0;
        flex-wrap: wrap;
        /*align-items: flex-start;*/
        gap: 10px;
        padding: 12px;
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-page *,
    .account-page *::before,
    .account-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.footer-brand-logo {
    background-color: var(--footer-logo-bg);
    fill: var(--footer-logo-color);
}

.footer-brand-logo:hover {
    animation: doFlip 1.2s infinite;
}
