/* Amarilla AI — estilos base. Los colores de cada empresa llegan desde /marca/:slug/tema.css */
:root {
  --brand: #16171B;
  --brand-ink: #FFFFFF;
  --accent: #FACC15;
  --accent-ink: #16171B;
  --ink: #16171B;
  --muted: #5F6168;
  --bg: #F5F4F0;
  --card: #FFFFFF;
  --line: #E6E3DA;
  --soft: #F0EEE7;
  --ok: #1F7A4D;
  --ok-bg: #E4F4EA;
  --warn: #9A4A00;
  --warn-bg: #FFEBD6;
  --info: #1D4E9E;
  --info-bg: #E6EFFD;
  --danger: #A32020;
  --danger-bg: #FDE7E7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 20px rgba(20, 20, 30, .05);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Estructura con barra lateral ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex-shrink: 0; background: var(--brand); color: var(--brand-ink); display: flex; flex-direction: column; padding: 20px 14px; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.side-brand img.logo { max-height: 44px; max-width: 170px; object-fit: contain; }
.side-brand .logo-tile { background: #fff; border-radius: 12px; padding: 6px 10px; display: flex; align-items: center; }
.side-brand .name { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14px; color: inherit; opacity: .82; }
.side nav a:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
.side nav a.on { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.side nav a .count { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 12px; padding: 0 8px; }
.side nav a.on .count { background: var(--accent-ink); color: var(--accent); }
.side svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-foot { margin-top: auto; font-size: 12px; opacity: .7; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.side-foot .who { font-weight: 600; opacity: 1; font-size: 13px; }
.side-foot button { background: none; border: 1px solid rgba(255, 255, 255, .25); color: inherit; border-radius: 10px; padding: 8px 10px; font: inherit; cursor: pointer; text-align: left; }
.powered { display: flex; align-items: center; gap: 6px; }
.powered img { width: 18px; height: 18px; }
.main { flex: 1; min-width: 0; padding: 28px 32px 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.support-bar { background: var(--warn-bg); color: var(--warn); padding: 10px 32px; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.support-bar button { background: var(--warn); color: #fff; border: 0; border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .n { font-family: var(--display); font-size: 32px; font-weight: 700; }
.stat.hl { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stat.hl .muted { color: inherit; opacity: .8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; background: var(--brand); color: var(--brand-ink); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--muted); }
.pill.green { background: var(--ok-bg); color: var(--ok); }
.pill.blue { background: var(--info-bg); color: var(--info); }
.pill.amber, .pill.orange { background: var(--warn-bg); color: var(--warn); }
.pill.red { background: var(--danger-bg); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; font-family: var(--display); }
.avatar.brand { background: var(--accent); color: var(--accent-ink); }
.flash { background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; word-break: break-word; }
.alert { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.alert.err { background: var(--danger-bg); color: var(--danger); }
.alert.info { background: var(--info-bg); color: var(--info); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soft); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list a.item { display: flex; align-items: center; gap: 12px; flex: 1; text-decoration: none; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
meter { width: 90px; height: 8px; }

/* ---------- Formularios ---------- */
form.stack { gap: 14px; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid #D3CFC3; border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
input[type=color] { width: 52px; height: 44px; border: 1px solid #D3CFC3; border-radius: 12px; padding: 4px; background: #fff; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; }

/* ---------- Embudo ---------- */
.funnel { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 12px; min-width: 900px; }
.lane { background: var(--soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.lane-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; }
.lane a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.lane a strong { font-size: 14px; }

/* ---------- Bandeja ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.inbox.list-only { grid-template-columns: minmax(0, 720px); }
.threads { padding: 8px; max-height: calc(100vh - 140px); overflow: auto; }
.threads a { display: flex; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; align-items: center; }
.threads a:hover { background: var(--soft); }
.threads a.on { background: var(--soft); }
.threads .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 2px var(--brand); }
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); padding: 0; overflow: hidden; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bubbles { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bubble { max-width: 78%; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.bubble.out { align-self: flex-end; background: color-mix(in srgb, var(--accent) 22%, #fff); border-color: transparent; }
.bubble.out.human { background: color-mix(in srgb, var(--brand) 12%, #fff); }
.bubble .meta { display: flex; gap: 8px; justify-content: flex-end; font-size: 11px; color: var(--muted); margin-top: 4px; white-space: normal; }
.bubble .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bubble .opts span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.bubble.failed { border: 1px solid var(--danger); }
.bubble .err { color: var(--danger); font-size: 12px; margin-top: 4px; }
.composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { min-height: 44px; height: 44px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.timeline li { display: flex; gap: 10px; }
.timeline .mark { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 6px; flex-shrink: 0; }
.timeline .mark.on { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv div { background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.kv dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; font-size: 14px; word-break: break-word; }

/* ---------- Flujos ---------- */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.step.wait .num { background: var(--info-bg); color: var(--info); }
.step.ask .num { background: color-mix(in srgb, var(--accent) 30%, #fff); }
.step .type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.step .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Disponibilidad ---------- */
.days { display: flex; flex-direction: column; gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.day .ranges { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.day .range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }

/* ---------- Ingreso ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent), var(--bg); }
.auth .card { width: 100%; max-width: 420px; padding: 28px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-logo img { max-height: 90px; max-width: 260px; object-fit: contain; }
.auth h1 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.auth .powered { justify-content: center; margin-top: 18px; color: var(--muted); font-size: 12px; }

/* ---------- Portal del líder (móvil) ---------- */
.mobile { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 96px; }
.m-hero { background: var(--brand); color: var(--brand-ink); padding: 18px 18px 22px; border-radius: 0 0 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-top .logo-tile { background: #fff; border-radius: 10px; padding: 4px 8px; display: flex; }
.m-top img { max-height: 30px; max-width: 140px; object-fit: contain; }
.m-hero .avatar { background: var(--accent); color: var(--accent-ink); }
.m-hero .zones { display: flex; flex-wrap: wrap; gap: 6px; }
.m-hero .zones span { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-stats > div { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px; }
.m-stats .n { font-family: var(--display); font-weight: 700; font-size: 22px; }
.m-stats .l { font-size: 12px; opacity: .8; }
.m-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.m-section { display: flex; flex-direction: column; gap: 10px; }
.next-visit { background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.next-visit strong { font-family: var(--display); font-size: 19px; }
.badges { display: flex; gap: 10px; }
.badge { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 700; }
.badge svg { width: 26px; height: 26px; }
.badge.locked { background: var(--soft); border-style: dashed; color: var(--muted); }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(448px, calc(100% - 32px)); background: var(--brand); border-radius: 22px; padding: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.tabbar a, .tabbar button { min-height: 52px; border-radius: 16px; color: var(--brand-ink); opacity: .8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
.tabbar a.on { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.tabbar svg { width: 20px; height: 20px; }
.m-page-head { padding: 18px 16px 0; display: flex; align-items: center; gap: 12px; }
.m-page-head .back { width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }

@media (max-width: 1180px) {
  .inbox { grid-template-columns: 280px minmax(0, 1fr); }
  .inbox .aside-card { display: none; }
}
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; padding: 12px; gap: 10px; }
  .side nav { flex-direction: row; overflow-x: auto; }
  .side nav a { white-space: nowrap; }
  .side-foot { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .main { padding: 20px 16px 40px; }
  .grid.two { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.thread-open .threads-card { display: none; }
  .chat { height: 70vh; }
  .support-bar { padding: 10px 16px; }
}
.minw0 { min-width: 0; }
.block { display: block; }
.stack.tight { gap: 4px; }
.tabbar form { display: flex; }
.tabbar form button { flex: 1; }
.p-icon svg, p svg { width: 16px; height: 16px; vertical-align: -3px; }
.avatar svg { width: 18px; height: 18px; }
.notes-body { white-space: pre-line; }

.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; line-height: 1.6; }
.legal h1 { margin: 8px 0 4px; }
.legal h2 { font-size: 1.1rem; margin-top: 28px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal-links { margin-top: 40px; font-size: .9rem; }

.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line, #e5e7eb); }
.thumb.file { display: grid; place-items: center; font-size: .75rem; font-weight: 600; color: var(--muted, #6b7280); }
.attach { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.attach select { flex: 1; min-width: 160px; }

/* ---------- Editor visual de flujos ---------- */
.main-flush { padding: 0; display: flex; flex-direction: column; min-height: 100vh; }
.main-flush > .flash { margin: 12px 16px 0; }
.fe { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100vh; }
.fe-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fe-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 8px; min-width: 200px; }
.fe-name:hover, .fe-name:focus { border-color: var(--line); background: var(--soft); }
.fe-trigger { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 280px; }
.fe-trigger input[type=text] { flex: 1; padding: 6px 10px; }
.fe-status { min-width: 140px; text-align: right; }
.fe-body { display: grid; grid-template-columns: 200px 1fr 320px; flex: 1; min-height: 0; }
.fe-palette { border-right: 1px solid var(--line); background: var(--card); padding: 14px 12px; overflow: auto; }
.fe-pal { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.fe-pal:hover { background: var(--soft); }
.fe-help { margin-top: 14px; }
.fe-canvas-wrap { position: relative; overflow: auto; background: var(--bg); background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); background-size: 20px 20px; }
.fe-canvas { position: relative; transform-origin: 0 0; }
.fe-edges { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fe-edge { fill: none; stroke: #8b8f99; stroke-width: 2; }
.fe-edge.temp { stroke: var(--info); stroke-dasharray: 6 5; }
.fe-edge-end { fill: #8b8f99; }
.fe-node { position: absolute; width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); cursor: grab; user-select: none; touch-action: none; }
.fe-node:active { cursor: grabbing; }
.fe-node.sel { outline: 3px solid var(--info); outline-offset: 1px; }
.fe-node.first { border-top-width: 4px; }
.fe-node-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px 4px; font-weight: 600; font-size: .85rem; }
.fe-node-body { padding: 0 12px 8px; font-size: .78rem; color: var(--muted); white-space: pre-line; max-height: 4.8em; overflow: hidden; }
.fe-ports { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fe-port { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px 5px 12px; font: inherit; font-size: .74rem; background: none; border: 0; border-top: 1px dashed var(--line); cursor: crosshair; text-align: left; color: var(--ink); }
.fe-port:first-child { border-top: 0; }
.fe-port.muted { color: var(--muted); }
.fe-port-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid #8b8f99; flex: none; }
.fe-port:hover .fe-port-dot { background: var(--info); border-color: var(--info); }
.fe-start { width: 170px; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.fe-start .fe-node-body { color: rgba(255,255,255,.75); }
.fe-start .fe-port { color: var(--brand-ink); }
.fe-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa0a6; flex: none; }
.c-violet .fe-dot { background: #7C3AED; } .c-violet.fe-node.first { border-top-color: #7C3AED; }
.c-blue .fe-dot { background: #2563EB; } .c-green .fe-dot { background: #16A34A; } .c-pink .fe-dot { background: #DB2777; }
.c-amber .fe-dot { background: #D97706; } .c-red .fe-dot { background: #DC2626; } .c-teal .fe-dot { background: #0D9488; }
.c-dark .fe-dot { background: #16171B; } .c-gray .fe-dot { background: #6B7280; }
.fe-node.first { border-top-color: var(--accent); }
.fe-zoom { position: sticky; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; margin: 12px; float: left; z-index: 3; }
.fe-zoom .btn { background: var(--card); }
.fe-inspector { border-left: 1px solid var(--line); background: var(--card); padding: 16px; overflow: auto; }
.fe-field { margin-bottom: 12px; }
.fe-field label, .fe-field .label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.fe-field input, .fe-field select, .fe-field textarea { width: 100%; }
.fe-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fe-list { display: flex; flex-direction: column; gap: 6px; }
.fe-list-row { display: flex; gap: 6px; align-items: flex-start; }
.fe-list-row > :first-child { flex: 1; }
.fe-inline { display: flex; gap: 6px; } .fe-inline select { width: 46%; }
.fe-stack { display: flex; flex-direction: column; gap: 4px; }
.fe-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.btn.danger { color: var(--danger); }
.fe-empty p { margin: 0 0 8px; }
.fe-mobile { display: none; margin: 16px; }
@media (max-width: 900px) {
  .fe-body, .fe-top .fe-trigger, #fe-save { display: none; }
  .fe-mobile { display: block; }
}
.fe-top input[type=text] { width: auto; }
.fe-top .fe-name { flex: 0 1 280px; }
.fe-top .fe-trigger input[type=text] { flex: 1; min-width: 160px; }
.fe-top .btn svg { width: 18px; height: 18px; }
.fe-top .check { white-space: nowrap; margin: 0; }
.nowrap { white-space: nowrap; }
.fe-adv { margin: 8px 0 4px; } .fe-adv summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
