/* ==========================================================================
   RAVEN — Design System
   Preto profundo + vermelho de sangue + cinza-chumbo. Sem gradiente roxo de IA.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --black:        #08080a;
    --bg:           #0c0c0e;
    --panel:        #121214;
    --panel-2:      #18181b;
    --panel-3:      #1e1e22;
    --border:       #26262b;
    --border-soft:  #1c1c20;

    --red:          #e11d34;
    --red-bright:   #ff3050;
    --red-dim:      #7a1020;
    --red-glow:     rgba(225, 29, 52, 0.35);

    --text:         #f2f1f3;
    --text-dim:     #a6a5ac;
    --text-faint:   #6b6a72;

    --green:        #23c775;
    --amber:        #f2a93b;

    --radius-sm:    8px;
    --radius:       12px;
    --radius-lg:    18px;

    --shadow-panel: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-glow:  0 0 0 1px rgba(225,29,52,0.15), 0 10px 40px -10px rgba(225,29,52,0.35);

    --font-head: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(225,29,52,0.10), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(225,29,52,0.06), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ---------- App Shell ---------- */
.app-shell {
    display: grid;
    grid-template-columns: 76px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #0a0a0c 0%, #0d0d10 100%);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0;
    gap: 6px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--red-bright), var(--red-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    margin-bottom: 22px;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    width: 100%;
    align-items: center;
}

.nav-item {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    position: relative;
    transition: color .15s ease, background .15s ease;
}
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.nav-item:hover { color: var(--text); background: var(--panel-2); }
.nav-item.active { color: #fff; background: var(--panel-2); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    width: 3px;
    height: 22px;
    border-radius: 3px;
    background: var(--red-bright);
    box-shadow: 0 0 10px var(--red-glow);
}
.nav-item .tooltip {
    position: absolute;
    left: 58px;
    background: var(--panel-3);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-4px);
    transition: .12s ease;
    z-index: 40;
}
.nav-item:hover .tooltip { opacity: 1; transform: translateX(0); }

.sidebar__footer { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------- Main ---------- */
.main { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.topbar__greeting h1 { font-size: 20px; }
.topbar__greeting span { color: var(--text-faint); font-size: 12.5px; letter-spacing: 0.04em; }

.topbar__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    padding: 8px 16px;
    border-radius: 999px;
}
.topbar__stat .dot {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(145deg, var(--red-bright), var(--red-dim));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 700;
}

.content { padding: 28px 32px 60px; flex: 1; }

/* ---------- Cards / Stats ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-panel);
}

.stat-card { display: flex; flex-direction: column; gap: 14px; }
.stat-card__icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); color: var(--red-bright);
}
.stat-card__icon svg { width: 18px; height: 18px; }
.stat-card__label { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card__value { font-family: var(--font-head); font-size: 26px; font-weight: 700; }

/* ---------- Section header ---------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 32px 0 18px;
}
.section-head h2 { font-size: 22px; }
.section-head p { color: var(--text-faint); font-size: 13px; margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 600;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    transition: .15s ease;
}
.btn:hover { background: var(--panel-3); border-color: #333338; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: linear-gradient(145deg, var(--red-bright), var(--red));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px -6px var(--red-glow);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost { background: transparent; border-color: var(--border-soft); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--panel-2); }

.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: transparent; border-color: var(--border-soft); color: #ff5c72; }
.btn-danger:hover { background: rgba(225,29,52,0.1); border-color: var(--red-dim); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.field .hint { font-size: 11.5px; color: var(--text-faint); }
.input, textarea.input, select.input {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text);
    font-size: 14px;
    width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, textarea.input:focus, select.input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}
.input::placeholder { color: var(--text-faint); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge-online { background: rgba(35,199,117,0.12); color: var(--green); }
.badge-online::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--green); }
.badge-offline { background: rgba(255,255,255,0.06); color: var(--text-faint); }
.badge-offline::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--text-faint); }

/* ---------- Bot cards ---------- */
.bot-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; flex-direction: column; gap: 16px;
    transition: border-color .15s ease, transform .15s ease;
}
.bot-card:hover { border-color: #333338; transform: translateY(-2px); }
.bot-card__head { display: flex; align-items: center; gap: 12px; }
.bot-card__avatar {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--panel-2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; color: var(--red-bright);
    overflow: hidden; flex-shrink: 0;
}
.bot-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bot-card__name { font-weight: 600; font-size: 15px; }
.bot-card__username { color: var(--text-faint); font-size: 12.5px; }
.bot-card__stats { display: flex; gap: 10px; }
.bot-card__stat { flex:1; background: var(--panel-2); border-radius: var(--radius-sm); padding: 10px; text-align:center; }
.bot-card__stat b { display:block; font-size: 17px; font-family: var(--font-head); }
.bot-card__stat span { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.bot-card__actions { display: flex; gap: 8px; }
.bot-card__actions .btn { flex: 1; }

.card-add {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 210px; color: var(--text-faint);
    transition: .15s ease;
}
.card-add:hover { border-color: var(--red); color: var(--red-bright); background: rgba(225,29,52,0.04); }
.card-add .plus {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed currentColor;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(225,29,52,0.14), transparent 60%),
        var(--black);
}
.login-box {
    width: 380px; background: var(--panel);
    border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
    padding: 36px 32px; box-shadow: var(--shadow-panel);
}
.login-box .sidebar__logo { margin: 0 auto 20px; }
.login-box h1 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.login-box .sub { text-align: center; color: var(--text-faint); font-size: 13px; margin-bottom: 26px; }
.error-box {
    background: rgba(225,29,52,0.1); border: 1px solid var(--red-dim);
    color: #ff8a97; padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 18px;
}

/* ---------- Chat ao vivo ---------- */
.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 74px);
}
.chat-list { border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; overflow: hidden; }
.chat-list__search { padding: 16px; border-bottom: 1px solid var(--border-soft); }
.chat-list__bots { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; }
.chip {
    padding: 6px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap;
    background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--text-dim);
}
.chip.active { background: var(--red); border-color: transparent; color: #fff; }
.chat-list__items { flex: 1; overflow-y: auto; }

.chat-item {
    display: flex; gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer; transition: background .12s ease;
}
.chat-item:hover { background: var(--panel-2); }
.chat-item.active { background: var(--panel-2); border-left: 3px solid var(--red-bright); }
.chat-item__avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--panel-3); display:flex; align-items:center; justify-content:center;
    font-weight: 700; color: var(--red-bright); font-family: var(--font-head);
}
.chat-item__body { flex: 1; min-width: 0; }
.chat-item__top { display: flex; justify-content: space-between; gap: 8px; }
.chat-item__name { font-size: 13.5px; font-weight: 600; }
.chat-item__time { font-size: 11px; color: var(--text-faint); flex-shrink:0; }
.chat-item__preview {
    font-size: 12.5px; color: var(--text-faint); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.chat-item__unread {
    background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 999px; display:flex; align-items:center; justify-content:center;
    padding: 0 5px;
}

.chat-panel { display: flex; flex-direction: column; height: 100%; }
.chat-panel__head {
    display: flex; align-items: center; gap: 12px; padding: 14px 22px;
    border-bottom: 1px solid var(--border-soft);
}
.chat-panel__messages {
    flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(225,29,52,0.04), transparent 60%);
}
.msg { max-width: 62%; padding: 10px 14px; border-radius: 14px; font-size: 13.8px; line-height: 1.45; position: relative; }
.msg.in { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--border-soft); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: linear-gradient(145deg, var(--red-bright), var(--red)); color: #fff; border-bottom-right-radius: 4px; }
.msg .meta { display: block; font-size: 10px; opacity: .6; margin-top: 4px; text-align: right; }
.msg.out.bot-sent { background: var(--panel-2); color: var(--text); border: 1px solid var(--border-soft); }
.msg.out.bot-sent .meta { color: var(--text-faint); }
.msg-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .55; display:block; margin-bottom: 3px; }

.chat-panel__composer {
    display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border-soft);
}
.chat-panel__composer textarea {
    flex: 1; resize: none; height: 46px; padding-top: 12px;
}
.chat-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-faint); gap: 10px;
}

/* ---------- Gráfico de faturamento ---------- */
.revenue-card { position: relative; margin-top: 20px; margin-bottom: 8px; }
.revenue-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.revenue-card__head h3 { font-size: 15px; margin-bottom: 2px; }
.revenue-card__tooltip {
    font-size: 12.5px; color: var(--text); background: var(--panel-2);
    border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px;
    display: none;
}
.revenue-chart { position: relative; width: 100%; height: 260px; }
.revenue-svg { width: 100%; height: 100%; overflow: visible; cursor: crosshair; }
.revenue-grid { stroke: var(--border-soft); stroke-width: 1; }
.revenue-axis-label { fill: var(--text-faint); font-size: 10.5px; font-family: var(--font-body); }
.revenue-dot { fill: var(--bg); stroke: var(--red-bright); stroke-width: 2; opacity: 0; transition: opacity .1s ease; }
.revenue-dot.active { opacity: 1; }
.revenue-crosshair { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 3; }
.revenue-chart__empty {
    position: absolute; inset: 46px 16px 30px; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--text-faint); font-size: 13px; background: linear-gradient(180deg, transparent, var(--panel) 70%);
    pointer-events: none;
}
.revenue-chart__empty b { color: var(--text-dim); }

/* ---------- Table ---------- */
table.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-faint); padding: 10px 14px; border-bottom: 1px solid var(--border-soft);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.data-table tr:last-child td { border-bottom: none; }

/* ---------- Misc ---------- */
.empty-state { text-align:center; padding: 60px 20px; color: var(--text-faint); }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-box {
    width: 460px; max-width: 92vw; background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow-panel);
}
.modal-box__head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; }

/* ==========================================================================
   Editor de Fluxos (Automação)
   ========================================================================== */
.editor-shell { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.editor-topbar {
    height: 64px; flex-shrink: 0;
    display: flex; align-items: center; gap: 14px; padding: 0 20px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg);
}
.editor-topbar__name {
    background: transparent; border: 1px solid transparent; color: var(--text);
    font-family: var(--font-head); font-size: 16px; font-weight: 600;
    padding: 7px 10px; border-radius: var(--radius-sm); width: 240px;
}
.editor-topbar__name:hover, .editor-topbar__name:focus { background: var(--panel-2); border-color: var(--border); outline: none; }
.editor-topbar__status { color: var(--text-faint); font-size: 12px; margin-right: auto; }
.editor-topbar__status.dirty { color: var(--amber); }

.editor-body { flex: 1; display: flex; overflow: hidden; min-height: 0; }

.node-palette {
    width: 220px; flex-shrink: 0; border-right: 1px solid var(--border-soft);
    padding: 16px 14px; overflow-y: auto; background: var(--bg);
}
.node-palette h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 10px; }
.palette-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--panel); border: 1px solid var(--border-soft);
    margin-bottom: 8px; cursor: grab; font-size: 13px; user-select: none;
}
.palette-item:hover { border-color: var(--red-dim); background: var(--panel-2); }
.palette-item__icon {
    width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.palette-item svg { width: 14px; height: 14px; }

.canvas-wrap {
    flex: 1; position: relative; overflow: hidden; overflow: clip; cursor: grab;
    background-color: var(--bg);
    background-image: radial-gradient(circle, #232327 1px, transparent 1px);
    background-size: 22px 22px;
}
.canvas-wrap.panning { cursor: grabbing; }
.canvas-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-origin: 0 0; overflow: visible; }
.edges-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.edges-layer path { fill: none; stroke: #55555c; stroke-width: 2; pointer-events: stroke; }
.edges-layer path.selected { stroke: var(--red-bright); stroke-width: 2.5; }
.edges-layer path.temp { stroke: var(--red-bright); stroke-dasharray: 5 4; }

.flow-node {
    position: absolute; width: 210px;
    background: var(--panel-2); border: 1.5px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-panel);
    cursor: grab; user-select: none;
}
.flow-node.selected { border-color: var(--red-bright); box-shadow: 0 0 0 3px var(--red-glow); }
.flow-node__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.flow-node__icon { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.flow-node__icon svg { width: 13px; height: 13px; }
.flow-node__title { font-size: 12.5px; font-weight: 600; }
.flow-node__body { padding: 10px 12px; font-size: 12px; color: var(--text-dim); min-height: 18px; word-break: break-word; }
.flow-node__body.empty { color: var(--text-faint); font-style: italic; }

.flow-port {
    position: absolute; width: 14px; height: 14px; border-radius: 50%;
    background: var(--panel-3); border: 2px solid #55555c; right: -8px;
    top: 50%; transform: translateY(-50%);
    cursor: crosshair; transition: transform .1s ease;
}
.flow-port:hover { transform: translateY(-50%) scale(1.3); border-color: var(--red-bright); }
.flow-port--in { left: -8px; right: auto; }
.flow-port-label { position: absolute; font-size: 9.5px; color: var(--text-faint); right: 14px; left: 10px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateY(-50%); }

.flow-node--note { background: #2a2410; border-color: #4a3f14; }
.flow-node--note .flow-node__head { border-bottom-color: #4a3f14; }

.node-delete {
    position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--red); color: #fff; display: none; align-items: center; justify-content: center;
    font-size: 13px; line-height: 1; border: 2px solid var(--bg); cursor: pointer;
}
.flow-node:hover .node-delete { display: flex; }

.canvas-controls {
    position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 5;
}
.canvas-controls button {
    width: 34px; height: 34px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border-soft);
    color: var(--text); font-size: 16px; cursor: pointer;
}
.canvas-controls button:hover { background: var(--panel-3); }

.inspector {
    width: 300px; flex-shrink: 0; border-left: 1px solid var(--border-soft);
    padding: 18px; overflow-y: auto; background: var(--bg);
}
.palette-ghost {
    position: fixed; top: 0; left: 0; z-index: 200;
    transform: translate(-50%, -50%);
    background: var(--panel-3); border: 1.5px solid var(--red-bright);
    color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    pointer-events: none; opacity: 0.9; box-shadow: var(--shadow-panel);
}
.palette-ghost.over-canvas { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,199,117,0.2); }

.inspector__empty { color: var(--text-faint); font-size: 13px; text-align: center; margin-top: 60px; }
.option-row { display: flex; gap: 6px; margin-bottom: 8px; }
.option-row .input { flex: 1; }
.option-row .btn { padding: 8px; }
.option-row .btn svg { width: 13px; height: 13px; margin: 0; }
.inspector h4 { font-size: 13.5px; margin-bottom: 16px; }

@media (max-width: 960px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .chat-layout { grid-template-columns: 1fr; }
}
