/* ── VARIABLES ── */
:root {
    --bg:         #f4f5f7;
    --surface:    #ffffff;
    --surface2:   #f8f9fa;
    --border:     #e1e4e8;
    --border2:    #d0d5dd;
    --text:       #1a1f2e;
    --text-2:     #4a5568;
    --text-3:     #8896a4;
    --accent:     #2563eb;
    --accent-h:   #1d4ed8;
    --accent-lt:  #eff6ff;
    --accent2:    #059669;
    --danger:     #dc2626;
    --danger-lt:  #fef2f2;
    --warn:       #d97706;
    --warn-lt:    #fffbeb;
    --purple:     #7c3aed;
    --purple-lt:  #f5f3ff;
    --nav-w:      220px;
    --header-h:   56px;
    --radius:     6px;
    --radius-lg:  10px;
    --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg:  0 10px 25px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --font:       'Inter', system-ui, sans-serif;
    --serif:      'Lora', Georgia, serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 13.5px; line-height: 1.5; height: 100vh; overflow: hidden; display: flex; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── SIDEBAR NAV ── */
.sidenav {
    width: var(--nav-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100vh;
}

.sidenav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.brand-mark {
    width: 30px; height: 30px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    flex-shrink: 0;
}

.brand-text {
    font-size: 14px;
    color: var(--text);
    letter-spacing: -0.3px;
}
.brand-text strong { font-weight: 600; }

.sidenav-links {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.snav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: var(--text-2);
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 400;
    text-align: left;
    width: 100%;
    transition: all 0.1s;
}
.snav-btn:hover { background: var(--bg); color: var(--text); }
.snav-btn.active { background: var(--accent-lt); color: var(--accent); font-weight: 500; }
.snav-btn.active svg { stroke: var(--accent); }
.snav-btn svg { flex-shrink: 0; opacity: 0.6; }
.snav-btn.active svg { opacity: 1; }

/* ── MAIN WRAP ── */
.main-wrap {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ── PAGES ── */
.page { display: none; flex: 1; flex-direction: column; min-height: 0; }
.page.active { display: flex; }

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    min-height: var(--header-h);
    align-items: center;
}

.page-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.3px;
}

.page-sub {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; }
.bc-link { background: none; border: none; color: var(--text-3); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.bc-link:hover { color: var(--accent); }
.bc-sep { color: var(--text-3); font-size: 13px; }
.bc-current { font-size: 13px; color: var(--text); font-weight: 500; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.12s;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.full { width: 100%; justify-content: center; }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-h); border-color: var(--accent-h); }

.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border2); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg); }

.btn-danger { background: var(--danger-lt); color: var(--danger); border-color: rgba(220,38,38,0.2); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }

.btn-spin {
    width: 12px; height: 12px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
    flex-shrink: 0;
}
.btn-spin.on { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FORM ELEMENTS ── */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.req { color: var(--danger); }

input[type="text"], input[type="password"], select, textarea {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    padding: 7px 10px;
    width: 100%;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
    -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; line-height: 1.6; }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238896a4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
select option { background: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span2 { grid-column: 1 / -1; }

.field-hint { font-size: 11.5px; color: var(--text-3); }
.field-hint-inline { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.readonly-field { font-size: 13px; color: var(--text); background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 10px; min-height: 34px; }

.key-row { display: flex; gap: 6px; }
.eye-btn { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 0 10px; color: var(--text-3); font-size: 14px; transition: color 0.1s; }
.eye-btn:hover { color: var(--text); }

/* ── PROJECTS GRID ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 24px 28px;
    flex: 1;
    align-content: start;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow);
}
.project-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.project-card-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.project-card-company { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.project-card-website { font-size: 12px; color: var(--accent); margin-bottom: 14px; }

.project-card-stats {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.pstat { display: flex; flex-direction: column; gap: 2px; }
.pstat-num { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1; }
.pstat-label { font-size: 11px; color: var(--text-3); }

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

.project-card-date { font-size: 11.5px; color: var(--text-3); }

.project-card-actions { display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.project-card:hover .project-card-actions { opacity: 1; }

/* ── PROJECT DETAIL ── */
.project-summary {
    display: flex;
    gap: 0;
    padding: 16px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.psummary-item {
    padding: 0 20px 0 0;
    margin-right: 20px;
    border-right: 1px solid var(--border);
}
.psummary-item:first-child { padding-left: 0; }
.psummary-item:last-child { border-right: none; }
.psummary-val { font-size: 13px; color: var(--text); font-weight: 500; }
.psummary-key { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* ── SECTION CARD ── */
.section-card {
    margin: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
}

.section-card-title { font-size: 14px; font-weight: 600; color: var(--text); }

/* posts filters */
.posts-filters { display: flex; gap: 4px; }
.filter-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-3);
    transition: all 0.1s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--accent-lt); color: var(--accent); border-color: rgba(37,99,235,0.2); font-weight: 500; }

/* ── DATA TABLES ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.data-table td.primary { color: var(--text); font-weight: 500; }

/* status badges */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.badge-draft    { background: var(--bg);        color: var(--text-3); border: 1px solid var(--border); }
.badge-review   { background: var(--warn-lt);   color: var(--warn);   border: 1px solid rgba(217,119,6,0.2); }
.badge-approved { background: #f0fdf4;           color: var(--accent2);border: 1px solid rgba(5,150,105,0.2); }

.model-tag {
    font-size: 10px;
    padding: 1px 6px;
    background: var(--purple-lt);
    color: var(--purple);
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 4px;
    font-weight: 400;
    margin-left: 4px;
}

/* row actions */
.row-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.1s; }
.data-table tr:hover .row-actions { opacity: 1; }
.tbtn {
    padding: 3px 8px;
    background: transparent;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text-3);
    font-size: 12px;
    transition: all 0.1s;
}
.tbtn:hover { border-color: var(--accent); color: var(--accent); }
.tbtn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ── POST EDITOR ── */
.editor-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.editor-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.editor-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.editor-section:last-of-type { border-bottom: none; }

.editor-section-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 10px;
}

.editor-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.status-msg {
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.status-msg.info    { background: #eff6ff; color: var(--accent); border: 1px solid rgba(37,99,235,0.2); }
.status-msg.ok      { background: #f0fdf4; color: var(--accent2); border: 1px solid rgba(5,150,105,0.2); }
.status-msg.error   { background: var(--danger-lt); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }
.status-msg.warning { background: var(--warn-lt); color: var(--warn); border: 1px solid rgba(217,119,6,0.2); }

.run-log {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.8;
}

/* editor tabs */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.editor-tabs {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    flex-shrink: 0;
}

.etab {
    padding: 12px 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-3);
    font-size: 13px;
    margin-bottom: -1px;
    transition: all 0.1s;
}
.etab:hover:not(.active) { color: var(--text-2); }
.etab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

.etab-pane { display: none; flex: 1; overflow-y: auto; flex-direction: column; }
.etab-pane.active { display: flex; }

/* empty pane */
.empty-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-3);
    padding: 40px;
}
.empty-icon { font-size: 28px; opacity: 0.3; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-2); }
.empty-desc { font-size: 13px; text-align: center; line-height: 1.7; }

/* pane body */
.pane-body { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 10px; overflow-y: auto; }
.pane-toolbar { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pane-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); flex: 1; }
.pane-actions { display: flex; align-items: center; gap: 6px; }

/* research textarea */
.research-textarea {
    flex: 1;
    min-height: 300px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    font-size: 12.5px;
    line-height: 1.7;
    resize: none;
    color: var(--text);
}
.research-textarea.editable { border-color: var(--accent); }

/* SEO strip */
.seo-strip {
    background: #fafbff;
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}
.seo-item { display: flex; align-items: flex-start; gap: 8px; }
.seo-lbl { font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; width: 36px; flex-shrink: 0; padding-top: 1px; }
.seo-val { font-size: 12.5px; color: var(--text); flex: 1; line-height: 1.5; }
.seo-len { font-size: 11px; color: var(--text-3); flex-shrink: 0; }

/* word count */
.word-count { font-size: 12px; color: var(--text-3); }

/* view toggle */
.view-toggle { display: flex; border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; }
.vt { padding: 4px 10px; background: transparent; border: none; color: var(--text-3); font-size: 12px; transition: all 0.1s; }
.vt.active { background: var(--accent); color: #fff; }
.vt:not(.active):hover { color: var(--text); }

/* post preview */
.post-preview-wrap { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; min-height: 400px; }
.post-preview-wrap iframe { width: 100%; height: 100%; min-height: 500px; border: none; display: block; }
.post-source { flex: 1; background: #1e1e2e; border-radius: var(--radius-lg); padding: 16px; font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: #a8d8a8; overflow-y: auto; min-height: 400px; }

/* prompt editor */
.prompt-ta { flex: 1; min-height: 180px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-size: 12px; line-height: 1.7; resize: vertical; color: var(--text); }
.prompt-note { font-size: 11.5px; color: var(--text-3); background: var(--warn-lt); border: 1px solid rgba(217,119,6,0.15); border-radius: var(--radius); padding: 8px 12px; }

/* versions */
.versions-list { display: flex; flex-direction: column; gap: 10px; }
.version-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.version-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.version-num { font-size: 13px; font-weight: 600; color: var(--text); }
.version-date { font-size: 11.5px; color: var(--text-3); }
.version-meta { font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* ── STATUS WORKFLOW ── */
.status-workflow {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 6px;
}
.wf-step {
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
    transition: all 0.15s;
}
.wf-step.active { background: var(--accent); color: #fff; }
.wf-step.done   { color: var(--accent2); }
.workflow-btns { display: flex; gap: 6px; }

/* ── TEMPLATES PAGE ── */
#templatesTable {
    margin: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.template-ta { width: 100%; min-height: 200px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-size: 12px; line-height: 1.7; resize: vertical; color: var(--text); }

/* ── SETTINGS ── */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 28px;
    align-content: start;
}

.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.settings-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.setup-out { font-size: 11.5px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; color: var(--text-2); white-space: pre-wrap; line-height: 1.6; max-height: 200px; overflow-y: auto; }

/* ── MODALS ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: none;
}
.modal-overlay.open { display: block; }

.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 101;
    width: 540px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 60px);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: all 0.15s;
}

.modal.wide { width: 800px; }

.modal.open {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title { font-size: 15px; font-weight: 600; color: var(--text); }

.modal-close {
    background: none; border: none;
    font-size: 20px; color: var(--text-3);
    line-height: 1; padding: 0 4px;
    transition: color 0.1s;
}
.modal-close:hover { color: var(--text); }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* ── EMPTY STATE ── */
.empty-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-3);
    padding: 60px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    body { overflow: auto; flex-direction: column; }
    .sidenav { width: 100%; height: auto; flex-direction: row; }
    .sidenav-links { flex-direction: row; padding: 8px; }
    .main-wrap { min-height: 600px; }
    .settings-grid { grid-template-columns: 1fr; }
    .editor-layout { flex-direction: column; }
    .editor-sidebar { width: 100%; }
}

/* ── PROVIDER TOGGLES ── */
.provider-toggle {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
}

.ptog {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-3);
    font-size: 11.5px;
    transition: all 0.12s;
    cursor: pointer;
}

.ptog:hover { color: var(--text-2); border-color: var(--border2); }

.ptog.active[onclick*="openai"] {
    background: rgba(116,192,252,0.08);
    color: #74c0fc;
    border-color: rgba(116,192,252,0.3);
}

.ptog.active[onclick*="claude"] {
    background: rgba(212,169,110,0.08);
    color: #d4a96e;
    border-color: rgba(212,169,110,0.3);
}

.ptog-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ptog-dot.openai { background: #74c0fc; }
.ptog-dot.claude { background: #d4a96e; }

.ptog-badge {
    font-size: 9px;
    padding: 1px 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-3);
}

.provider-model-row select {
    font-size: 11.5px;
    padding: 5px 8px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font);
    font-size: 11.5px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}