:root {
  --bg: #0b0c10;
  --panel: #111218;
  --panel-2: #151823;
  --text: #e7eef5;
  --muted: #aab6c5;
  --brand: #f36c21; /* SES orange */
  --accent: #1f6feb; /* link blue */
  --border: #2a2f3a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #0c0d13, #090a0f 60%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  margin-bottom: 16px;
}
.branding { display: flex; align-items: center; gap: 16px; }
.branding h1 { font-size: 22px; margin: 0; font-weight: 650; }
.ses-logo { height: 56px; width: auto; border-radius: 6px; background: #fff; padding: 6px; }
.subtitle { color: var(--muted); margin-top: 6px; }

.builder { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.form { background: var(--panel); border: 1px solid var(--border); padding: 16px; border-radius: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  outline: none;
  background: var(--panel-2);
  color: var(--text);
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(243,108,33,0.15); }

.actions { display: flex; gap: 10px; margin-top: 12px; }
button { cursor: pointer; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); color: #0b0c10; background: var(--brand); font-weight: 600; }
button.secondary { background: transparent; color: var(--text); }
button:hover { filter: brightness(1.05); }

.preview-panel { background: var(--panel); border: 1px solid var(--border); padding: 16px; border-radius: 12px; }
.preview-panel h2 { margin: 0 0 10px; font-size: 18px; }
.preview-panel h3 { margin: 16px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.signature-preview { background: #fff; padding: 14px; border-radius: 8px; color: #111; min-height: 120px; overflow: auto; }
.raw-html { width: 100%; background: #0a0b0f; color: #d9e2ee; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.hint { color: var(--muted); font-size: 12px; }

.footer { color: var(--muted); margin-top: 20px; font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

/* Inline-signature styles preview reset */
.signature-preview a { color: #1f6feb; text-decoration: none; }
.signature-preview a:hover { text-decoration: underline; }


