/* 文章改写工具 - 侧边栏布局样式 */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --success: #0d904f;
    --danger: #d93025;
    --warning: #e37400;
    --bg: #f8f9fa;
    --card-bg: #fff;
    --border: #e0e0e0;
    --text: #202124;
    --text-secondary: #5f6368;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --sidebar-width: 200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* === 应用布局 === */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* === 侧边栏 === */
.sidebar {
    width: var(--sidebar-width);
    background: #1e293b;
    color: #e2e8f0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}
.sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 0 20px;
    margin-bottom: 2px;
}
.sidebar-subtitle {
    font-size: 12px;
    color: #94a3b8;
    padding: 0 20px;
    margin-bottom: 32px;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
}
.sidebar-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.sidebar-item.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* === 主内容区 === */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 24px 32px;
    max-width: calc(960px + var(--sidebar-width));
    width: 100%;
}

/* === 输入区 === */
.hero { text-align: center; padding: 32px 0 16px; }
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero p { color: var(--text-secondary); font-size: 14px; max-width: 600px; margin: 0 auto; }

.input-box { display: flex; gap: 12px; margin: 0 auto 8px; max-width: 700px; }
.input-box input {
    flex: 1; height: 44px; padding: 0 16px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 15px;
}
.input-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,0.15); }

/* === 按钮 === */
.btn, button {
    display: inline-block; padding: 10px 24px; border: none; border-radius: var(--radius);
    font-size: 15px; cursor: pointer; text-decoration: none; background: #e8eaed; color: var(--text);
}
.btn-primary, .input-box button {
    background: var(--primary); color: #fff; font-weight: 600;
    white-space: nowrap;
}
.btn-primary:hover, .input-box button:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; font-weight: 600; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn:hover { opacity: 0.9; }
.btn:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }

/* === 进度条 === */
.progress-bar { height: 6px; background: #e8eaed; border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.4s ease; }

/* === 任务卡片 === */
.task-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow);
}
.task-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.task-row:last-child { border-bottom: none; }
.task-id { font-weight: 700; min-width: 40px; }
.task-url { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-status-badge {
    font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.status-queued { background: #e8eaed; color: #5f6368; }
.status-running { background: #e8f0fe; color: var(--primary); }
.status-completed { background: #e6f4ea; color: var(--success); }
.status-failed { background: #fce8e6; color: var(--danger); }
.status-publishing { background: #fff3e0; color: var(--warning); }
.status-published { background: #e6f4ea; color: var(--success); }

/* === 步骤流程 S 线 === */
.step-flow { margin: 16px 0; overflow: hidden; }
.step-flow h3 { font-size: 15px; margin-bottom: 12px; }
.step-flow-row { display: flex; gap: 0; align-items: center; position: relative; }
.step-flow-row.reverse { flex-direction: row-reverse; }
.step-flow-item {
    flex: 1; min-width: 0; text-align: center; position: relative;
    padding: 8px 4px; font-size: 12px;
}
.step-flow-node {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; font-size: 11px;
    font-weight: bold; margin-bottom: 4px;
    background: #e8eaed; color: #999;
    transition: all 0.3s ease;
}
.step-flow-node.done { background: var(--success); color: #fff; }
.step-flow-node.running { background: var(--primary); color: #fff; animation: pulse 1.5s ease-in-out infinite; }
.step-flow-node.failed { background: var(--danger); color: #fff; }
.step-flow-label { display: block; line-height: 1.3; color: var(--text-secondary); font-size: 11px; }
.step-flow-item.done .step-flow-label { color: var(--success); font-weight: 600; }
.step-flow-item.running .step-flow-label { color: var(--primary); font-weight: 600; }
.step-flow-item.failed .step-flow-label { color: var(--danger); }

/* 连接线 */
.step-flow-connector {
    width: 16px; height: 2px; background: #ddd; flex-shrink: 0;
    align-self: flex-start; margin-top: 18px;
}
.step-flow-connector.done { background: var(--success); }
.step-flow-connector.running { background: var(--primary); }
.step-flow-bridge {
    display: flex; justify-content: flex-end; padding-right: calc(10% - 8px);
    height: 20px; position: relative;
}
.step-flow-bridge::before {
    content: ''; position: absolute; right: calc(10% - 8px); top: -2px;
    width: 2px; height: 24px; background: #ddd; border-radius: 1px;
}
.step-flow-bridge.done::before { background: var(--success); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(26,115,232,0); }
}

/* === 结果页 === */
.result-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.result-header h2 { color: var(--success); }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-meta { background: var(--card-bg); padding: 16px; border-radius: var(--radius); margin: 16px 0; box-shadow: var(--shadow); }
.result-meta p { margin: 4px 0; font-size: 14px; }
.article-preview { background: var(--card-bg); padding: 20px; border-radius: var(--radius); margin: 16px 0; box-shadow: var(--shadow); }
.preview-content { font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-all; }
.preview-content.full-content { max-height: none; overflow-y: visible; }
.task-meta { background: var(--card-bg); padding: 16px; border-radius: var(--radius); margin: 12px 0; box-shadow: var(--shadow); }
.task-meta-row { padding: 4px 0; font-size: 14px; word-break: break-all; }
.task-meta-row a { color: var(--primary); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .meta-grid { grid-template-columns: 1fr; } }
.meta-grid div { font-size: 14px; word-break: break-all; }
.meta-grid a { color: var(--primary); }
.result-done { color: var(--success); }
.result-failed { color: var(--danger); }
.result-running { color: var(--primary); }
.task-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* === 设置页 === */
.hint { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; max-width: 520px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px;
}
.form-group textarea { min-height: 80px; font-family: monospace; font-size: 12px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary);
}
.msg { padding: 10px 16px; border-radius: var(--radius); font-size: 14px; margin-top: 12px; }
.msg-success { background: #e6f4ea; color: var(--success); }
.msg-error { background: #fce8e6; color: var(--danger); }

/* === 错误提示 === */
.error-msg { color: var(--danger); font-size: 13px; text-align: center; margin: 8px 0; }
.error-box { background: #fce8e6; color: var(--danger); padding: 12px; border-radius: var(--radius); margin: 12px 0; font-size: 13px; }
.warn { color: var(--warning); font-size: 13px; }

/* === 任务历史 === */
.task-history { margin-top: 32px; }
.task-history h2, #activeTasks h2 { font-size: 18px; margin-bottom: 12px; }
.task-title-preview { color: var(--primary); font-size: 13px; }
.task-time { color: var(--text-secondary); font-size: 12px; }
.task-row a { color: var(--primary); font-size: 13px; text-decoration: none; }
.task-row a:hover { text-decoration: underline; }

/* === 草稿箱 === */
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.page-header h2 { font-size: 22px; }
.selection-bar {
    display: flex; align-items: center; gap: 16px; padding: 12px 16px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.selection-bar.hidden { display: none; }
.selection-count { font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.draft-table { width: 100%; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.draft-table-header {
    display: grid; grid-template-columns: 40px 60px 1fr 140px 100px 120px;
    gap: 12px; padding: 12px 16px; background: #f1f3f4; font-size: 13px;
    font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border);
}
.draft-row {
    display: grid; grid-template-columns: 40px 60px 1fr 140px 100px 120px;
    gap: 12px; padding: 10px 16px; align-items: center; font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.draft-row:last-child { border-bottom: none; }
.draft-row:hover { background: #f8f9fa; }
.draft-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.draft-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-actions { display: flex; gap: 8px; }
.draft-actions a { color: var(--primary); text-decoration: none; font-size: 13px; }
.draft-actions a:hover { text-decoration: underline; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; }

/* === 模态框 === */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
    align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--card-bg); border-radius: 12px;
    padding: 28px; max-width: 560px; width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-height: 80vh; overflow-y: auto;
}
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal p { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; }
.platform-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-bottom: 20px;
}
.platform-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: all 0.15s ease;
}
.platform-item:hover { border-color: var(--primary); background: #e8f0fe; }
.platform-item.selected { border-color: var(--primary); background: #e8f0fe; }
.platform-item.disabled { opacity: 0.5; cursor: not-allowed; background: #f8f9fa; }
.platform-item.disabled:hover { border-color: var(--border); background: #f8f9fa; }
.platform-checkbox { width: 18px; height: 18px; accent-color: var(--primary); }
.platform-name { font-size: 14px; font-weight: 500; }
.platform-badge {
    font-size: 11px; padding: 1px 6px; border-radius: 4px;
    background: #e6f4ea; color: var(--success); margin-left: auto;
}
.platform-badge.coming { background: #e8eaed; color: #999; }
.platform-account-name { font-size: 11px; color: var(--text-secondary); margin-left: auto; }
/* 多账号平台组 */
.platform-group {
    grid-column: 1 / -1;
    border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 14px; background: #fafbfc;
}
.platform-group-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.platform-account-radio {
    display: flex; align-items: center; gap: 8px; padding: 5px 8px;
    border-radius: 6px; cursor: pointer; font-size: 13px;
}
.platform-account-radio:hover { background: #e8f0fe; }
.platform-account-radio.active { background: #e8f0fe; border: 1px solid var(--primary); }
.platform-account-radio.disabled { opacity: 0.5; cursor: not-allowed; }
.platform-account-radio.disabled:hover { background: transparent; }
.radio-account-name { font-weight: 500; }
.radio-account-limit { font-size: 11px; color: var(--text-secondary); margin-left: auto; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* === Toast 通知 === */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 12px 20px; border-radius: var(--radius); font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); animation: slideIn 0.3s ease;
    max-width: 380px;
}
.toast-success { background: #e6f4ea; color: var(--success); border: 1px solid #ceead6; }
.toast-error { background: #fce8e6; color: var(--danger); border: 1px solid #f5c6cb; }
.toast-info { background: #e8f0fe; color: var(--primary); border: 1px solid #d2e3fc; }
.toast-warning { background: #fff3e0; color: var(--warning); border: 1px solid #ffe0b2; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === 收录状态 === */
.index-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.index-status.indexed { background: #e6f4ea; color: var(--success); }
.index-status.checking { background: #fff3e0; color: var(--warning); }
.index-status.not_indexed { background: #fce8e6; color: var(--danger); }

/* === 响应式 === */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 16px 0;
    }
    .sidebar-brand { font-size: 16px; padding: 0 8px; text-align: center; }
    .sidebar-subtitle { display: none; }
    .sidebar-item { padding: 10px 8px; justify-content: center; font-size: 0; gap: 0; }
    .sidebar-icon { width: 20px; height: 20px; }
    .main-content { margin-left: 60px; padding: 16px; }
    .draft-table-header, .draft-row {
        grid-template-columns: 36px 48px 1fr 100px;
    }
    .draft-table-header > *:nth-child(4),
    .draft-table-header > *:nth-child(6),
    .draft-row > *:nth-child(4),
    .draft-row > *:nth-child(6) { display: none; }
    .platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .input-box { flex-direction: column; }
    .hero h1 { font-size: 22px; }
    .task-row { flex-wrap: wrap; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .draft-table-header, .draft-row {
        grid-template-columns: 36px 1fr;
    }
    .draft-table-header > *:nth-child(2),
    .draft-table-header > *:nth-child(4),
    .draft-table-header > *:nth-child(5),
    .draft-table-header > *:nth-child(6),
    .draft-row > *:nth-child(2),
    .draft-row > *:nth-child(4),
    .draft-row > *:nth-child(5),
    .draft-row > *:nth-child(6) { display: none; }
}

.publish-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 4px;
}

/* status badges for publish states */
.status-pending { background: #e8eaed; color: #5f6368; }
.status-running { background: #e8f0fe; color: #1967d2; }

@media (max-width: 768px) {
    .publish-records-header,
    .publish-records-row {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 8px 12px;
    }
    .publish-records-header > *:nth-child(3),
    .publish-records-header > *:nth-child(4),
    .publish-records-header > *:nth-child(5),
    .publish-records-row > *:nth-child(3),
    .publish-records-row > *:nth-child(4),
    .publish-records-row > *:nth-child(5) {
        grid-column: span 1;
    }
}

/* === 账号管理页 === */
.accounts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.accounts-header h2 { font-size: 20px; font-weight: 600; }
.accounts-summary {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.account-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s;
}
.account-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.account-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.account-platform {
    display: flex;
    align-items: center;
    gap: 8px;
}
.platform-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}
.platform-badge.baijiahao { background: #306cff; }
.platform-badge.bilibili { background: #fb7299; }
.platform-badge.wechat { background: #07c160; }
.platform-badge.csdn { background: #fc5531; }
.platform-badge.sohu { background: #e4393c; }
.platform-badge.toutiao { background: #ff0000; }
.platform-badge.zhihu { background: #0066ff; }
.platform-badge.jianshu { background: #ea6f5a; }
.platform-badge.default { background: #6b7280; }
.account-name { font-size: 15px; font-weight: 500; }
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}
.status-dot::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online::before { background: var(--success); }
.status-dot.online { color: var(--success); }
.status-dot.expired::before { background: var(--warning); }
.status-dot.expired { color: var(--warning); }
.status-dot.disabled::before { background: #9ca3af; }
.status-dot.disabled { color: #9ca3af; }
.account-card-body { display: flex; flex-direction: column; gap: 8px; }
.usage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}
.usage-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 0 10px;
    overflow: hidden;
}
.usage-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
    transition: width 0.3s;
}
.usage-bar-fill.high { background: var(--warning); }
.usage-bar-fill.full { background: var(--danger); }
.cred-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 12px; }
.cred-ok { color: var(--success); font-weight: 600; }
.cred-warn { color: var(--warning); font-weight: 600; }
.cred-bad { color: var(--danger); font-weight: 600; }
.cred-pending { color: var(--muted); }
.account-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.account-card-actions button {
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.account-card-actions button:hover { background: var(--bg); }
.account-card-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.account-card-actions .btn-primary:hover { background: var(--primary-dark); }
.account-card-actions .btn-danger {
    color: var(--danger);
    border-color: var(--danger);
}
.account-card-actions .btn-danger:hover { background: #fef2f2; }

/* 添加账号模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-box h3 { font-size: 18px; margin-bottom: 20px; }
.modal-step { display: none; }
.modal-step.active { display: block; }
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
}
.platform-option:hover { border-color: var(--primary); background: #f0f7ff; }
.platform-option.selected { border-color: var(--primary); background: #e8f0fe; }
.platform-option .login-type {
    font-size: 11px;
    color: var(--text-secondary);
}
.modal-form-group {
    margin-bottom: 16px;
}
.modal-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.modal-form-group input:focus,
.modal-form-group textarea:focus { border-color: var(--primary); }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.modal-actions button {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--card-bg);
}
.modal-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.qr-container {
    text-align: center;
    padding: 20px 0;
}
.qr-container img {
    width: 200px;
    height: 200px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.qr-container p {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.empty-accounts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-accounts p { margin-bottom: 16px; }

@media (max-width: 768px) {
    .accounts-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
