:root {
  --pf-petrol: #153f3c;
  --pf-petrol-2: #0d302e;
  --pf-gold: #d99a29;
  --pf-gold-soft: #f7e8c6;
  --pf-red: #6f1d1b;
  --pf-paper: #f5f3ed;
  --pf-white: #fff;
  --pf-ink: #172523;
  --pf-muted: #687572;
  --pf-line: #d8dedb;
  --pf-danger: #a13732;
  --pf-shadow: 0 16px 44px rgba(16, 45, 42, 0.11);
  --pf-radius: 8px;
  --pf-body: "Jost", sans-serif;
  --pf-display: "Playfair Display", serif;
  --pf-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--pf-paper); }
body { margin: 0; color: var(--pf-ink); font-family: var(--pf-body); letter-spacing: 0; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.pf-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.pf-kicker, .pf-eyebrow { margin: 0; color: var(--pf-gold); font: 600 11px/1.3 var(--pf-mono); text-transform: uppercase; }
.pf-eyebrow { color: var(--pf-muted); }
.pf-error { min-height: 20px; margin: 0; color: var(--pf-danger); font-size: 13px; font-weight: 600; }

.pf-button, .pf-icon-button {
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.pf-button { display: inline-flex; min-height: 42px; padding: 9px 16px; align-items: center; justify-content: center; gap: 8px; }
.pf-button:hover { transform: translateY(-1px); }
.pf-button-primary { color: white; background: var(--pf-petrol); }
.pf-button-primary:hover { background: var(--pf-petrol-2); }
.pf-button-secondary { color: var(--pf-petrol); border-color: #bac9c5; background: white; }
.pf-button-secondary:hover { border-color: var(--pf-petrol); }
.pf-button-danger { color: var(--pf-danger); border-color: #e5c2bf; background: #fff8f7; }
.pf-button-danger:hover { border-color: var(--pf-danger); }
.pf-button-dashed { width: 100%; color: var(--pf-petrol); border: 1px dashed #9bafaa; background: transparent; }
.pf-button-block { width: 100%; }
.pf-icon-button { display: inline-grid; width: 40px; height: 40px; padding: 0; place-items: center; color: var(--pf-petrol); border-color: var(--pf-line); background: white; font-size: 20px; }
.pf-icon-button:hover, .pf-icon-button.is-active { border-color: var(--pf-petrol); background: #edf3f1; }

.pf-field { display: grid; gap: 7px; min-width: 0; }
.pf-field > span { color: #3c4b48; font-size: 13px; font-weight: 700; }
.pf-field small { color: var(--pf-muted); font-size: 12px; }
.pf-field input, .pf-field textarea, .pf-field select, .pf-toolbar input, .pf-toolbar select, .pf-response-search input {
  width: 100%; min-width: 0; border: 1px solid #cbd4d1; border-radius: 6px; outline: none; color: var(--pf-ink); background: white;
}
.pf-field input, .pf-field select, .pf-toolbar input, .pf-toolbar select, .pf-response-search input { height: 44px; padding: 0 12px; }
.pf-field textarea { padding: 11px 12px; resize: vertical; }
.pf-field input:focus, .pf-field textarea:focus, .pf-field select:focus, .pf-toolbar input:focus, .pf-toolbar select:focus, .pf-response-search input:focus { border-color: var(--pf-petrol); box-shadow: 0 0 0 3px rgba(21, 63, 60, 0.12); }

/* Login */
.pf-login-view { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr); background: var(--pf-petrol); }
.pf-login-brand { display: flex; min-height: 100vh; padding: 54px clamp(32px, 6vw, 92px); flex-direction: column; justify-content: space-between; color: white; background: linear-gradient(135deg, rgba(111, 29, 27, 0.72), transparent 58%), var(--pf-petrol); }
.pf-brand-lockup { display: flex; max-width: 470px; align-items: center; gap: 25px; }
.pf-brand-lockup img:first-child { width: 250px; }
.pf-brand-lockup img:last-child { width: 170px; }
.pf-brand-lockup > span { width: 1px; height: 58px; background: rgba(255,255,255,.35); }
.pf-login-brand > div:last-child { max-width: 690px; }
.pf-login-brand h1 { max-width: 650px; margin: 18px 0; font: 700 clamp(46px, 5vw, 78px)/.98 var(--pf-display); }
.pf-login-brand p:last-child { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); font-size: 18px; }
.pf-login-panel { display: grid; min-height: 100vh; padding: 32px; place-items: center; background: var(--pf-paper); }
.pf-login-form { display: grid; width: min(100%, 420px); gap: 20px; }
.pf-login-form h2 { margin: -8px 0 12px; font: 700 36px/1.1 var(--pf-display); }

/* App shell */
.pf-app { display: grid; min-height: 100vh; grid-template-columns: 230px minmax(0, 1fr); }
.pf-sidebar { position: sticky; top: 0; display: flex; height: 100vh; padding: 26px 18px; flex-direction: column; color: white; background: var(--pf-petrol-2); }
.pf-sidebar-brand { display: flex; padding: 0 8px 28px; align-items: center; gap: 12px; color: white; text-decoration: none; }
.pf-sidebar-brand img { width: 128px; }
.pf-sidebar-brand span { padding-left: 11px; border-left: 1px solid rgba(255,255,255,.3); font: 600 10px var(--pf-mono); }
.pf-sidebar nav { display: grid; gap: 7px; }
.pf-nav-button { display: flex; width: 100%; min-height: 44px; padding: 0 12px; align-items: center; gap: 10px; color: rgba(255,255,255,.75); border: 0; border-radius: 6px; background: transparent; font-weight: 600; text-align: left; }
.pf-nav-button:hover, .pf-nav-button.is-active { color: white; background: rgba(255,255,255,.1); }
.pf-sidebar-footer { display: grid; margin-top: auto; gap: 5px; }
.pf-sidebar-footer a, .pf-sidebar-footer button { padding: 10px 12px; color: rgba(255,255,255,.68); border: 0; background: transparent; font-size: 13px; text-align: left; text-decoration: none; }
.pf-sidebar-footer a:hover, .pf-sidebar-footer button:hover { color: white; }
.pf-main { min-width: 0; background: var(--pf-paper); }
.pf-dashboard-view { width: min(100% - 64px, 1240px); margin: 0 auto; padding: 48px 0 80px; }
.pf-page-header, .pf-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pf-page-header h1 { margin: 5px 0 4px; font: 700 44px/1 var(--pf-display); }
.pf-page-header p:last-child { margin: 0; color: var(--pf-muted); }
.pf-metrics { display: grid; margin: 34px 0 24px; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--pf-line); border-radius: var(--pf-radius); background: white; }
.pf-metrics article { display: grid; min-height: 105px; padding: 20px 24px; align-content: center; border-right: 1px solid var(--pf-line); }
.pf-metrics article:last-child { border-right: 0; }
.pf-metrics span { color: var(--pf-muted); font-size: 12px; font-weight: 600; }
.pf-metrics strong { font: 700 32px/1.2 var(--pf-display); }
.pf-toolbar { display: grid; margin-bottom: 16px; grid-template-columns: minmax(220px, 1fr) 210px; gap: 12px; }
.pf-form-list { display: grid; overflow: hidden; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); background: white; }
.pf-form-row { display: grid; min-height: 92px; padding: 17px 20px; align-items: center; grid-template-columns: minmax(230px, 1fr) 130px 90px minmax(250px, auto); gap: 16px; border-bottom: 1px solid #e7ebe9; }
.pf-form-row:last-child { border-bottom: 0; }
.pf-form-row:hover { background: #fafbf9; }
.pf-form-name { min-width: 0; }
.pf-form-name h2 { overflow: hidden; margin: 0 0 5px; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.pf-form-name p { overflow: hidden; margin: 0; color: var(--pf-muted); font: 500 11px var(--pf-mono); text-overflow: ellipsis; white-space: nowrap; }
.pf-status { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 4px; color: #555f5c; background: #edf0ef; font: 600 10px var(--pf-mono); text-transform: uppercase; }
.pf-status-open { color: #14533d; background: #dff2e8; }
.pf-status-scheduled { color: #72520e; background: #faedc9; }
.pf-status-closed, .pf-status-full { color: #7a2925; background: #f7e1df; }
.pf-form-responses strong { display: block; font-size: 20px; }
.pf-form-responses span { color: var(--pf-muted); font-size: 11px; }
.pf-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.pf-empty { padding: 64px 24px; color: var(--pf-muted); text-align: center; }
.pf-empty strong { display: block; margin-bottom: 5px; color: var(--pf-ink); font-size: 18px; }

/* Editor */
.pf-editor-view { min-height: 100vh; }
.pf-editor-header { position: sticky; z-index: 20; top: 0; min-height: 86px; padding: 17px 30px; align-items: center; border-bottom: 1px solid var(--pf-line); background: rgba(255,255,255,.96); }
.pf-editor-identity { min-width: 0; margin-right: auto; }
.pf-editor-identity h1 { overflow: hidden; max-width: 520px; margin: 2px 0; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.pf-editor-identity > span { color: var(--pf-muted); font-size: 11px; }
.pf-editor-actions { display: flex; gap: 8px; }
.pf-tabs { position: sticky; z-index: 19; top: 86px; display: flex; height: 52px; padding: 0 30px; align-items: end; gap: 28px; border-bottom: 1px solid var(--pf-line); background: white; }
.pf-tabs button { height: 52px; padding: 0 2px; color: var(--pf-muted); border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 700; }
.pf-tabs button.is-active { color: var(--pf-petrol); border-bottom-color: var(--pf-petrol); }
.pf-tabs span { display: inline-grid; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 5px; place-items: center; border-radius: 10px; color: white; background: var(--pf-petrol); font-size: 10px; }
.pf-tab-panel { width: min(100% - 48px, 1180px); margin: 0 auto; padding: 32px 0 80px; }
.pf-builder-shell { display: grid; grid-template-columns: minmax(0, 780px) 250px; justify-content: center; gap: 24px; }
.pf-builder-canvas { min-width: 0; }
.pf-form-intro, .pf-section-editor, .pf-settings-section { border: 1px solid var(--pf-line); border-radius: var(--pf-radius); background: white; }
.pf-form-intro { display: grid; padding: 24px; gap: 18px; border-top: 5px solid var(--pf-gold); }
.pf-sections-editor { display: grid; margin: 18px 0; gap: 18px; }
.pf-section-editor { overflow: hidden; }
.pf-section-head { display: grid; padding: 18px 20px; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border-bottom: 1px solid var(--pf-line); background: #f8faf8; }
.pf-section-title-fields { display: grid; gap: 8px; }
.pf-section-title-fields input, .pf-section-title-fields textarea { width: 100%; padding: 5px 0; border: 0; border-bottom: 1px solid transparent; outline: 0; background: transparent; }
.pf-section-title-fields input { color: var(--pf-petrol); font-size: 18px; font-weight: 700; }
.pf-section-title-fields textarea { resize: none; color: var(--pf-muted); font-size: 13px; }
.pf-section-title-fields input:focus, .pf-section-title-fields textarea:focus { border-bottom-color: var(--pf-petrol); }
.pf-section-actions, .pf-question-actions { display: flex; align-items: center; gap: 5px; }
.pf-mini-button { display: inline-grid; width: 31px; height: 31px; padding: 0; place-items: center; border: 1px solid var(--pf-line); border-radius: 5px; color: var(--pf-petrol); background: white; }
.pf-mini-button:hover { border-color: var(--pf-petrol); }
.pf-question-list { display: grid; }
.pf-question-editor { display: grid; padding: 20px; gap: 16px; border-bottom: 1px solid #e8ecea; }
.pf-question-editor:last-child { border-bottom: 0; }
.pf-question-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; }
.pf-question-top input, .pf-question-top select, .pf-compact-input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #cbd4d1; border-radius: 5px; background: white; }
.pf-question-top input { font-weight: 700; }
.pf-question-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pf-required-toggle { display: flex; height: 40px; padding: 0 10px; align-items: center; gap: 7px; border: 1px solid var(--pf-line); border-radius: 5px; font-size: 12px; font-weight: 700; }
.pf-validation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pf-validation-grid label, .pf-rule-row label { display: grid; gap: 4px; color: var(--pf-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pf-options { display: grid; gap: 7px; }
.pf-option-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.pf-option-row > span { color: var(--pf-muted); text-align: center; }
.pf-question-footer { display: flex; padding-top: 4px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--pf-line); }
.pf-text-action { padding: 5px; color: var(--pf-petrol); border: 0; background: transparent; font-size: 12px; font-weight: 700; }
.pf-text-action:hover { text-decoration: underline; }
.pf-logic-panel, .pf-routing-panel { display: grid; padding: 13px; gap: 10px; border: 1px solid #dfe6e3; border-radius: 6px; background: #f8faf9; }
.pf-logic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-logic-head strong { font-size: 12px; }
.pf-logic-head select { height: 32px; border: 1px solid var(--pf-line); border-radius: 4px; background: white; font-size: 11px; }
.pf-rules { display: grid; gap: 7px; }
.pf-rule-row { display: grid; grid-template-columns: 1.2fr .9fr 1fr 32px; align-items: end; gap: 7px; }
.pf-rule-row select, .pf-rule-row input { width: 100%; height: 34px; min-width: 0; padding: 0 7px; border: 1px solid var(--pf-line); border-radius: 4px; background: white; font-size: 11px; }
.pf-routing-panel { margin: 0 20px 20px; }
.pf-add-question { width: calc(100% - 40px); margin: 14px 20px 20px; }
.pf-field-palette { position: sticky; top: 160px; height: fit-content; padding: 18px; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); background: white; }
.pf-palette-grid { display: grid; margin-top: 13px; grid-template-columns: 1fr 1fr; gap: 7px; }
.pf-palette-button { display: grid; min-height: 65px; padding: 8px; place-items: center; gap: 3px; color: #41504d; border: 1px solid var(--pf-line); border-radius: 5px; background: #fbfcfb; font-size: 10px; font-weight: 700; text-align: center; }
.pf-palette-button span { color: var(--pf-petrol); font-size: 17px; }
.pf-palette-button:hover { border-color: var(--pf-petrol); background: #edf4f2; }
.pf-palette-button:disabled, .pf-button:disabled, .pf-mini-button:disabled, .pf-text-action:disabled { cursor: not-allowed; opacity: .46; transform: none; }
.pf-field-palette > strong { display: block; overflow: hidden; margin-top: 5px; color: var(--pf-petrol); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.pf-field-palette > span { display: block; margin-top: 4px; color: var(--pf-muted); font-size: 12px; line-height: 1.35; }
.pf-section-editor { transition: border-color 160ms ease, box-shadow 160ms ease; }
.pf-section-editor.is-active { border-color: #a5b9b4; box-shadow: 0 0 0 3px rgba(21,63,60,.07); }
.pf-section-editor.is-active .pf-section-head { box-shadow: inset 4px 0 0 var(--pf-gold); }
.pf-section-add-menu { margin: 14px 20px 20px; }
.pf-section-add-menu > summary { width: 100%; list-style: none; }
.pf-section-add-menu > summary::-webkit-details-marker { display: none; }
.pf-section-add-menu[open] > summary { border-color: var(--pf-petrol); background: #edf4f2; }
.pf-section-type-grid { display: grid; margin-top: 8px; padding: 10px; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; border: 1px solid var(--pf-line); border-radius: 6px; background: #f7f9f7; }
.pf-type-choice { display: grid; min-height: 64px; padding: 8px 6px; place-items: center; gap: 3px; color: #41504d; border: 1px solid var(--pf-line); border-radius: 5px; background: white; text-align: center; }
.pf-type-choice:hover { color: var(--pf-petrol); border-color: var(--pf-petrol); background: #edf4f2; }
.pf-type-choice span { color: var(--pf-gold); font-size: 17px; font-weight: 700; }
.pf-type-choice strong { font-size: 10px; line-height: 1.2; }

/* Settings and responses */
.pf-settings-grid { display: grid; max-width: 900px; margin: 0 auto; gap: 18px; }
.pf-settings-section { display: grid; padding: 24px; gap: 17px; }
.pf-settings-section h2, .pf-responses-head h2 { margin: 3px 0 0; font: 700 25px/1.1 var(--pf-display); }
.pf-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-slug-field { display: flex; overflow: hidden; min-width: 0; border: 1px solid #cbd4d1; border-radius: 6px; background: #f5f7f6; }
.pf-slug-field:focus-within { border-color: var(--pf-petrol); box-shadow: 0 0 0 3px rgba(21,63,60,.12); }
.pf-slug-field span { display: flex; padding: 0 0 0 12px; align-items: center; color: var(--pf-muted); font: 500 12px var(--pf-mono); }
.pf-slug-field input { min-width: 100px; border: 0; box-shadow: none !important; }
.pf-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-responses-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pf-responses-head p:last-child { margin: 7px 0 0; color: var(--pf-muted); }
.pf-response-search { display: block; margin: 22px 0 12px; }
.pf-responses-list { display: grid; overflow: hidden; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); background: white; }
.pf-response-row { display: grid; min-height: 78px; padding: 14px 18px; align-items: center; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 14px; border: 0; border-bottom: 1px solid #e7ebe9; background: white; text-align: left; }
.pf-response-row:last-child { border-bottom: 0; }
.pf-response-row:hover { background: #f8faf9; }
.pf-response-row strong { font: 600 12px var(--pf-mono); }
.pf-response-summary { overflow: hidden; color: #40504d; text-overflow: ellipsis; white-space: nowrap; }
.pf-response-row time { color: var(--pf-muted); font-size: 12px; text-align: right; }

/* Dialogs and preview */
.pf-dialog { width: min(100% - 28px, 560px); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: var(--pf-radius); box-shadow: 0 28px 90px rgba(10,31,29,.3); }
.pf-dialog::backdrop { background: rgba(7, 28, 26, .68); backdrop-filter: blur(3px); }
.pf-dialog > form, .pf-dialog > header { display: grid; padding: 24px; gap: 18px; }
.pf-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pf-dialog h2 { margin: 4px 0 0; font: 700 27px/1.1 var(--pf-display); }
.pf-dialog footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pf-dialog footer > span { flex: 1; }
.pf-preview-dialog { width: min(100% - 24px, 1100px); }
.pf-preview-dialog > header { padding-bottom: 16px; border-bottom: 1px solid var(--pf-line); }
.pf-preview-actions { display: flex; gap: 7px; }
.pf-preview-frame { width: calc(100% - 48px); min-height: 520px; margin: 24px; padding: 34px; overflow: auto; border-radius: 6px; background: #ebe8df; transition: width 180ms ease; }
.pf-preview-frame.is-mobile { width: min(calc(100% - 48px), 390px); margin-inline: auto; }
.pf-preview-surface { width: min(100%, 680px); margin: 0 auto; padding: 30px; border-top: 6px solid var(--pf-gold); border-radius: 6px; background: white; box-shadow: var(--pf-shadow); }
.pf-preview-surface h1 { margin: 0 0 8px; font: 700 36px/1.05 var(--pf-display); }
.pf-preview-surface > p { color: var(--pf-muted); }
.pf-preview-section { padding: 24px 0; border-top: 1px solid var(--pf-line); }
.pf-preview-section h2 { margin: 0 0 5px; font-size: 20px; }
.pf-preview-question { display: grid; margin-top: 18px; gap: 7px; }
.pf-preview-question > span { font-weight: 700; }
.pf-preview-question > span em { color: var(--pf-danger); font-style: normal; }
.pf-preview-control { min-height: 42px; padding: 10px; border: 1px solid var(--pf-line); border-radius: 5px; color: #87908e; }
.pf-response-dialog { width: min(100% - 28px, 720px); }
.pf-response-fields { display: grid; max-height: 58vh; padding: 0 2px; overflow: auto; gap: 16px; }
.pf-response-choice { display: grid; gap: 7px; }
.pf-response-choice label { display: flex; align-items: center; gap: 8px; }
.pf-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(380px, calc(100% - 48px)); padding: 13px 17px; border-radius: 6px; color: white; background: var(--pf-petrol); box-shadow: var(--pf-shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.pf-toast.is-visible { opacity: 1; transform: translateY(0); }
.pf-publish-content { display: grid; padding: 24px; gap: 18px; }
.pf-publish-content > header { padding: 0; }
.pf-publish-content > p { margin: -4px 0 0; color: var(--pf-muted); }
.pf-publish-content > footer { display: flex; justify-content: flex-end; gap: 8px; }
.pf-published-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.pf-published-link input { font: 500 12px var(--pf-mono); }

@media (max-width: 980px) {
  .pf-app { grid-template-columns: 78px minmax(0,1fr); }
  .pf-sidebar { padding-inline: 12px; }
  .pf-sidebar-brand { padding-inline: 2px; justify-content: center; }
  .pf-sidebar-brand img { width: 50px; object-fit: cover; object-position: left; }
  .pf-sidebar-brand span, .pf-nav-button:not(.is-active) { display: none; }
  .pf-nav-button { justify-content: center; font-size: 0; }
  .pf-nav-button span { font-size: 20px; }
  .pf-sidebar-footer a, .pf-sidebar-footer button { padding-inline: 0; font-size: 11px; text-align: center; }
  .pf-builder-shell { grid-template-columns: minmax(0, 1fr); }
  .pf-field-palette { position: static; order: -1; }
  .pf-palette-grid { grid-template-columns: repeat(6, 1fr); }
  .pf-form-row { grid-template-columns: minmax(190px,1fr) 110px 80px minmax(220px,auto); }
}

@media (max-width: 720px) {
  .pf-login-view { grid-template-columns: 1fr; background: var(--pf-paper); }
  .pf-login-brand { min-height: 260px; padding: 26px 22px 34px; }
  .pf-brand-lockup img:first-child { width: 160px; }
  .pf-brand-lockup img:last-child { width: 110px; }
  .pf-brand-lockup > span { height: 40px; }
  .pf-login-brand h1 { margin: 22px 0 10px; font-size: 40px; }
  .pf-login-brand p:last-child { font-size: 15px; }
  .pf-login-panel { min-height: auto; padding: 42px 22px; place-items: start center; }
  .pf-app { display: block; padding-bottom: 68px; }
  .pf-sidebar { position: fixed; z-index: 40; top: auto; bottom: 0; width: 100%; height: 62px; padding: 8px 14px; flex-direction: row; align-items: center; }
  .pf-sidebar-brand, .pf-sidebar-footer a { display: none; }
  .pf-sidebar nav { flex: 1; }
  .pf-nav-button { width: auto; justify-content: flex-start; font-size: 13px; }
  .pf-nav-button span { font-size: 17px; }
  .pf-sidebar-footer { margin: 0 0 0 auto; }
  .pf-sidebar-footer button { padding: 8px 10px; }
  .pf-dashboard-view { width: min(100% - 28px, 1240px); padding: 28px 0 60px; }
  .pf-page-header { align-items: flex-end; }
  .pf-page-header h1 { font-size: 36px; }
  .pf-page-header p:last-child { display: none; }
  .pf-metrics { grid-template-columns: 1fr 1fr; }
  .pf-metrics article { min-height: 86px; padding: 15px; }
  .pf-metrics article:nth-child(2) { border-right: 0; }
  .pf-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--pf-line); }
  .pf-toolbar { grid-template-columns: 1fr; }
  .pf-form-row { padding: 16px; grid-template-columns: minmax(0,1fr) auto; gap: 11px; }
  .pf-form-row > .pf-status { grid-column: 1; }
  .pf-form-responses { grid-row: 2; grid-column: 2; }
  .pf-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pf-editor-header { min-height: 76px; padding: 12px 14px; gap: 10px; }
  .pf-editor-header > .pf-icon-button { width: 36px; height: 36px; }
  .pf-editor-identity h1 { max-width: 160px; }
  .pf-editor-actions .pf-button-secondary { display: none; }
  .pf-editor-actions .pf-button { min-height: 38px; padding-inline: 12px; }
  .pf-tabs { top: 76px; height: 48px; padding: 0 14px; gap: 20px; overflow-x: auto; }
  .pf-tabs button { height: 48px; white-space: nowrap; }
  .pf-tab-panel { width: min(100% - 20px,1180px); padding-top: 18px; }
  .pf-field-palette { padding: 13px; overflow-x: auto; }
  .pf-palette-grid { width: max-content; grid-template-columns: repeat(11, 92px); }
  .pf-palette-button { min-height: 58px; }
  .pf-section-type-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pf-form-intro { padding: 18px; }
  .pf-section-head { grid-template-columns: 1fr; padding: 15px; }
  .pf-section-actions { justify-content: flex-end; }
  .pf-question-editor { padding: 15px; }
  .pf-question-top, .pf-question-meta, .pf-validation-grid { grid-template-columns: 1fr; }
  .pf-question-meta { gap: 9px; }
  .pf-question-meta .pf-required-toggle { width: fit-content; }
  .pf-rule-row { grid-template-columns: 1fr 1fr; }
  .pf-rule-row > :last-child { justify-self: end; }
  .pf-routing-panel { margin: 0 15px 15px; }
  .pf-add-question { width: calc(100% - 30px); margin: 12px 15px 15px; }
  .pf-settings-section { padding: 18px; }
  .pf-two-columns { grid-template-columns: 1fr; }
  .pf-slug-field { display: grid; }
  .pf-slug-field span { min-height: 32px; padding-top: 5px; }
  .pf-responses-head { align-items: flex-start; flex-direction: column; }
  .pf-response-row { grid-template-columns: 1fr; gap: 5px; }
  .pf-response-row time { text-align: left; }
  .pf-dialog > form, .pf-dialog > header { padding: 18px; }
  .pf-dialog footer { flex-wrap: wrap; }
  .pf-preview-frame { width: calc(100% - 24px); margin: 12px; padding: 14px; }
  .pf-preview-surface { padding: 21px; }
  .pf-preview-surface h1 { font-size: 30px; }
}

/* Public forms */
.pf-public-body { min-height: 100vh; background: var(--pf-paper); }
.pf-public-body::before { content: ""; position: fixed; z-index: 0; inset: 0 0 auto; height: 360px; background: linear-gradient(112deg, #3d0e0d 0 40%, #6f1d1b 62%, #c88820 100%); }
.pf-public-header { position: relative; z-index: 1; display: flex; width: min(100% - 40px, 960px); height: 112px; margin: 0 auto; align-items: center; }
.pf-public-logos { display: flex; align-items: center; gap: 20px; }
.pf-public-logos img:first-child { width: 190px; }
.pf-public-logos img:last-child { width: 130px; }
.pf-public-logos span { width: 1px; height: 43px; background: rgba(255,255,255,.35); }
.pf-public-main { position: relative; z-index: 1; width: min(100% - 32px, 760px); min-height: calc(100vh - 180px); margin: 0 auto; padding: 10px 0 70px; }
.pf-public-shell, .pf-public-message { overflow: hidden; border-radius: var(--pf-radius); background: white; box-shadow: var(--pf-shadow); }
.pf-public-message { display: grid; min-height: 360px; padding: 50px; place-items: center; align-content: center; gap: 18px; text-align: center; }
.pf-public-message h1 { margin: 0; font: 700 42px/1.05 var(--pf-display); }
.pf-public-message > p:not(.pf-kicker) { max-width: 520px; margin: 0; color: var(--pf-muted); font-size: 17px; }
.pf-loader { width: 34px; height: 34px; border: 3px solid #d9e1de; border-top-color: var(--pf-petrol); border-radius: 50%; animation: pf-spin .8s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-public-intro { padding: 38px 44px 32px; border-top: 7px solid var(--pf-gold); }
.pf-public-intro h1 { margin: 9px 0 10px; font: 700 clamp(38px, 7vw, 60px)/1 var(--pf-display); overflow-wrap: anywhere; }
.pf-public-intro > p:last-child { max-width: 620px; margin: 0; color: var(--pf-muted); font-size: 16px; white-space: pre-line; }
.pf-public-progress { display: grid; padding: 18px 44px; grid-template-columns: 1fr auto; gap: 5px 20px; border-top: 1px solid var(--pf-line); border-bottom: 1px solid var(--pf-line); background: #f8faf9; }
.pf-public-progress > div { display: flex; align-items: baseline; gap: 9px; }
.pf-public-progress span { color: var(--pf-muted); font: 500 10px var(--pf-mono); text-transform: uppercase; }
.pf-public-progress strong { font-size: 14px; }
.pf-public-progress > i { display: block; overflow: hidden; height: 4px; grid-column: 1 / -1; border-radius: 2px; background: #dfe6e3; }
.pf-public-progress > i > b { display: block; width: 0; height: 100%; background: var(--pf-gold); transition: width 240ms ease; }
.pf-public-section { display: grid; padding: 34px 44px 12px; gap: 24px; }
.pf-public-section-description { margin: -8px 0 4px; color: var(--pf-muted); white-space: pre-line; }
.pf-public-field { display: grid; min-width: 0; margin: 0; padding: 0 0 24px; gap: 8px; border: 0; border-bottom: 1px solid #edf0ef; }
.pf-public-field:last-child { border-bottom: 0; }
.pf-public-field legend { padding: 0; color: var(--pf-ink); font-size: 16px; font-weight: 700; }
.pf-public-field legend em { color: var(--pf-danger); font-style: normal; }
.pf-public-field > p { margin: -3px 0 3px; color: var(--pf-muted); font-size: 13px; }
.pf-public-field > input, .pf-public-field > textarea, .pf-public-field > select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd4d1; border-radius: 6px; outline: 0; background: white; }
.pf-public-field > textarea { resize: vertical; }
.pf-public-field > input:focus, .pf-public-field > textarea:focus, .pf-public-field > select:focus { border-color: var(--pf-petrol); box-shadow: 0 0 0 3px rgba(21,63,60,.12); }
.pf-public-options { display: grid; gap: 9px; }
.pf-public-options label, .pf-public-segmented label { display: flex; min-height: 44px; padding: 9px 12px; align-items: center; gap: 10px; border: 1px solid var(--pf-line); border-radius: 6px; background: #fbfcfb; }
.pf-public-options label:has(input:checked), .pf-public-segmented label:has(input:checked) { border-color: var(--pf-petrol); background: #edf4f2; }
.pf-public-options input, .pf-public-segmented input { width: 18px; height: 18px; accent-color: var(--pf-petrol); }
.pf-public-segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pf-public-content { padding: 18px; border-left: 4px solid var(--pf-gold); background: var(--pf-gold-soft); font-weight: 600; white-space: pre-line; }
.pf-public-actions { display: flex; padding: 20px 44px 36px; align-items: center; justify-content: flex-end; gap: 9px; }
.pf-public-actions .pf-error { margin-right: auto; }
.pf-public-shell > form > .pf-error { padding: 0 44px; }
.pf-public-footer { position: relative; z-index: 1; padding: 0 20px 34px; text-align: center; }
.pf-public-footer a { color: var(--pf-muted); font: 500 12px var(--pf-mono); text-decoration: none; }
.pf-success-shell { padding: 46px; }
.pf-success-mark { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; border-radius: 50%; color: white; background: var(--pf-petrol); font-size: 25px; }
.pf-success-shell > h1 { margin: 8px 0; font: 700 44px/1.05 var(--pf-display); }
.pf-success-shell > p:not(.pf-kicker) { margin: 0 0 26px; color: var(--pf-muted); font-size: 17px; }
.pf-protocol { display: grid; padding: 20px; gap: 3px; border: 1px solid #d8c58e; border-radius: 6px; background: #fffaf0; }
.pf-protocol span, .pf-protocol small { color: var(--pf-muted); font: 500 10px var(--pf-mono); text-transform: uppercase; }
.pf-protocol strong { font: 600 23px var(--pf-mono); }
.pf-success-shell section { margin-top: 30px; }
.pf-success-shell section h2 { font-size: 19px; }
.pf-success-summary { display: grid; border-top: 1px solid var(--pf-line); }
.pf-success-summary > div { display: grid; padding: 13px 0; grid-template-columns: minmax(140px, .75fr) minmax(0, 1.25fr); gap: 18px; border-bottom: 1px solid var(--pf-line); }
.pf-success-summary span { color: var(--pf-muted); }
.pf-success-summary strong { overflow-wrap: anywhere; }
.pf-success-actions { display: flex; margin-top: 30px; flex-wrap: wrap; gap: 9px; }

@media (max-width: 640px) {
  .pf-public-body::before { height: 250px; }
  .pf-public-header { width: min(100% - 28px, 960px); height: 88px; }
  .pf-public-logos { gap: 14px; }
  .pf-public-logos img:first-child { width: 140px; }
  .pf-public-logos img:last-child { width: 94px; }
  .pf-public-logos span { height: 32px; }
  .pf-public-main { width: min(100% - 20px, 760px); padding-top: 4px; }
  .pf-public-intro { padding: 28px 24px 24px; }
  .pf-public-intro h1 { font-size: 40px; }
  .pf-public-progress { padding: 15px 24px; }
  .pf-public-progress > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .pf-public-section { padding: 26px 24px 8px; gap: 20px; }
  .pf-public-shell > form > .pf-error { padding-inline: 24px; }
  .pf-public-actions { padding: 18px 24px 28px; }
  .pf-public-message { min-height: 330px; padding: 34px 24px; }
  .pf-public-message h1 { font-size: 36px; }
  .pf-success-shell { padding: 30px 24px; }
  .pf-success-shell > h1 { font-size: 38px; }
  .pf-success-summary > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Public identity refresh */
.pf-public-body { position: relative; background: #e9e5dc; }
.pf-public-body::before {
  height: 370px;
  background:
    linear-gradient(108deg, transparent 0 64%, rgba(217,154,41,.92) 64% 70%, transparent 70%),
    linear-gradient(120deg, #3b1110 0 27%, #6f1d1b 27% 45%, #153f3c 45% 100%);
}
.pf-public-header { width: min(100% - 48px, 1040px); height: 116px; justify-content: space-between; }
.pf-public-logos img:first-child { width: 210px; }
.pf-public-logos img:last-child { width: 145px; }
.pf-public-manifesto { display: grid; margin: 0; color: white; text-align: right; text-transform: uppercase; }
.pf-public-manifesto span:first-child { color: var(--pf-gold); font: 700 11px var(--pf-mono); }
.pf-public-manifesto span:last-child { margin-top: 4px; font-size: 12px; font-weight: 700; }
.pf-public-main { width: min(100% - 36px, 780px); padding: 4px 0 72px; }
.pf-public-shell, .pf-public-message { border: 1px solid rgba(49,57,53,.12); background: #faf8f2; box-shadow: 0 18px 52px rgba(25,38,35,.16); }
.pf-public-intro { position: relative; min-height: 0; padding: 40px 48px 24px; overflow: hidden; border-top: 0; background: #faf8f2; }
.pf-public-intro::before { content: none; }
.pf-public-intro::after { content: ""; position: absolute; top: 0; left: 0; width: 104px; height: 6px; background: var(--pf-gold); }
.pf-public-intro .pf-kicker { position: relative; z-index: 1; color: var(--pf-red); }
.pf-public-intro h1 { position: relative; z-index: 1; max-width: 650px; margin: 12px 0 10px; color: var(--pf-petrol-2); font: 700 46px/1.05 var(--pf-body); overflow-wrap: anywhere; }
.pf-public-intro > p:last-of-type { position: relative; z-index: 1; max-width: 610px; margin: 0; color: #59635f; font-size: 16px; line-height: 1.5; }
.pf-public-intro > p:last-of-type:empty { display: none; }
.pf-public-progress { padding: 0 48px 24px; color: var(--pf-petrol); border: 0; border-bottom: 1px solid #dcdad2; background: #faf8f2; }
.pf-public-progress span { color: var(--pf-muted); }
.pf-public-progress > span { align-self: center; }
.pf-public-progress > i { height: 4px; background: #dedfd9; }
.pf-public-progress > i > b { background: var(--pf-gold); }
.pf-public-section { padding: 0 48px 8px; gap: 0; }
.pf-public-section-head { display: grid; padding: 24px 0 18px; gap: 4px; border-bottom: 1px solid #d8d6ce; }
.pf-public-section-head > span { color: var(--pf-gold); font: 700 10px var(--pf-mono); text-transform: uppercase; }
.pf-public-section-head h2 { margin: 0; color: var(--pf-petrol); font: 700 27px/1.15 var(--pf-body); }
.pf-public-section-head p { max-width: 620px; margin: 4px 0 0; color: var(--pf-muted); line-height: 1.5; white-space: pre-line; }
.pf-public-field { padding: 22px 0; gap: 10px; border-bottom-color: #deded7; }
.pf-public-field legend { display: flex; max-width: 100%; align-items: baseline; gap: 10px; font-size: 17px; line-height: 1.35; }
.pf-public-question-number { flex: 0 0 auto; color: var(--pf-gold); font: 700 10px var(--pf-mono); }
.pf-public-field > p { margin: -3px 0 2px 29px; }
.pf-public-field > input, .pf-public-field > textarea, .pf-public-field > select { min-height: 48px; padding: 11px 13px; border-color: #c8ccc5; border-radius: 6px; background: #fff; }
.pf-public-field > textarea { min-height: 112px; }
.pf-public-options { gap: 8px; }
.pf-public-options { border-top: 1px solid #d8dcd6; }
.pf-public-options label { min-height: 49px; padding: 11px 5px; border: 0; border-bottom: 1px solid #d8dcd6; border-radius: 0; background: transparent; }
.pf-public-options label:has(input:checked) { color: var(--pf-petrol); border-color: var(--pf-gold); background: #f6ecd5; box-shadow: inset 3px 0 0 var(--pf-gold); }
.pf-public-segmented { padding: 4px; border: 1px solid #c8ccc5; border-radius: 7px; background: #fff; gap: 4px; }
.pf-public-segmented label { min-height: 43px; padding: 9px 12px; justify-content: center; border: 0; border-radius: 4px; background: transparent; }
.pf-public-segmented label:has(input:checked) { color: #fff; border-color: var(--pf-petrol); background: var(--pf-petrol); }
.pf-public-options label:has(input:checked) input, .pf-public-segmented label:has(input:checked) input { accent-color: var(--pf-gold); }
.pf-public-content { margin: 22px 0 4px; padding: 18px 20px; color: #4c3410; border-left-color: var(--pf-gold); border-radius: 0 6px 6px 0; background: #f5e7c6; }
.pf-public-actions { padding: 22px 48px 31px; border-top: 1px solid #e2e0d9; background: #f6f3eb; }
.pf-public-actions .pf-button { min-height: 48px; padding-inline: 22px; }
.pf-public-actions .pf-button-primary { color: #2e2412; background: var(--pf-gold); }
.pf-public-actions .pf-button-primary:hover { background: #c98a1e; }
.pf-public-footer { display: flex; width: min(100% - 36px, 780px); margin: 0 auto; padding: 0 4px 32px; justify-content: space-between; color: #65706c; }
.pf-public-footer span { font: 700 11px var(--pf-mono); text-transform: uppercase; }
.pf-public-message { background: #f6f1e7; }
.pf-success-shell { position: relative; overflow: hidden; border-top: 7px solid var(--pf-gold); }
.pf-success-shell::after { content: none; }
.pf-success-shell > * { position: relative; z-index: 1; }
.pf-success-mark { border-radius: 4px; background: var(--pf-petrol); }
.pf-protocol { border-radius: 4px; }

@media (max-width: 640px) {
  .pf-public-body::before { height: 245px; background: linear-gradient(112deg, #3b1110 0 34%, #6f1d1b 34% 53%, #153f3c 53% 100%); }
  .pf-public-header { width: min(100% - 28px,1080px); height: 92px; }
  .pf-public-logos { gap: 13px; }
  .pf-public-logos img:first-child { width: 155px; }
  .pf-public-logos img:last-child { width: 108px; }
  .pf-public-logos span { height: 34px; }
  .pf-public-manifesto { display: none; }
  .pf-public-main { width: min(100% - 16px,780px); padding-top: 0; }
  .pf-public-intro { min-height: 0; padding: 28px 22px 18px; }
  .pf-public-intro h1 { max-width: 100%; margin-top: 10px; font-size: 33px; line-height: 1.06; }
  .pf-public-intro > p:last-of-type { font-size: 15px; line-height: 1.45; }
  .pf-public-progress { padding: 0 22px 20px; }
  .pf-public-section { padding: 0 22px 6px; }
  .pf-public-section-head { padding: 19px 0 16px; }
  .pf-public-section-head h2 { font-size: 23px; }
  .pf-public-field { padding: 20px 0; }
  .pf-public-field legend { gap: 8px; font-size: 16px; }
  .pf-public-field > p { margin-left: 26px; }
  .pf-public-actions { padding: 18px 22px 24px; }
  .pf-public-actions .pf-button { flex: 1; }
  .pf-public-footer { width: min(100% - 24px,780px); }
  .pf-section-type-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pf-published-link { grid-template-columns: 1fr; }
}

/* Admin identity refresh */
.pf-admin-body { background: #ece9e1; }
.pf-admin-body .pf-main { background: #ece9e1; }
.pf-admin-body .pf-kicker { color: #a86e14; font-weight: 700; }
.pf-admin-body .pf-eyebrow { color: #6d7773; font-weight: 700; }
.pf-login-brand {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(217,154,41,.95) 62% 68%, transparent 68%),
    linear-gradient(132deg, #3b1110 0 28%, #6f1d1b 28% 48%, #153f3c 48% 100%);
}
.pf-login-brand::after { content: "PEREGRINOS"; position: absolute; right: -34px; bottom: 2%; color: rgba(255,255,255,.045); font: 800 118px/1 var(--pf-body); white-space: nowrap; }
.pf-login-brand > * { position: relative; z-index: 1; }
.pf-login-brand h1 { font: 800 clamp(44px, 5vw, 72px)/.98 var(--pf-body); }
.pf-login-panel { background: #f1eee6; }
.pf-login-form { padding: 36px; border: 1px solid #d7d3ca; border-top: 6px solid var(--pf-gold); border-radius: 8px; background: #faf8f2; box-shadow: 0 18px 50px rgba(31,47,43,.13); }
.pf-login-form h2 { font: 700 32px/1.1 var(--pf-body); }
.pf-login-form .pf-button-primary { color: #2f2512; background: var(--pf-gold); }
.pf-login-form .pf-button-primary:hover { background: #c98a1e; }

.pf-sidebar { width: 244px; padding: 25px 16px; background: #103936; box-shadow: inset -1px 0 rgba(255,255,255,.07); }
.pf-sidebar::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--pf-red) 0 42%, var(--pf-gold) 42% 64%, transparent 64%); }
.pf-app { grid-template-columns: 244px minmax(0,1fr); }
.pf-sidebar-brand { min-height: 72px; padding: 5px 9px 29px; }
.pf-sidebar-brand img { width: 142px; }
.pf-sidebar-brand span { color: var(--pf-gold); border-left-color: rgba(255,255,255,.23); letter-spacing: 0; }
.pf-nav-button { position: relative; min-height: 48px; padding: 0 14px; border-radius: 5px; color: rgba(255,255,255,.67); }
.pf-nav-button::before { content: ""; position: absolute; left: 0; width: 3px; height: 0; background: var(--pf-gold); transition: height 150ms ease; }
.pf-nav-button:hover, .pf-nav-button.is-active { color: white; background: rgba(255,255,255,.075); }
.pf-nav-button.is-active::before { height: 24px; }
.pf-nav-button > span { display: inline-grid; width: 20px; place-items: center; font-size: 18px; }
.pf-nav-button.is-active span { color: var(--pf-gold); }
.pf-sidebar-footer { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.pf-sidebar-ipo { width: 126px; margin: 0 11px 14px; opacity: .82; }

.pf-dashboard-view { width: min(100% - 72px, 1240px); padding-top: 52px; }
.pf-page-header { position: relative; padding-left: 18px; }
.pf-page-header::before { content: ""; position: absolute; top: 2px; bottom: 3px; left: 0; width: 4px; background: var(--pf-gold); }
.pf-page-header h1 { margin: 4px 0 3px; color: var(--pf-petrol-2); font: 800 42px/1 var(--pf-body); }
#newFormButton, #publishButton { color: #2d2413; border-color: var(--pf-gold); background: var(--pf-gold); }
#newFormButton:hover, #publishButton:hover { border-color: #c5891f; background: #c5891f; }
.pf-metrics { margin-top: 30px; overflow: hidden; border-color: #d5d3cb; background: #faf9f5; box-shadow: 0 8px 25px rgba(24,42,38,.06); }
.pf-metrics article { position: relative; min-height: 98px; border-right-color: #dfddd5; }
.pf-metrics article::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--pf-petrol); }
.pf-metrics article:nth-child(2)::before { background: var(--pf-gold); }
.pf-metrics article:nth-child(3)::before { background: var(--pf-red); }
.pf-metrics article:nth-child(4)::before { background: #568071; }
.pf-metrics strong { color: var(--pf-petrol-2); font: 700 31px/1.2 var(--pf-body); }
.pf-toolbar input, .pf-toolbar select, .pf-response-search input { border-color: #cfcec7; background: #faf9f5; }
.pf-form-list, .pf-responses-list { border-color: #d5d3cb; background: #faf9f5; box-shadow: 0 8px 25px rgba(24,42,38,.055); }
.pf-form-row { position: relative; background: #faf9f5; border-bottom-color: #e1dfd8; }
.pf-form-row::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 0; width: 3px; background: transparent; }
.pf-form-row:hover { background: #f5f2e9; }
.pf-form-row:hover::before { background: var(--pf-gold); }
.pf-form-name h2 { color: var(--pf-petrol-2); font-size: 18px; }
.pf-status { font-weight: 700; }

.pf-editor-header { min-height: 90px; color: white; border-bottom: 0; background: #103936; box-shadow: 0 8px 24px rgba(11,37,34,.16); }
.pf-editor-header::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--pf-red) 0 28%, var(--pf-gold) 28% 43%, rgba(255,255,255,.13) 43%); }
.pf-editor-header > .pf-icon-button { color: white; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.pf-editor-header > .pf-icon-button:hover { border-color: var(--pf-gold); background: rgba(255,255,255,.12); }
.pf-editor-identity .pf-kicker { color: var(--pf-gold); }
.pf-editor-identity h1 { color: white; font-size: 19px; }
.pf-editor-identity > span { color: rgba(255,255,255,.62); }
.pf-editor-actions .pf-button-secondary { color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.pf-editor-actions .pf-button-secondary:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.13); }
.pf-tabs { top: 90px; height: 54px; border-bottom-color: #d7d5ce; background: #faf9f5; }
.pf-tabs button { height: 54px; }
.pf-tabs button.is-active { border-bottom-color: var(--pf-gold); }
.pf-tabs span { color: #2e2513; background: var(--pf-gold); }
.pf-tab-panel { padding-top: 28px; }
.pf-form-intro, .pf-section-editor, .pf-settings-section { border-color: #d5d3cb; background: #faf9f5; box-shadow: 0 7px 20px rgba(24,42,38,.045); }
.pf-form-intro { border-top-color: var(--pf-gold); }
.pf-section-head { background: #f3f0e7; }
.pf-section-editor.is-active { border-color: #8eaaa3; box-shadow: 0 0 0 3px rgba(21,63,60,.07), 0 9px 24px rgba(24,42,38,.06); }
.pf-section-editor.is-active .pf-section-head { box-shadow: inset 4px 0 0 var(--pf-gold); }
.pf-question-editor { background: #faf9f5; }
.pf-question-editor:hover { background: #f8f6f0; }
.pf-field-palette { color: white; border-color: #103936; background: #103936; box-shadow: 0 12px 30px rgba(16,57,54,.15); }
.pf-field-palette .pf-eyebrow { color: var(--pf-gold); }
.pf-field-palette > strong { color: white; }
.pf-field-palette > span { color: rgba(255,255,255,.62); }
.pf-palette-button { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.055); }
.pf-palette-button span { color: var(--pf-gold); }
.pf-palette-button:hover { color: white; border-color: var(--pf-gold); background: rgba(255,255,255,.1); }
.pf-settings-section { border-left: 4px solid transparent; }
.pf-settings-section:focus-within { border-left-color: var(--pf-gold); }
.pf-settings-section h2, .pf-responses-head h2 { color: var(--pf-petrol-2); font: 700 25px/1.1 var(--pf-body); }
.pf-danger-section { border-left-color: rgba(111,29,27,.55); }
.pf-response-row { background: #faf9f5; }
.pf-response-row:hover { background: #f3f0e7; }

.pf-dialog { border-top: 6px solid var(--pf-gold); background: #faf9f5; }
.pf-dialog h2 { color: var(--pf-petrol-2); font: 700 27px/1.1 var(--pf-body); }
.pf-dialog::backdrop { background: rgba(8,35,32,.72); }
.pf-preview-frame { background: #dedbd2; }
.pf-toast { color: #2e2513; background: var(--pf-gold); }

@media (max-width: 980px) {
  .pf-app { grid-template-columns: 78px minmax(0,1fr); }
  .pf-sidebar { width: 78px; padding-inline: 12px; }
  .pf-sidebar-ipo { display: none; }
  .pf-sidebar-brand img { width: 50px; }
}

@media (max-width: 720px) {
  .pf-login-form { padding: 26px 22px; }
  .pf-login-brand::after { font-size: 70px; }
  .pf-app { display: block; }
  .pf-sidebar { width: 100%; height: 62px; padding: 8px 14px; }
  .pf-dashboard-view { width: min(100% - 28px,1240px); padding-top: 30px; }
  .pf-page-header { padding-left: 13px; }
  .pf-page-header h1 { font-size: 35px; }
  .pf-editor-header { min-height: 78px; }
  .pf-tabs { top: 78px; }
  .pf-field-palette { color: white; }
}

@media print {
  .pf-public-body::before, .pf-public-header, .pf-public-footer, .pf-success-actions { display: none !important; }
  .pf-public-main { width: 100%; padding: 0; }
  .pf-success-shell { box-shadow: none; }
}
