.page-account .site-content.container { max-width: var(--wp--style--global--wide-size, 1200px); padding-left: 24px; padding-right: 24px; }
.account { width: 100%; max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto; padding: clamp(16px, 3vw, 32px) 0 48px; color: var(--text-primary); }
.account__header h1 { margin-bottom: 8px; }
.account__section { margin-top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.account__section h2 { margin-top: 0; margin-bottom: 12px; font-size: 1.05rem; color: var(--text-primary); }
.account__tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.account__tab { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-surface); cursor: pointer; color: var(--text-primary); }
.account__tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.account__tab .account__badge { margin-left: 6px; }
.account__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.account__item { padding: 12px; border: 1px solid var(--border); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); }
.account__item-title { margin: 0; color: var(--text-primary); }
.account__badge { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 999px; background: var(--bg-surface); margin-left: 8px; color: var(--text-primary); }
.account__empty { color: var(--text-muted); font-size: 14px; }
.account__empty a { color: var(--accent); }
.account__actions { display: flex; gap: 8px; align-items: center; }
.bookmark-remove { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--danger, #ef4444); color: var(--danger, #ef4444); background: transparent; border-radius: 8px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.bookmark-remove svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.bookmark-remove:hover, .bookmark-remove:focus-visible { background: rgba(239, 68, 68, 0.12); color: var(--danger, #ef4444); border-color: var(--danger, #ef4444); outline: none; }
.bookmark-remove:focus-visible { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35); }
.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    min-width: 220px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
}
.toast--success { background: #16a34a; }
.toast--warn { background: #f59e0b; }
.toast--error { background: #ef4444; }
.toast__icon { font-weight: 700; }
.toast__close { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; }
.account__role-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--bg-surface); color: var(--text-primary); margin-left: 8px; font-size: 12px; border: 1px solid var(--border); }
.account__login-btn { display: inline-block; padding: 8px 12px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; }
.account__profile-form input[type="text"] {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    margin-bottom: 10px;
}
.account__profile-view[hidden],
.account__profile-edit[hidden] {
    display: none !important;
}

.account__profile-view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 360px;
}

.account__profile-name {
    display: inline-block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    line-height: 1.4;
}

.account__icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.account__icon-btn svg {
    width: 20px;
    height: 20px;
}

.account__icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.account__icon-btn:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35);
}

.account__profile-input {
    max-width: 360px;
    margin-bottom: 0;
}

.account__profile-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account__notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.account__notice--success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
}

.account__notice--warn {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
}

.account__notice--error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
}

.account__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.account__input {
    width: 100%;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.account__muted {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 4px 0 0;
}

.account__email-form {
    margin-top: 12px;
}

.account__telegram-subscribe {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.account__telegram-subscribe .account__muted {
    margin: 0;
}

.account__telegram-subscribe .cta-btn {
    width: 100%;
    max-width: 360px;
}
