/* ==========================================================================
   SwopBlog - Minimal & Clean Design System
   ========================================================================== */
:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Crisp Light Minimal Palette */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    --bg-surface-hover: #e2e8f0;

    --border-subtle: #e2e8f0;
    --border-card: #eaecf0;
    --border-focus: #2563eb;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;

    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-light: #eff6ff;
    --brand-border: #bfdbfe;

    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-hover: #dc2626;

    /* Elevation */
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 10px 25px -3px rgba(15, 23, 42, 0.08);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 36px 20px 60px;
    -webkit-font-smoothing: antialiased;
}

/* 2-Column App Layout (Left Profile Card + Right Feed) */
.app-layout {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 28px;
    align-items: flex-start;
}

/* ==========================================================================
   Left Side Profile Card (matches user image mockup)
   ========================================================================== */
.sidebar-left {
    position: sticky;
    top: 36px;
}

.user-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 26px 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow var(--transition-normal);
}

.user-profile-card:hover {
    box-shadow: var(--shadow-hover);
}

.profile-avatar-container {
    margin-bottom: 20px;
    position: relative;
}

.user-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    background-color: #cbd5e1;
    display: block;
}

.user-profile-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.user-profile-handle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 14px;
}

.user-profile-bio {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-change-profile-pic {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--brand-light);
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-md);
    font-size: 0.925rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-change-profile-pic:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-change-profile-pic svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Right Feed Area
   ========================================================================== */
.main-feed-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* Create Post Card */
.create-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.create-post-card:focus-within {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-hover);
}

.create-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.create-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-icon-badge svg {
    width: 16px;
    height: 16px;
}

.create-prompt-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.create-post-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    width: 100%;
}

.form-input-title {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #fafbfc;
    transition: all var(--transition-fast);
}

.form-input-title:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-textarea-content {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.925rem;
    color: var(--text-primary);
    background: #fafbfc;
    resize: vertical;
    min-height: 100px;
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.form-textarea-content:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.create-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.tag-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fafbfc;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.tag-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.form-tag-select {
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.btn-publish {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

.btn-publish:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.btn-publish svg {
    width: 16px;
    height: 16px;
}

/* Feed Section */
.feed-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.feed-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.title-icon {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
}

.feed-count {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 600;
}

.posts-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post Card */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background-color: var(--bg-surface);
}

.post-author-meta {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.post-meta-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-tag-badge {
    background: var(--brand-light);
    color: var(--brand-primary);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.725rem;
}

.btn-delete-post {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-delete-post:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-delete-post svg {
    width: 14px;
    height: 14px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.post-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    white-space: pre-line;
}

/* Post Action Bar */
.post-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.btn-action-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: #fafbfc;
    color: var(--text-secondary);
    font-size: 0.825rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-action-pill:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.btn-action-pill.btn-like:hover {
    color: #e11d48;
    background: #ffe4e6;
    border-color: #fecdd3;
}

.btn-action-pill svg {
    width: 15px;
    height: 15px;
}

/* Replies Section */
.post-replies-section {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-subtle);
    margin-top: 4px;
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid #eef2f6;
    transition: border-color var(--transition-fast);
}

.reply-item:hover {
    border-color: var(--border-subtle);
}

.reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.reply-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reply-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reply-time {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.btn-delete-reply {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.btn-delete-reply:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-delete-reply svg {
    width: 13px;
    height: 13px;
}

.reply-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.add-reply-form {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.reply-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: #ffffff;
}

.reply-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.btn-send-reply {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-send-reply:hover {
    background: var(--brand-primary-hover);
}

.btn-send-reply svg {
    width: 14px;
    height: 14px;
}

/* Empty State */
.empty-feed {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.empty-icon {
    width: 44px;
    height: 44px;
    color: #94a3b8;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 16px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(0.96);
    transition: transform var(--transition-normal);
    overflow: hidden;
}

.modal-card-sm {
    max-width: 400px;
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-title-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-primary);
}

.text-danger {
    color: var(--danger) !important;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    display: flex;
    transition: background var(--transition-fast);
}

.btn-modal-close:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.modal-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.avatar-preview-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-avatar-circle {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--brand-primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
    flex-shrink: 0;
}

.modal-avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-instructions .instruction-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.preview-instructions .instruction-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-surface);
    position: relative;
    transition: all var(--transition-fast);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--brand-primary);
    background: var(--brand-light);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 28px;
    height: 28px;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.dropzone-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.selected-file-name {
    display: block;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 4px;
}

/* Preset Avatars */
.preset-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.preset-avatars-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.preset-avatar-option {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.preset-avatar-option:hover {
    transform: scale(1.1);
}

.preset-avatar-option.selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.profile-fields-edit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-fields-edit .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
}

.btn-danger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--danger);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.2s ease;
}

.toast.toast-success {
    background: #065f46;
}

.toast.toast-danger {
    background: #991b1b;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 860px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-left {
        position: static;
    }
    body {
        padding: 20px 14px 40px;
    }
}
/* Shared account and feed controls fit the original SwopBlog design. */
[hidden]{display:none!important}.blog-topbar{max-width:1040px;margin:24px auto 0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-inline:24px}.blog-brand{font-family:var(--font-heading);font-size:23px;font-weight:750;text-decoration:none;color:var(--text-primary)}.blog-brand span{font-family:var(--font-primary);font-size:11px;font-weight:400;color:var(--text-muted);margin-left:10px}.account-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.account-actions>span{font-size:11px;padding:7px 9px;border-radius:7px;background:var(--brand-light);color:var(--brand-primary)}.mode-notice{max-width:992px;margin:17px auto 0;padding:12px 16px;border:1px solid var(--brand-border);background:var(--brand-light);border-radius:9px;font-size:12px;color:var(--text-secondary);line-height:1.6}.feed-filters{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.feed-filters input,.feed-filters select{border:1px solid var(--border-subtle);border-radius:8px;padding:10px;font:inherit;font-size:12px;color:var(--text-secondary);min-width:0;background:white}.feed-filters input{flex:1;min-width:160px}.feed-filters select{max-width:100%}.draft-choice{font-size:12px;display:flex;gap:6px;align-items:center;color:var(--text-muted)}.create-card-footer{flex-wrap:wrap;gap:12px}.story-management{display:flex;gap:8px;flex-shrink:0}.btn-like.liked{color:#e04677;background:#fff1f4}.load-more{display:block;margin:22px auto}.account-dialog{border:1px solid var(--border-subtle);border-radius:16px;padding:27px;max-height:90dvh;overflow-y:auto;width:min(440px,calc(100vw - 28px));color:var(--text-primary)}dialog::backdrop{background:#172c4266;backdrop-filter:blur(3px)}.account-dialog h2{font-family:var(--font-heading);font-size:26px;margin-bottom:10px}.account-dialog h3{font-size:14px;margin:22px 0 12px}.account-dialog p{font-size:12px;line-height:1.7;color:var(--text-muted);margin-bottom:18px}.account-dialog form{display:grid;gap:14px}.account-dialog label{display:grid;gap:7px;font-size:12px;font-weight:600}.account-dialog input{font:inherit;border:1px solid var(--border-subtle);border-radius:8px;padding:11px;width:100%;min-width:0}.dialog-buttons{display:flex;justify-content:flex-end;gap:10px}.auth-switch{background:none;border:0;color:var(--brand-primary);margin-top:20px;font-size:12px;padding:8px 0;cursor:pointer}.inline-error{color:var(--danger)!important;margin:0!important}.session-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--border-subtle);font-size:12px}.session-row small{display:block;color:var(--text-muted);margin-top:4px}.account-dialog>button{margin-top:16px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog.modal-overlay{inset:0;border:0;padding:0;background:transparent;max-width:calc(100vw - 24px);max-height:90dvh;width:460px;height:fit-content;position:fixed;margin:auto;overflow-y:auto}dialog.modal-overlay[open]{display:block}dialog.modal-overlay .modal-card{width:100%;max-height:none;transform:none;margin:0}.post-content,.reply-content,.post-title{overflow-wrap:anywhere}.post-author-group{min-width:0}.post-header{gap:10px}.post-author-name{overflow-wrap:anywhere}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}@media(max-width:860px){.blog-topbar{padding-inline:20px;flex-wrap:wrap}.mode-notice{margin-inline:20px}.blog-brand span{display:none}}@media(max-width:520px){.account-actions{gap:6px}.account-actions button{padding:9px 10px;font-size:11px}.blog-topbar{gap:13px}.feed-filters input{flex-basis:100%}.feed-filters select{flex:1}.story-management{gap:2px}.story-management button{padding:6px;font-size:11px}.post-header{align-items:flex-start}.draft-choice{width:100%}.account-dialog{padding:23px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
dialog.modal-overlay:not([open]){display:none}dialog.modal-overlay[open]{opacity:1;pointer-events:auto;backdrop-filter:none}.modal-feedback{padding:12px 16px;border-radius:8px;background:#fff1f2;color:#9f1239;font-size:12px;line-height:1.6;margin:10px}
