.wf-studio { --wf-radius: 3px; padding-bottom: 38px; }
.wf-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.wf-heading h1 { margin: 6px 0 10px; font-family: var(--display); font-size: clamp(30px, 3vw, 46px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.wf-heading p:not(.wf-eyebrow) { color: var(--muted); margin: 0; font-size: 13px; }
.wf-eyebrow { color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .2em; line-height: 1.7; text-transform: uppercase; margin: 0; }
.wf-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 11px 17px; border: 1px solid var(--line-strong); border-radius: var(--wf-radius, 3px); font-size: 11px; font-weight: 600; line-height: 1.4; transition: background .2s, border-color .2s; }
.wf-button:disabled { opacity: .35; cursor: not-allowed; }
.wf-button-primary { color: var(--bg-deep); background: var(--gold); border-color: var(--gold); }
.wf-button-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
html[data-theme="light"] .wf-button-primary { color: #fffdf8; }
.wf-button-quiet { color: var(--text); background: transparent; }
.wf-button-quiet:hover { border-color: var(--gold); background: var(--gold-soft); }
.wf-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 19px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.wf-summary strong { color: var(--text); font-size: 17px; font-weight: 500; margin-right: 6px; }
.wf-summary-note { margin-left: auto; font-size: 10px; font-style: italic; }
.wf-tabs { display: flex; gap: 28px; margin: 26px 0 22px; border-bottom: 1px solid var(--line); }
.wf-tabs button { padding: 0 0 15px; background: none; color: var(--muted); border-bottom: 2px solid transparent; font-size: 12px; }
.wf-tabs button.is-active { color: var(--text); border-color: var(--gold); }
.wf-tabs button span { display: inline-block; min-width: 18px; margin-left: 6px; padding: 2px 5px; color: var(--gold); background: var(--gold-soft); font-size: 9px; }
.wf-workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.wf-library { position: sticky; top: 95px; min-width: 0; }
.wf-section-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.wf-section-caption > span { font-size: 9px; color: var(--muted-2); letter-spacing: .02em; }
.wf-library-item { position: relative; display: flex; gap: 12px; width: 100%; padding: 18px 13px; background: transparent; border: 1px solid transparent; text-align: left; }
.wf-library-item + .wf-library-item { border-top-color: var(--line); }
.wf-library-item.is-active { background: var(--panel); border-color: var(--gold-line); }
.wf-library-item.is-active::before { position: absolute; top: 17px; bottom: 17px; left: -1px; width: 2px; background: var(--gold); content: ""; }
.wf-library-number { padding-top: 2px; color: var(--gold); font-size: 10px; }
.wf-library-item strong { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.28; overflow-wrap: anywhere; }
.wf-library-item small { display: block; color: var(--muted); font-size: 9px; margin: 9px 0; }
.wf-status { display: inline-block; color: var(--muted); background: var(--panel-raised); border: 1px solid var(--line); padding: 3px 6px; font-size: 8px; font-style: normal; }
.wf-status.is-published { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }
.wf-library-foot { padding: 30px 10px 15px; text-align: center; color: var(--muted); }
.wf-small-star { color: var(--gold); font-size: 27px; }
.wf-library-foot p { font-family: var(--display); font-style: italic; font-size: 16px; line-height: 1.6; }
.wf-editor { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.wf-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.wf-editor-status { color: var(--muted); font-size: 10px; margin: 5px 0 0; }
.wf-mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); }
.wf-mode-switch button { min-height: 32px; padding: 7px 13px; background: transparent; color: var(--muted); font-size: 10px; }
.wf-mode-switch button.is-active { background: var(--gold-soft); color: var(--gold); }
.wf-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; }
.wf-canvas { min-width: 0; padding: 24px; }
.wf-meta { margin-bottom: 28px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.wf-meta label, .wf-inspector > label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 17px; }
.wf-meta label:last-child { margin-bottom: 0; }
.wf-studio input:not([type="checkbox"]), .wf-studio textarea, .wf-studio select, .wf-member-dialog input:not([type="checkbox"]), .wf-member-dialog textarea, .wf-member-dialog select { display: block; width: 100%; min-height: 42px; margin-top: 7px; padding: 11px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 2px; font-size: 12px; line-height: 1.5; outline-offset: 3px; }
.wf-studio textarea, .wf-member-dialog textarea { resize: vertical; }
.wf-meta #wfFormTitle { font-family: var(--display); font-size: 24px; letter-spacing: -.025em; }
.wf-field-list { display: grid; gap: 9px; }
.wf-field-card { display: flex; width: 100%; min-width: 0; align-items: flex-start; gap: 12px; padding: 16px 15px; border: 1px solid var(--line); background: var(--bg); text-align: left; transition: border-color .2s, background .2s; }
.wf-field-card:hover { border-color: var(--gold-line); }
.wf-field-card.is-selected { border-color: var(--gold); background: var(--gold-soft); }
.wf-field-index { margin-top: 2px; color: var(--muted); font-size: 9px; }
.wf-field-summary { flex: 1; min-width: 0; }
.wf-field-summary strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.wf-field-summary small { display: block; margin: 5px 0 11px; font-size: 9px; color: var(--muted); }
.wf-field-sample { display: block; color: var(--muted-2); font-size: 10px; overflow-wrap: anywhere; }
.wf-field-card.is-selected .wf-field-sample { color: var(--text); }
.wf-field-edit { color: var(--gold); font-size: 16px; }
.wf-required { color: var(--gold); }
.wf-add-fields { padding-top: 26px; }
.wf-type-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.wf-type-palette button { display: flex; gap: 6px; align-items: center; justify-content: flex-start; min-height: 41px; padding: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; font-size: 9px; }
.wf-type-palette button span { color: var(--gold); font-size: 15px; }
.wf-type-palette button:hover { color: var(--text); border-color: var(--gold); }
.wf-inspector { padding: 26px 20px; background: var(--panel-soft); border-left: 1px solid var(--line); min-width: 0; }
.wf-inspector h3 { font-family: var(--display); font-size: 23px; font-weight: 400; margin: 8px 0 6px; }
.wf-inspector-lead { color: var(--muted); font-size: 10px; margin: 0 0 23px; }
.wf-inspector label small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.wf-inspector .wf-toggle { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 0; border-block: 1px solid var(--line); margin-top: 24px; }
.wf-toggle strong { color: var(--text); font-size: 10px; font-weight: 500; }
.wf-toggle small { font-size: 9px; }
.wf-studio input[type="checkbox"], .wf-member-dialog input[type="checkbox"] { flex: 0 0 17px; width: 17px; height: 17px; accent-color: var(--gold); margin: 0; }
.wf-field-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.wf-field-tools > div { display: flex; gap: 5px; }
.wf-field-tools button { min-height: 33px; width: 33px; padding: 5px; }
.wf-remove-field { margin-top: 20px; padding: 0; background: transparent; color: var(--danger); font-size: 10px; border-bottom: 1px solid var(--danger); }
.wf-inspector-note { color: var(--muted); font-size: 9px; line-height: 1.8; margin-top: 24px; }
.wf-publish-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 24px; border-top: 1px solid var(--line); }
.wf-publish-bar > div:first-child { min-width: 130px; }
.wf-publish-bar strong { display: block; font-size: 10px; font-weight: 500; }
.wf-publish-bar > div > span { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.wf-publish-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wf-publish-actions .wf-button { font-size: 9px; min-height: 37px; padding: 9px 12px; }
.wf-undo { margin: 12px 0; color: var(--muted); font-size: 11px; }
.wf-undo button { background: none; color: var(--gold); text-decoration: underline; }
.wf-field-empty { padding: 30px 18px; border: 1px dashed var(--gold-line); text-align: center; }
.wf-field-empty strong { font-family: var(--display); font-size: 20px; font-weight: 400; }
.wf-field-empty p, .wf-muted { color: var(--muted); font-size: 11px; line-height: 1.7; }
.wf-empty { padding: 50px 30px; text-align: center; }
.wf-empty > span { font-size: 40px; color: var(--gold); }
.wf-empty h2, .wf-empty h3 { font-family: var(--display); font-size: 30px; font-weight: 400; margin: 12px 0; }
.wf-empty p, .wf-empty-small { color: var(--muted); font-size: 12px; line-height: 1.8; }
.wf-empty .wf-button { margin-top: 15px; }
.wf-preview-shell { padding: 20px 28px 36px; background: var(--bg); }
.wf-preview-notice { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 20px; color: var(--muted); font-size: 10px; text-align: center; }
.wf-live-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex: 0 0 5px; }
.wf-preview-paper { max-width: 590px; margin: auto; padding: 35px; border: 1px solid var(--gold-line); background: var(--panel); }
.wf-form-crest { color: var(--gold); font-size: 29px; margin-bottom: 13px; }
.wf-response-form h2 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; line-height: 1.25; margin: 12px 0; letter-spacing: -.03em; overflow-wrap: anywhere; }
.wf-form-intro { color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-line; margin: 0 0 30px; }
.wf-response-field { margin-bottom: 24px; }
.wf-response-field > label, .wf-response-field legend { display: block; color: var(--text); font-size: 12px; line-height: 1.6; }
.wf-choice-group { margin: 0; padding: 0; border: 0; }
.wf-choice-group legend { padding: 0 0 9px; }
.wf-option { display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; margin: 5px 0; background: var(--bg); border: 1px solid var(--line); font-size: 12px; cursor: pointer; }
.wf-option input { margin-top: 2px !important; }
.wf-option:has(input:checked) { background: var(--gold-soft); border-color: var(--gold-line); }
.wf-confirmation { display: flex !important; }
.wf-field-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.wf-required-note { color: var(--muted); font-size: 9px; margin: 5px 0 20px; }
.wf-feedback { color: var(--gold); font-size: 12px; line-height: 1.6; margin: 16px 0 0; }
.wf-feedback:empty { display: none; }
.wf-responses > header { padding: 20px 0 25px; }
.wf-responses > header h2 { font-family: var(--display); font-size: 32px; font-weight: 400; margin: 8px 0; }
.wf-responses > header p:last-child { color: var(--muted); font-size: 12px; }
.wf-response-card { background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.wf-response-card summary { display: flex; align-items: center; gap: 17px; padding: 20px 24px; list-style: none; }
.wf-response-card summary::-webkit-details-marker { display: none; }
.wf-response-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--gold-line); border-radius: 50%; color: var(--gold); font-family: var(--display); font-size: 16px; }
.wf-response-card summary strong { display: block; font-size: 12px; font-weight: 500; }
.wf-response-card summary small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.wf-response-card time { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.wf-response-chevron { color: var(--gold); margin-left: 10px; }
.wf-response-card[open] .wf-response-chevron { transform: rotate(180deg); }
.wf-response-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding: 24px; margin: 0; }
.wf-response-card dt { color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.wf-response-card dd { color: var(--text); font-size: 12px; margin: 0; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.wf-response-reference { margin: 0; padding: 0 24px 20px; color: var(--muted-2); font-size: 9px; }
.wf-member-section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.wf-member-section > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.wf-member-section h2 { font-family: var(--display); font-size: clamp(25px, 2.7vw, 36px); font-weight: 400; margin: 8px 0; }
.wf-member-section > header p:last-child { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.wf-member-count { color: var(--gold); font-size: 10px; white-space: nowrap; }
.wf-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.wf-member-card { position: relative; padding: 27px 28px; background: var(--panel); border: 1px solid var(--gold-line); }
.wf-member-card-index { position: absolute; right: 27px; top: 20px; font-size: 25px; color: var(--gold); }
.wf-member-card > .wf-eyebrow { padding-right: 38px; }
.wf-member-card h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.3; margin: 14px 0 10px; }
.wf-member-card > p:not(.wf-eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 70ch; }
.wf-member-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.wf-member-card-footer > span { color: var(--muted); font-size: 10px; }
.wf-member-open { padding: 0; background: transparent; color: var(--gold); font-size: 11px; }
.wf-member-open:disabled { color: var(--muted); cursor: not-allowed; }
.wf-member-open span { display: inline-block; margin-left: 10px; font-size: 17px; }
.wf-member-dialog { width: min(620px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 42px); margin: auto; padding: 40px; color: var(--text); background: var(--panel); border: 1px solid var(--gold-line); box-shadow: var(--shadow); overflow: auto; }
.wf-member-dialog::backdrop { background: rgba(4, 4, 4, .74); backdrop-filter: blur(5px); }
.wf-dialog-close { position: absolute; right: 15px; top: 13px; width: 35px; height: 35px; background: transparent; color: var(--muted); font-size: 24px; }
.wf-dialog-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1350px) {
  .wf-workspace { grid-template-columns: 190px minmax(0, 1fr); gap: 14px; }
  .wf-edit-layout { grid-template-columns: minmax(0, 1fr) 215px; }
  .wf-canvas { padding: 20px; }
  .wf-inspector { padding: 24px 16px; }
  .wf-type-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-summary-note { margin-left: 0; }
}
@media (max-width: 1100px) {
  .wf-workspace { grid-template-columns: 1fr; }
  .wf-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: static; }
  .wf-library > .wf-section-caption { grid-column: 1 / -1; margin-bottom: 2px; }
  .wf-library-item { border: 1px solid var(--line); padding: 14px 11px; gap: 8px; }
  .wf-library-item strong { font-size: 16px; }
  .wf-library-foot { display: none; }
  .wf-edit-layout { grid-template-columns: minmax(0, 1fr) 235px; }
  .wf-type-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wf-heading { align-items: flex-start; }
  .wf-heading > .wf-button { max-width: 142px; flex-shrink: 0; font-size: 10px; }
  .wf-heading h1 { font-size: 31px; }
  .wf-summary { gap: 10px 18px; }
  .wf-summary-note { flex-basis: 100%; }
  .wf-edit-layout { grid-template-columns: minmax(0, 1fr); }
  .wf-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .wf-inspector > label { max-width: none; }
  .wf-publish-bar { flex-direction: column; align-items: flex-start; }
  .wf-publish-actions { justify-content: flex-start; }
  .wf-response-card dl { grid-template-columns: 1fr; }
  .wf-preview-shell { padding: 18px 15px; }
  .wf-preview-paper { padding: 25px; }
}
@media (max-width: 500px) {
  .wf-heading { display: block; margin-bottom: 22px; }
  .wf-heading > .wf-button { max-width: none; margin-top: 19px; }
  .wf-summary { font-size: 10px; }
  .wf-summary strong { font-size: 15px; }
  .wf-tabs { gap: 23px; }
  .wf-tabs button { font-size: 10px; }
  .wf-library { grid-template-columns: 1fr; }
  .wf-library-item { padding: 12px; }
  .wf-library-item > span:last-child { display: flex; flex: 1; align-items: center; flex-wrap: wrap; gap: 5px 10px; min-width: 0; }
  .wf-library-item strong { flex-basis: 100%; }
  .wf-library-item small { margin: 0; }
  .wf-library-item em { margin-left: auto; }
  .wf-editor-toolbar { padding: 17px; }
  .wf-editor-toolbar .wf-eyebrow { font-size: 8px; }
  .wf-mode-switch button { padding: 6px 9px; }
  .wf-canvas { padding: 18px 16px; }
  .wf-meta #wfFormTitle { font-size: 22px; }
  .wf-type-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-field-card { padding: 14px 11px; gap: 9px; }
  .wf-publish-bar { padding: 18px 16px; }
  .wf-publish-actions { width: 100%; }
  .wf-publish-actions .wf-button-primary { width: 100%; }
  .wf-publish-actions .wf-button-quiet { order: 2; }
  .wf-preview-paper { padding: 22px 17px; }
  .wf-preview-notice { font-size: 9px; }
  .wf-response-card summary { padding: 17px 14px; gap: 10px; flex-wrap: wrap; }
  .wf-response-card time { margin-left: 50px; }
  .wf-response-card dl { padding: 20px 17px; }
  .wf-member-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-member-card { padding: 24px 21px; }
  .wf-member-card h3 { font-size: 24px; }
  .wf-member-dialog { padding: 32px 22px; }
  .wf-dialog-submit { flex-direction: column-reverse; align-items: stretch; }
}
