/* Fer Marketing palette, matching fer.marketing */
:root {
  --ink: #f7f0df; --muted: #a9b1aa; --paper: #071010; --paper-2: #101a1c; --card: rgba(16, 26, 28, 0.86);
  --line: rgba(247, 240, 223, 0.14); --lime: #d7ff5f; --blue: #63c8e5; --rose: #f0d46a; --red: #ff8a7a; --radius: 10px;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); min-height: 100vh; font-size: 15px; line-height: 1.5;
  background: radial-gradient(circle at 12% 0%, rgba(99, 200, 229, 0.16), transparent 28rem),
              radial-gradient(circle at 90% 0%, rgba(215, 255, 95, 0.08), transparent 26rem), var(--paper); }
a { color: var(--blue); }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.86em; }
code { background: rgba(247, 240, 223, 0.07); padding: 1px 5px; border-radius: 4px; }
h1 { font-size: 1.7rem; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 0.85rem; }
body.app { display: grid; grid-template-columns: 248px 1fr; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; background: rgba(7, 16, 16, 0.7); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; } .brand small { color: var(--muted); font-size: 0.75rem; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.side nav a:hover { background: rgba(247, 240, 223, 0.06); }
.side nav a.on { background: var(--lime); color: #10120f; }
.who { margin-top: auto; display: flex; flex-direction: column; font-size: 0.85rem; } .who small { color: var(--muted); }
.main { padding: 28px 32px; max-width: 1200px; width: 100%; }
body.bare .main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
.top { margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.login { width: min(420px, 100%); text-align: center; } .login form { text-align: left; margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.row { display: flex; gap: 16px; align-items: center; } .between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 0.9rem; }
label.inline { flex-direction: row; align-items: center; gap: 10px; }
input, select, textarea { font: inherit; color: var(--ink); background: #0b1517; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
fieldset.seg { border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 18px; padding: 8px 12px; }
fieldset.seg legend { font-weight: 600; font-size: 0.9rem; padding: 0 4px; }
fieldset.seg label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.btn { font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 10px 18px; border: 1px solid var(--line); background: rgba(247, 240, 223, 0.06); color: var(--ink); text-decoration: none; display: inline-block; white-space: nowrap; }
.btn.primary { background: var(--lime); color: #10120f; border-color: var(--lime); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn.sm { padding: 4px 12px; font-size: 0.85rem; }
button.link { background: none; border: 0; color: var(--blue); padding: 0; cursor: pointer; font: inherit; text-align: left; margin-top: 6px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
td.clip { max-width: 360px; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(247, 240, 223, 0.1); }
.s-approved, .s-delivered, .s-read { background: rgba(215, 255, 95, 0.18); color: var(--lime); }
.s-pending, .s-accepted, .s-sent { background: rgba(240, 212, 106, 0.16); color: var(--rose); }
.s-rejected, .s-failed { background: rgba(255, 138, 122, 0.16); color: var(--red); }
pre.json { background: #050c0c; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; max-height: 420px; white-space: pre-wrap; overflow-wrap: anywhere; }
.err { color: var(--red); } .okmsg { color: var(--lime); } .warn { color: var(--rose); }
.status { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(99, 200, 229, 0.1); }
.status.ok { background: rgba(215, 255, 95, 0.12); } .status.err { background: rgba(255, 138, 122, 0.12); } .status.warn { background: rgba(240, 212, 106, 0.12); }
.empty { color: var(--muted); } .hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.mock { position: fixed; top: 0; left: 0; right: 0; z-index: 9; text-align: center; background: var(--rose); color: #10120f; font-weight: 700; font-size: 0.8rem; padding: 3px; }
.foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: var(--muted); }
.foot a { color: var(--muted); }
@media (max-width: 900px) { body.app { grid-template-columns: 1fr; } .side { position: static; height: auto; } .grid2 { grid-template-columns: 1fr; } .main { padding: 20px; } }
[hidden] { display: none !important; }
body:has(> .mock) { padding-top: 24px; } body:has(> .mock) .side { height: calc(100vh - 24px); top: 24px; }
.setup { border-color: rgba(240, 212, 106, 0.45); } .setup ul { margin: 6px 0 0; padding-left: 20px; }
