/* ===================================================================
   SmartAI Admin — WordPress-style editor (premium dark)
   =================================================================== */
:root {
    --bg: #070910;
    --bg-alt: #0b0e18;
    --surface: #11151f;
    --surface-2: #161b28;
    --surface-3: #1c2230;
    --text: #eef1f7;
    --text-muted: #98a2b6;
    --text-dim: #69728a;
    --accent: #7c6cff;
    --accent-2: #4f9eff;
    --accent-soft: rgba(124, 108, 255, 0.12);
    --accent-mid: rgba(124, 108, 255, 0.28);
    --accent-grad: linear-gradient(135deg, #8b7bff 0%, #5b8dff 100%);
    --success: #34d399;
    --danger: #f87171;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --font-display: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --r-sm: 9px;
    --r-md: 14px;
    --r-lg: 18px;
    --sidebar-w: 232px;
    --topbar-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
::selection { background: var(--accent-mid); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===================== LAYOUT SHELL ===================== */
.admin {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: var(--topbar-h) 1fr;
    grid-template-areas: "side top" "side main";
    min-height: 100vh;
}

/* ===================== SIDEBAR ===================== */
.side {
    grid-area: side;
    background: #05060c;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    gap: 6px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.side-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    color: #fff; padding: 6px 8px 18px;
}
.side-brand svg { color: var(--accent); }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 12px; border-radius: var(--r-sm);
    color: var(--text-muted); font-weight: 500; font-size: .94rem;
    transition: background .15s, color .15s;
    border: none; background: transparent; text-align: left; width: 100%;
}
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: #fff; }
.side-link.active svg { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-view-site {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px; border-radius: var(--r-sm);
    color: var(--text-dim); font-size: .86rem; border: 1px solid var(--border);
    transition: all .15s;
}
.side-view-site:hover { color: var(--text); border-color: var(--border-strong); }
.ui-lang { display: flex; gap: 3px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.ui-lang button {
    flex: 1; background: transparent; border: none; color: var(--text-muted);
    padding: 6px 0; border-radius: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .5px;
    transition: all .15s;
}
.ui-lang button:hover { color: var(--text); }
.ui-lang button.active { background: var(--accent-soft); color: var(--accent); }
.ui-lang-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); padding: 0 4px 6px; font-weight: 700; }

/* ===================== TOPBAR ===================== */
.top {
    grid-area: top;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0 26px;
    background: rgba(7,9,16,.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 30;
}
.top-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 600; font-size: .9rem; padding: 10px 18px;
    border-radius: var(--r-sm); border: 1px solid transparent;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(124,108,255,.8); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(124,108,255,.9); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-soft:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn-sm { padding: 8px 13px; font-size: .84rem; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger-ghost:hover { background: rgba(248,113,113,.12); }

/* ===================== MAIN AREA ===================== */
.main { grid-area: main; padding: 28px; overflow-x: hidden; }
.view { display: none; }
.view.active { display: block; }

/* ===================== LIST VIEW ===================== */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.list-count { color: var(--text-muted); font-size: .92rem; }
.list-count b { color: var(--text); font-weight: 700; }
.search-box { position: relative; flex: 1; max-width: 340px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-dim); }
.search-box input {
    width: 100%; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 11px 14px 11px 38px; color: var(--text);
    font-family: inherit; font-size: .92rem;
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.posts-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.posts-table thead th {
    text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-dim); font-weight: 700; padding: 15px 18px; border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.posts-table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: middle; }
.posts-table tbody tr:last-child td { border-bottom: none; }
.posts-table tbody tr { transition: background .12s; }
.posts-table tbody tr:hover { background: var(--surface-2); }
.post-title-cell { display: flex; align-items: center; gap: 13px; }
.post-thumb { width: 52px; height: 38px; border-radius: 7px; object-fit: cover; flex-shrink: 0; background: var(--surface-3); border: 1px solid var(--border); }
.post-thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.post-thumb.placeholder svg { width: 18px; height: 18px; }
.post-title-text { font-weight: 600; color: #fff; }
.post-title-text small { display: block; color: var(--text-dim); font-weight: 400; font-size: .8rem; margin-top: 2px; }
.lang-chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: var(--surface-3); color: var(--text-muted); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-badge.published { background: rgba(52,211,153,.13); color: var(--success); }
.status-badge.published::before { background: var(--success); }
.status-badge.draft { background: rgba(245,181,63,.13); color: #f5b53f; }
.status-badge.draft::before { background: #f5b53f; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.col-actions-th { text-align: right; }

.empty-state { text-align: center; padding: 90px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-md); }
.empty-state svg { width: 46px; height: 46px; color: var(--text-dim); margin-bottom: 18px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ===================== EDITOR VIEW ===================== */
.editor-grid { display: grid; grid-template-columns: 1fr 312px; gap: 26px; align-items: start; }
.editor-main { min-width: 0; }

.title-input {
    width: 100%; background: transparent; border: none;
    font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: #fff;
    letter-spacing: -.5px; padding: 6px 2px; margin-bottom: 8px;
}
.title-input::placeholder { color: var(--text-dim); }
.title-input:focus { outline: none; }
.slug-line { font-size: .82rem; color: var(--text-dim); margin-bottom: 18px; padding: 0 2px; }
.slug-line span { color: var(--text-muted); }

/* Toolbar */
.toolbar {
    display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 7px 9px;
    position: sticky; top: var(--topbar-h); z-index: 20;
}
.tb-btn {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: 7px; color: var(--text-muted);
    transition: background .12s, color .12s;
}
.tb-btn svg { width: 17px; height: 17px; }
.tb-btn:hover { background: var(--surface-3); color: var(--text); }
.tb-btn.active { background: var(--accent-soft); color: var(--accent); }
.tb-sep { width: 1px; height: 22px; background: var(--border); margin: 0 5px; }
.tb-select {
    background: transparent; border: none; color: var(--text-muted);
    font-family: inherit; font-size: .86rem; font-weight: 600; padding: 6px 8px; border-radius: 7px;
}
.tb-select:hover { background: var(--surface-3); color: var(--text); }
.tb-select:focus { outline: none; }
.tb-select option { background: var(--surface-2); color: var(--text); }

/* Content editable */
.content-editor {
    min-height: 460px;
    background: var(--surface); border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    padding: 28px 30px; color: var(--text);
    font-size: 1.05rem; line-height: 1.75;
    outline: none;
}
.content-editor:empty::before { content: attr(data-placeholder); color: var(--text-dim); }
.content-editor:focus { border-color: var(--accent-mid); box-shadow: 0 0 0 3px var(--accent-soft); }
.content-editor h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: #fff; margin: 26px 0 12px; letter-spacing: -.4px; }
.content-editor h3 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: #fff; margin: 22px 0 10px; }
.content-editor p { margin: 0 0 16px; }
.content-editor a { color: var(--accent-2); text-decoration: underline; }
.content-editor ul, .content-editor ol { margin: 0 0 16px; padding-left: 26px; }
.content-editor li { margin-bottom: 7px; }
.content-editor blockquote {
    margin: 18px 0; padding: 12px 22px; border-left: 3px solid var(--accent);
    background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0;
    color: var(--text-muted); font-style: italic;
}
.content-editor img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin: 12px 0; display: block; }
.content-editor figure { margin: 18px 0; }
.content-editor figure img { margin: 0; }
.content-editor figcaption { font-size: .85rem; color: var(--text-dim); text-align: center; margin-top: 8px; }

/* ===================== EDITOR SIDEBAR PANELS ===================== */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 18px; overflow: hidden; }
.panel-head { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: #fff; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.panel-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    padding: 10px 12px; color: var(--text); font-family: inherit; font-size: .9rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398a2b6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

/* Featured image dropzone */
.featured-zone {
    border: 1.5px dashed var(--border-strong); border-radius: var(--r-sm);
    padding: 26px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
    color: var(--text-dim); font-size: .85rem;
}
.featured-zone:hover, .featured-zone.dragover { border-color: var(--accent); background: var(--accent-soft); color: var(--text-muted); }
.featured-zone svg { width: 26px; height: 26px; margin-bottom: 10px; color: var(--text-dim); }
.featured-preview { position: relative; border-radius: var(--r-sm); overflow: hidden; }
.featured-preview img { width: 100%; display: block; border-radius: var(--r-sm); }
.featured-preview-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ===================== TOAST ===================== */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--surface-3); border: 1px solid var(--border-strong); color: #fff;
    padding: 13px 22px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600;
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); z-index: 200; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; display: flex; align-items: center; gap: 9px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--success); }

/* ===================== PREVIEW MODAL ===================== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(3,4,8,.78); backdrop-filter: blur(4px); }
.modal-panel {
    position: absolute; top: 4vh; left: 50%; transform: translateX(-50%);
    width: min(760px, 92vw); max-height: 92vh; overflow-y: auto;
    background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-alt); z-index: 2; }
.modal-bar span { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); font-weight: 700; }
.modal-close { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: #fff; background: var(--surface-3); }

.article { padding: 40px 48px 56px; }
.article-tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 5px; margin-bottom: 18px; }
.article h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -1px; margin-bottom: 14px; text-wrap: balance; }
.article-meta { display: flex; align-items: center; gap: 14px; color: var(--text-dim); font-size: .88rem; margin-bottom: 26px; }
.article-meta .lang-chip { background: var(--surface-3); }
.article-featured { width: 100%; border-radius: var(--r-md); margin-bottom: 28px; display: block; }
.article-excerpt { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.article-body { font-size: 1.06rem; line-height: 1.78; color: var(--text); }
.article-body h2 { font-family: var(--font-display); font-size: 1.7rem; color: #fff; margin: 28px 0 12px; }
.article-body h3 { font-family: var(--font-display); font-size: 1.32rem; color: #fff; margin: 22px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body a { color: var(--accent-2); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 26px; }
.article-body li { margin-bottom: 7px; }
.article-body blockquote { margin: 18px 0; padding: 12px 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-muted); font-style: italic; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin: 14px 0; display: block; }
.article-body figcaption { font-size: .85rem; color: var(--text-dim); text-align: center; margin-top: 8px; }

/* ===================== RESPONSIVE ===================== */
.mobile-only { display: none; }
@media (max-width: 1040px) {
    .editor-grid { grid-template-columns: 1fr; }
    .editor-sidebar { order: -1; }
}
@media (max-width: 860px) {
    .admin { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
    .side {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 248px;
        transform: translateX(-100%); transition: transform .25s ease; height: 100vh;
    }
    .admin.nav-open .side { transform: translateX(0); }
    .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
    .admin.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
    .mobile-only { display: inline-flex; }
    .hamburger { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); align-items: center; justify-content: center; }
}
@media (max-width: 620px) {
    .main { padding: 18px; }
    .top { padding: 0 16px; }
    .top-title { font-size: 1rem; }
    .btn .btn-label { display: none; }
    .btn { padding: 10px 12px; }
    .btn-sm .btn-label { display: inline; }
    .title-input { font-size: 1.6rem; }
    .posts-table thead { display: none; }
    .posts-table, .posts-table tbody, .posts-table tr, .posts-table td { display: block; width: 100%; }
    .posts-table { border: none; background: transparent; }
    .posts-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; padding: 6px 4px; }
    .posts-table td { border: none !important; padding: 8px 14px; }
    .row-actions { justify-content: flex-start; }
    .article { padding: 26px 20px 36px; }
    .article h1 { font-size: 1.8rem; }
    .modal-panel { top: 0; width: 100vw; max-height: 100vh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===================== LOGIN GATE ===================== */
.login-gate {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: radial-gradient(ellipse 80% 70% at 50% 20%, rgba(124,108,255,0.14), transparent 60%), var(--bg);
}
.login-gate.hidden { display: none; }
.login-card {
    width: 100%; max-width: 400px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--r-lg); padding: 38px 34px;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
}
.login-brand {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff;
    margin-bottom: 8px;
}
.login-brand svg { color: var(--accent); }
.login-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 26px; line-height: 1.5; }
.login-label { display: block; font-size: .84rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
#login-pwd {
    width: 100%; background: var(--bg); border: 1px solid var(--border-strong);
    border-radius: var(--r-sm); padding: 13px 15px; color: var(--text);
    font-family: inherit; font-size: 1rem; margin-bottom: 16px;
}
#login-pwd:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-error { color: var(--danger); font-size: .86rem; margin: -6px 0 14px; font-weight: 600; }
.login-hint { margin-top: 20px; font-size: .78rem; color: var(--text-dim); line-height: 1.5; text-align: center; }

/* ===================== SIDE BADGE / LEADS / SETTINGS ===================== */
.side-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: var(--accent); color: #fff;
    font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.lead-msg { max-width: 340px; color: var(--text-muted); font-size: .88rem; line-height: 1.45; }
.lead-contact a { color: var(--accent-2); }
.lead-contact a:hover { color: #8fbcff; }
.settings-wrap { max-width: 620px; }
.settings-desc { color: var(--text-muted); font-size: .96rem; line-height: 1.6; margin-bottom: 8px; }
.settings-note { color: var(--text-dim); font-size: .84rem; line-height: 1.5; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm); font-size: .94rem; font-weight: 600; color: var(--text); cursor: pointer; }
.switch { position: relative; display: inline-block; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { display: block; width: 46px; height: 26px; border-radius: 20px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .2s; position: relative; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.pe-plan { margin-bottom: 16px; }
.pe-feat { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.pe-feat input { flex: 1; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 9px 12px; color: var(--text); font-family: inherit; font-size: .9rem; }
.pe-feat input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pe-feat-add { margin-top: 4px; }
