*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0f0f10;
    --bg2: #17171a;
    --border: #2a2a2f;
    --accent: #ff4444;
    --accent2: #e03030;
    --text: #e8e8ec;
    --muted: #888;
    --green: #6dbf6d;
    --sidebar-w: 280px;
}

body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; height: 100vh; overflow: hidden; }

.layout { display: flex; height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w); min-width: var(--sidebar-w);
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden; overflow-y: auto;
}

/* ─── Sidebar sections ─────────────────────────────── */
.sidebar-section-link {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px; font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: background .15s, color .15s;
    letter-spacing: .02em;
}
.sidebar-section-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-section-link.active { color: var(--accent); background: rgba(42,157,92,.07); border-left: 2px solid var(--accent); }

.sidebar-section {
    border-bottom: 1px solid var(--border);
}
.sidebar-section-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px 6px;
    color: var(--muted);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
}
.sidebar-section-icon { font-size: 13px; }
.sidebar-section-title { }

/* Legacy header (removed) */
.sidebar-header { padding: 18px 16px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 700; }
.logo:hover { color: var(--accent); }
.settings-btn { color: var(--muted); text-decoration: none; font-size: 18px; line-height: 1; padding: 4px; border-radius: 6px; transition: color .2s, background .2s; }
.settings-btn:hover, .settings-btn.active { color: var(--text); background: rgba(255,255,255,.07); }

/* Settings rows */
.sidebar-setting { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.setting-row { display: flex; gap: 6px; }
.mono-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
    outline: none;
    transition: border-color .2s, color .2s;
    min-width: 0;
}
.mono-input:focus { border-color: #555; color: var(--text); }
.mono-input::placeholder { color: #3a3a40; }
.mono-input.has-value { color: var(--green); border-color: #3a5c3a; }
.icon-btn {
    background: none; border: 1px solid var(--border); color: var(--muted);
    padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 14px;
    flex-shrink: 0; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.setting-status { font-size: 11px; color: var(--muted); min-height: 14px; margin-top: 3px; }
.setting-status.ok { color: var(--green); }
.setting-status.err { color: #ff6b6b; }

/* URL input */
.sidebar-input { padding: 12px 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.sidebar-input input {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    padding: 8px 10px; border-radius: 6px; font-size: 13px; outline: none; transition: border-color .2s;
}
.sidebar-input input:focus { border-color: var(--accent); }
.sidebar-input input::placeholder { color: var(--muted); }
#parseBtn {
    background: var(--accent); color: #fff; border: none;
    padding: 9px; border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
#parseBtn:hover { background: var(--accent2); }
#parseBtn:disabled { background: #555; cursor: not-allowed; }
#parseStatus { font-size: 12px; color: var(--muted); min-height: 16px; }
#parseStatus.error { color: #ff6b6b; }
#parseStatus.success { color: var(--green); }

/* History */
.sidebar-history { overflow-y: auto; max-height: 280px; padding: 4px 0 8px; }
.sidebar-section .sidebar-history { max-height: 240px; }
.articles-list .sidebar-history { max-height: 300px; }
.history-empty { font-size: 12px; color: #444; padding: 8px 16px; font-style: italic; }
.history-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; padding: 4px 16px 8px; }
/* Article status badges */
.article-status { display: block; margin-top: 2px; }
.badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.badge-published { background: rgba(42,157,92,.15); color: #2a9d5c; }
.badge-scheduled { background: rgba(157,138,42,.15); color: #b8a030; }
.badge-draft { background: rgba(100,100,100,.15); color: #777; }
.history-list { list-style: none; }
.history-item {
    position: relative; display: flex; align-items: center;
    border-radius: 6px; margin: 1px 6px; transition: background .15s;
}
.history-item:hover { background: rgba(255,255,255,.04); }
.history-item.active { background: rgba(255,68,68,.12); }
.history-item a {
    flex: 1; text-decoration: none; color: var(--text);
    padding: 8px 32px 8px 10px; overflow: hidden;
    display: flex; flex-direction: column; gap: 2px;
}
.history-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-date { font-size: 11px; color: var(--muted); }
.history-item.active .history-title { color: var(--accent); }
.delete-btn {
    position: absolute; right: 8px;
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: 16px; opacity: 0; transition: opacity .15s; padding: 2px 4px;
}
.history-item:hover .delete-btn { opacity: 1; }
.delete-btn:hover { color: #ff6b6b; }

/* ── Main ────────────────────────────────────────────────────────────── */
.main-content { flex: 1; overflow-y: auto; padding: 36px 48px; }

/* Welcome */
.welcome { max-width: 560px; margin: 80px auto 0; text-align: center; }
.welcome-icon { font-size: 56px; margin-bottom: 20px; }
.welcome h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.welcome p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.welcome-steps { display: flex; gap: 20px; justify-content: center; margin-top: 36px; }
.step { background: var(--bg2); border: 1px solid var(--border); padding: 16px 20px; border-radius: 10px; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 110px; }
.step span { background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

/* Video page */
.video-page { max-width: 860px; }
.video-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.yt-link { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; }
.yt-link:hover { text-decoration: underline; }
.back-link { color: var(--muted); text-decoration: none; font-size: 13px; }
.back-link:hover { color: var(--text); }
.video-lang, .video-date { font-size: 12px; color: var(--muted); }

.video-title-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.video-title { font-size: 22px; font-weight: 700; line-height: 1.35; flex: 1; min-width: 200px; }
.video-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: flex-start; flex-wrap: wrap; }

.btn-rewrite {
    background: linear-gradient(135deg, #6b3fa0, #9b4fd0);
    color: #fff; border: none; padding: 9px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: opacity .2s, transform .1s; white-space: nowrap; text-decoration: none;
    display: inline-block;
}
.btn-rewrite:hover { opacity: .9; transform: translateY(-1px); }
.btn-rewrite:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-rewrite-view { background: linear-gradient(135deg, #2a6040, #3a8060); }

/* Transcript block */
.transcript-block { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.transcript-toolbar { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.toolbar-label { font-size: 13px; color: #a07fd0; font-weight: 600; }
.copy-btn {
    background: none; border: 1px solid var(--border); color: var(--text);
    padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px;
    transition: border-color .2s, color .2s; margin-left: auto;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.transcript-text { padding: 20px; line-height: 1.85; font-size: 15px; color: #d4d4dc; white-space: pre-wrap; word-break: break-word; }
.rewrite-text { color: #e0e0ea; line-height: 1.9; }

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.7);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal-box {
    background: #1e1e24; border: 1px solid #3a3a45; border-radius: 14px;
    padding: 32px 28px; width: 420px; max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.modal-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.modal-input {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 11px 14px; border-radius: 8px;
    font-size: 13px; font-family: monospace; outline: none;
    transition: border-color .2s; margin-bottom: 10px;
}
.modal-input:focus { border-color: #6b3fa0; }
.modal-input::placeholder { color: #3a3a45; }
.modal-error { font-size: 12px; color: #ff6b6b; min-height: 18px; margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.btn-modal-cancel {
    background: none; border: 1px solid var(--border); color: var(--muted);
    padding: 9px 20px; border-radius: 8px; cursor: pointer; font-size: 13px;
    transition: border-color .2s;
}
.btn-modal-cancel:hover { border-color: var(--text); color: var(--text); }
.btn-modal-start {
    background: linear-gradient(135deg, #6b3fa0, #9b4fd0);
    color: #fff; border: none; padding: 9px 22px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .2s;
}
.btn-modal-start:hover { opacity: .9; }

/* Rewrite overlay */
.rewrite-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.75);
    display: flex; align-items: center; justify-content: center; z-index: 999;
    backdrop-filter: blur(4px);
}
.rewrite-overlay.hidden { display: none; }
.rewrite-spinner { text-align: center; }
.spinner-big {
    width: 52px; height: 52px; border: 4px solid #333; border-top-color: #9b4fd0;
    border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 20px;
}
.rewrite-label { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.rewrite-sub { font-size: 13px; color: var(--muted); }

.empty-state { padding: 40px; text-align: center; color: var(--muted); font-size: 15px; }

/* Spinner inline */
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Publish button ──────────────────────────────────────────────────────── */
.btn-publish {
    background: linear-gradient(135deg, #1a5a70, #1e8aaa);
    color: #fff; border: none; padding: 9px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: opacity .2s, transform .1s; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(30,138,170,.25);
}
.btn-publish:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(30,138,170,.4); }
.btn-publish:active { transform: translateY(0); }
.btn-publish-action {
    background: linear-gradient(135deg, #1a5a70, #1e8aaa);
    box-shadow: 0 4px 14px rgba(30,138,170,.3);
}

/* Publication history */
.pub-history { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.pub-item {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: rgba(42,157,92,.05); border: 1px solid rgba(42,157,92,.18);
    border-left: 3px solid #2a9d5c;
    border-radius: 8px; padding: 9px 14px; font-size: 13px;
    transition: all .2s;
}
.pub-item:hover { background: rgba(42,157,92,.08); border-color: rgba(42,157,92,.35); border-left-color: #3ec878; }
.pub-item.pub-status-future { border-left-color: #f0a020; background: rgba(240,160,32,.05); border-color: rgba(240,160,32,.18); }
.pub-icon { font-size: 14px; flex-shrink: 0; }
.pub-site { font-weight: 600; }
.pub-cat { background: rgba(255,255,255,.06); padding: 2px 9px; border-radius: 20px; font-size: 11px; color: #aaa; }
.pub-time { color: var(--muted); font-size: 11px; margin-left: auto; }
.pub-link { color: #3ec878; text-decoration: none; font-size: 11px; font-weight: 600; padding: 3px 10px; border: 1px solid rgba(62,200,120,.3); border-radius: 5px; transition: all .2s; white-space: nowrap; }
.pub-link:hover { background: rgba(62,200,120,.12); border-color: #3ec878; }

/* Modal select */
.modal-select {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 10px 12px; border-radius: 8px;
    font-size: 13px; outline: none; cursor: pointer;
    transition: border-color .2s;
}
.modal-select:focus { border-color: #2a9d5c; }
.modal-select:disabled { opacity: .5; cursor: not-allowed; }
.modal-select option { background: #1e1e24; }

/* Radio group */
.radio-group { display: flex; gap: 20px; margin-top: 6px; }
.radio-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; color: var(--text); }
.radio-label input { accent-color: #2a9d5c; }

/* Wide modal */
.modal-box-wide { width: 520px; }

/* Form grid in modal */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.form-field-full { grid-column: 1 / -1; }
.field-hint { font-size: 11px; color: #555; margin-top: 3px; line-height: 1.5; }
.field-hint-inline { font-size: 11px; color: #555; font-weight: 400; text-transform: none; letter-spacing: 0; }
.wide-input { width: 100%; }

/* ── Settings page ───────────────────────────────────────────────────────── */
.settings-page { max-width: 820px; }
.settings-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.settings-header h1 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.settings-header p { color: var(--muted); font-size: 13px; margin-top: 5px; }

.settings-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px; margin-bottom: 16px; overflow: hidden;
}
.settings-card-title {
    padding: 15px 22px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 700; letter-spacing: .1px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(255,255,255,.015);
}
.settings-card-body { padding: 22px; }

.settings-field { margin-bottom: 20px; }
.settings-field:last-child { margin-bottom: 0; }
.settings-field > label {
    display: block; font-size: 11px; color: #666;
    text-transform: uppercase; letter-spacing: .7px; margin-bottom: 8px; font-weight: 600;
}

.api-key-row { display: flex; align-items: center; gap: 10px; }
.api-key-badge {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
    background: rgba(109,191,109,.1); border: 1px solid rgba(109,191,109,.22); color: var(--green);
}
.api-key-badge.unset { background: rgba(255,68,68,.07); border-color: rgba(255,68,68,.18); color: #ff7070; }

.btn-add-integration {
    background: none;
    border: 1px solid rgba(255,68,68,.35);
    color: var(--accent);
    padding: 5px 15px; border-radius: 7px; font-size: 12px; cursor: pointer;
    font-weight: 600; transition: all .2s; letter-spacing: .2px; flex-shrink: 0;
}
.btn-add-integration:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(255,68,68,.2); }

/* Integrations list */
.integrations-list { display: flex; flex-direction: column; gap: 8px; }
.integration-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid #333;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    transition: all .18s;
}
.integration-row:hover { border-color: #3a3a55; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.integration-row.intg-active { border-left-color: var(--green); }
.integration-row.intg-active:hover { border-color: rgba(109,191,109,.28); }

.intg-avatar {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #242430, #1a1a24);
    border: 1px solid #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.integration-row.intg-active .intg-avatar { border-color: rgba(109,191,109,.25); }

.intg-info { flex: 1; min-width: 180px; }
.intg-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.intg-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
    background: rgba(109,191,109,.1); color: #5dbf8a; border: 1px solid rgba(109,191,109,.18);
    letter-spacing: .4px; text-transform: uppercase;
}
.intg-badge.disabled { background: rgba(255,255,255,.03); color: #444; border-color: #2a2a2f; }
.intg-url { font-size: 12px; color: #666; font-family: monospace; }
.intg-meta { font-size: 11px; color: #4a4a55; margin-top: 3px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.intg-cred-ok { color: #3a8a5a; }
.intg-cred-no { color: #6a3a2a; }

.intg-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.intg-action-btn {
    background: none; border: 1px solid var(--border); color: var(--muted);
    padding: 5px 11px; border-radius: 7px; cursor: pointer; font-size: 12px;
    transition: all .18s; white-space: nowrap;
}
.intg-action-btn:hover { border-color: #555; color: var(--text); background: rgba(255,255,255,.03); }
.btn-test-intg:hover { border-color: #4a9fd4 !important; color: #4a9fd4 !important; }
.btn-del-intg:hover { border-color: #ff6b6b !important; color: #ff6b6b !important; }
.btn-edit-intg:hover { border-color: #b87aff !important; color: #b87aff !important; }

.intg-test-result {
    width: 100%; font-size: 12px; margin-top: 8px; display: none;
    padding: 7px 12px; border-radius: 7px;
}
.intg-test-result:not(:empty) { display: block; }
.intg-test-result.ok { color: var(--green); background: rgba(109,191,109,.07); border: 1px solid rgba(109,191,109,.14); }
.intg-test-result.err { color: #ff8080; background: rgba(255,68,68,.06); border: 1px solid rgba(255,68,68,.14); }

.empty-integrations {
    padding: 36px 20px; text-align: center;
    border: 1px dashed #2a2a35; border-radius: 10px;
}
.empty-hint { color: var(--muted); font-size: 14px; }
.empty-hint-sub { color: #444; font-size: 12px; margin-top: 6px; }

/* Quick add sites */
.quick-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.btn-quick-add {
    background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 12px 14px; border-radius: 10px;
    font-size: 12px; cursor: pointer; text-align: left;
    transition: all .18s; display: flex; align-items: center; gap: 10px;
    font-family: inherit;
}
.qsa-icon { font-size: 20px; flex-shrink: 0; }
.qsa-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qsa-name { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qsa-url { font-size: 11px; color: var(--muted); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-quick-add:hover {
    border-color: rgba(255,68,68,.4); background: rgba(255,68,68,.05);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.btn-quick-add:hover .qsa-name { color: var(--accent); }
.settings-card-hints { background: rgba(255,255,255,.005); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

@media (max-width: 700px) {
    .layout { flex-direction: column; overflow: hidden; }
    .sidebar { width: 100%; min-width: 0; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar-history { max-height: 180px; }
    .main-content { padding: 20px 16px; }
    .welcome { margin-top: 20px; }
    .welcome-steps { flex-direction: column; align-items: center; }
    .video-title-row { flex-direction: column; }
}

/* ── Sidebar add button ──────────────────────────────────────────── */
.sidebar-add-btn {
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer !important;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
    flex-shrink: 0;
    pointer-events: all !important;
    position: relative;
    z-index: 10;
}
.sidebar-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Modal header/body (for new article modal) ────────────────── */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color .2s;
}
.modal-close:hover { color: var(--accent); }
.modal-body label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
    font-weight: 500;
}
.modal-body .modal-input,
.modal-body .modal-select {
    width: 100%;
    margin-bottom: 2px;
}
.modal-body textarea.modal-input {
    font-family: inherit;
    resize: vertical;
}

/* ── Tags list ───────────────────────────────────────────── */
.tags-list { display: flex; flex-direction: column; gap: 6px; }
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.btn-primary:hover { background: var(--accent2); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
