:root { --px-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --px-ink: #192e25; --px-muted: #55645d; --px-accent: #176449; --px-line: #d8e0da; }
body { margin: 0; font: 15px/1.55 var(--px-font); color: var(--px-ink); background: #f5f7f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { max-width: 1180px; margin: 0 auto; padding: 36px 24px 64px; }
h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1.2px; line-height: 1.1; margin: 6px 0 14px; }
h2 { font-size: 23px; line-height: 1.25; margin: 0 0 8px; }
p { margin: 8px 0 16px; } a { color: var(--px-accent); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; margin: 0; }
.campaign-heading, .section-heading { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.card { border: 1px solid var(--px-line); border-radius: 12px; background: white; padding: 25px; margin-top: 24px; }
.card > p, .section-heading p, .hint { color: var(--px-muted); }
.hint { font-size: 13px; }
.workspace-bar, .form-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; min-width: 0; }
.form-row > label { flex: 1 1 190px; }
.workspace-bar label { min-width: 230px; }
input, select, textarea, button, .button { font: inherit; border: 1px solid var(--px-line); border-radius: 7px; color: var(--px-ink); background: white; min-height: 44px; padding: 10px 12px; }
input, select, textarea { width: 100%; font-weight: 400; font-size: 14px; }
textarea { resize: vertical; } button, .button { cursor: pointer; font-weight: 600; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
button:hover:not(:disabled), .button:hover { background: #edf4ed; }
.primary { background: var(--px-accent); border-color: var(--px-accent); color: white; }
.primary:hover:not(:disabled) { background: #104a39; }
:focus-visible { outline: 3px solid #deae42; outline-offset: 3px; }
#status { min-height: 25px; padding: 12px 15px; background: #eaf1e9; border-radius: 7px; }
#status[data-error="true"], #preview-errors { color: #842f23; }
.template-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.template-list li { border: 1px solid var(--px-line); border-radius: 7px; padding: 12px 16px; }
.template-list span { display: block; color: var(--px-muted); font-size: 12px; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--px-line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { background: #f5f7f4; color: var(--px-muted); font-size: 12px; } th, td { padding: 12px; border-bottom: 1px solid var(--px-line); vertical-align: top; overflow-wrap: anywhere; max-width: 370px; }
tr:last-child td { border-bottom: 0; } td input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; }
td small { display: block; color: var(--px-muted); }
details { margin-top: 22px; border-top: 1px solid var(--px-line); padding-top: 16px; }
summary { font-weight: 650; font-size: 16px; cursor: pointer; padding: 8px 0; } details > p { margin-top: 12px; }
#csv { font-family: ui-monospace, monospace; } #preview { margin-top: 12px; }
#available-panel { margin: 16px 0; padding: 16px; background: #f5f7f4; border-radius: 7px; }
#stage-selected { margin-top: 12px; }
.utm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
#utm-output { margin-top: 20px; }
@media (max-width: 700px) { main { padding: 24px 16px 48px; } .card { padding: 20px 16px; } .campaign-heading, .section-heading { flex-direction: column; align-items: start; } .utm-fields { grid-template-columns: 1fr; } .workspace-bar label { width: 100%; } th, td { min-width: 100px; } th:first-child, td:first-child { min-width: 65px; } .form-row > button { flex: 1 1 auto; } }
