:root {
  color-scheme: dark;
  --accent: #9874ff; --accent-ink: color-mix(in srgb,var(--accent) 55%,white); --on-accent: #120c23;
  --ink: #f0eef8; --muted: #a3adc4; --border: #30394e; --surface: #161d2c;
  --page: #0b111d; --field: #101725; --hover: #252d42; --shadow: 0 16px 50px #0002;
  font-family: Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --accent: #7c3aed; --accent-ink: var(--accent); --on-accent: white;
  --ink: #272236; --muted: #716b80; --border: #ded9e9; --surface: #fff;
  --page: #f5f3fa; --field: #faf9fd; --hover: #efebf8; --shadow: 0 16px 50px #35235a08;
}
* { box-sizing: border-box; }
.form-accent-scope { --accent-ink: color-mix(in srgb,var(--accent) 55%,white); }
html[data-theme="light"] .form-accent-scope { --accent-ink: var(--accent); }
.forms-account-note { margin: 0 0 20px; font-size: 12px; color: var(--muted); }
body { margin: 0; background: radial-gradient(ellipse 1000px 400px at 50% -80px,color-mix(in srgb,var(--accent) 8%,transparent),transparent),var(--page); color: var(--ink); font-size: 15px; line-height: 1.6; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
button,input,textarea,select { font: inherit; }
button,.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border: 1px solid var(--border); border-radius: 10px; padding: 9px 16px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; transition: background .18s,border-color .18s,box-shadow .18s; }
button:hover,.button:hover { background: var(--hover); border-color: color-mix(in srgb,var(--accent) 50%,var(--border)); }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: 0 4px 18px color-mix(in srgb,var(--accent) 18%,transparent); }
.primary:hover { background: var(--accent); filter: brightness(1.06); }
:focus-visible { outline: 3px solid color-mix(in srgb,var(--accent) 70%,white); outline-offset: 3px; }
.forms-header { position: sticky; top: 0; z-index: 45; border-bottom: 1px solid var(--border); background: color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter: blur(20px); box-shadow: 0 4px 18px #00000008; }
.forms-header-inner { display: flex; align-items: center; gap: 22px; height: 82px; width: min(1280px,calc(100% - 64px)); margin: auto; }
.forms-ecosystem { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.forms-ecosystem img { width: 32px; height: 32px; object-fit: contain; }
html[data-theme="light"] .forms-ecosystem img { filter: brightness(.2); }
.forms-ecosystem b { color: var(--accent-ink); }
.forms-header-divider { height: 26px; width: 1px; background: var(--border); }
.forms-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.forms-brand > span { display: grid; place-items: center; width: 34px; height: 38px; border-radius: 9px; background: color-mix(in srgb,var(--accent) 16%,transparent); color: var(--accent-ink); }
.forms-brand svg { width: 23px; height: 23px; fill: none; stroke: currentColor; }
.forms-header-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 13px; white-space: nowrap; }
.forms-header-nav a { color: var(--muted); }
.forms-header-nav .forms-profile-link { color: var(--ink); border: 1px solid var(--border); padding: 8px 12px; border-radius: 9px; }
.forms-header-nav .header-account { display: flex; align-items: center; gap: 11px; padding: 7px 12px 7px 8px; border-radius: 15px; border-color: var(--border); background: linear-gradient(135deg,var(--surface),var(--field)); text-decoration: none; box-shadow: 0 3px 12px #0000000a; }
.forms-header-nav .header-account:hover { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 9%,transparent); }
.header-account-avatar { display: grid; place-items: center; position: relative; overflow: hidden; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); background: var(--field); color: var(--ink); font-size: 16px; font-weight: 700; flex-shrink: 0; }
.header-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.header-account-copy { display: grid; max-width: 150px; line-height: 1.25; gap: 1px; }
.header-account-caption { color: var(--muted); font-size: 9px; }
.header-account-name { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.header-account-username { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.header-account-arrow { width: 16px; height: 16px; stroke: currentColor; fill: none; color: var(--muted); flex-shrink: 0; margin-left: 4px; }
.forms-header-nav > a:first-child { padding: 9px 12px; border-radius: 9px; }
.forms-header-nav > a:first-child:hover { color: var(--ink); background: var(--field); text-decoration: none; }
.forms-header-nav > a[aria-current=page] { color: var(--accent-ink); background: var(--field); }
main { width: min(100% - 40px,960px); margin: 0 auto; min-height: calc(100svh - 82px); padding: 38px 0 78px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-weight: 650; font-size: clamp(30px,3.5vw,44px); line-height: 1.16; letter-spacing: -1.5px; }
h2 { font-weight: 650; font-size: 22px; letter-spacing: -.4px; }
.hint,.response-meta { color: var(--muted); font-size: 13px; }
.eyebrow { display: inline-block; color: var(--accent-ink); font-size: 11px; letter-spacing: 2px; font-weight: 700; margin-bottom: 14px; }
.forms-home-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px 0 44px; }
.forms-home-heading p { color: var(--muted); margin-bottom: 0; }
.forms-home-hero { position: relative; border: 1px solid var(--border); border-radius: 22px; padding: 38px; margin-bottom: 20px; background: radial-gradient(ellipse at 95% 10%,color-mix(in srgb,var(--accent) 14%,transparent),transparent 65%),var(--surface); }
.forms-home-hero h1 { font-size: clamp(30px,3.4vw,45px); line-height: 1.15; margin-bottom: 18px; }
.forms-home-hero p { max-width: 560px; font-size: 14px; }
.forms-home-hero > button { flex-shrink: 0; }
.forms-home-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0 0 36px; }
.forms-home-guide > div { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; }
.forms-home-guide span { display: block; font-size: 11px; color: var(--accent-ink); font-weight: 650; margin-bottom: 8px; }
.forms-home-guide strong { font-size: 14px; font-weight: 600; }
.forms-home-guide p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.form-official-mark { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.form-official-mark[data-verified=true] { color: #8ddcbd; padding: 5px 10px; background: #1e70592b; border: 1px solid #427e674d; border-radius: 20px; }
html[data-theme=light] .form-official-mark[data-verified=true] { color: #21664e; background: #e9f6ef; border-color: #c9e9d7; }
.form-official-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.form-author-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.form-author-link { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); }
.form-author-link:hover { border-color: var(--accent); background: var(--hover); text-decoration: none; }
.form-author-link > span:last-child { display: grid; font-size: 11px; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.form-author-link small,.form-author-link span span { color: var(--muted); font-size: 10px; }
.form-author-link strong { font-size: 13px; font-weight: 600; }
.form-author-avatar { display: grid; place-items: center; position: relative; overflow: hidden; width: 36px; height: 36px; border-radius: 50%; background: var(--field); border: 1px solid var(--border); flex-shrink: 0; font-weight: 600; }
.form-author-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.form-report-button { font-size: 12px; font-weight: 650; min-height: 40px; padding: 8px 12px; color: #ffb2bf; background: #3b2029; border-color: #965164; flex-shrink: 0; white-space: nowrap; }
.form-report-button:hover { color: #ffe0e6; background: #542635; border-color: #e07790; }
.form-report-button:focus-visible { outline-color: #e07790; }
html[data-theme=light] .form-report-button { color: #9b2340; background: #fff0f3; border-color: #d397a4; }
html[data-theme=light] .form-report-button:hover { color: #7f1730; background: #ffe0e7; border-color: #b64a65; }
.form-head-notes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--border); }
.form-head-notes .forms-account-note { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; margin: 0; background: var(--field); border-radius: 8px; font-size: 11px; }
.forms-account-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; flex-shrink: 0; }
.form-head-notes .form-required-note { margin: 0; border: 0; padding: 0; font-size: 11px; }
.forms-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.library-heading h2 { margin: 0; }
.library-search { max-width: 420px; margin-bottom: 18px; color: var(--muted); }
.library-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.library-filters button { min-height: 39px; padding: 7px 14px; font-size: 12px; }
.library-filters button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.library-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-top: 4px solid var(--tile-accent); border-radius: 15px; background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.library-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.library-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb,var(--tile-accent) 15%,var(--field)); color: color-mix(in srgb,var(--tile-accent) 65%,var(--ink)); }
.library-card svg { width: 18px; height: 18px; stroke: currentColor; fill: none; flex-shrink: 0; }
.library-card-icon svg { width: 23px; height: 23px; }
.library-status { border-radius: 20px; padding: 4px 8px; font-size: 10px; white-space: nowrap; color: var(--muted); background: var(--field); }
.library-status.is-open { color: var(--accent-ink); background: color-mix(in srgb,var(--accent) 12%,var(--field)); }
.library-card-title { color: var(--ink); }
.library-card-title h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.library-card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--muted); line-height: 1.65; min-height: 40px; margin-bottom: 20px; overflow-wrap: anywhere; }
.library-card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 11px; }
.library-card-stats span,.library-card-access { display: flex; align-items: center; gap: 6px; }
.library-card-stats svg,.library-card-access svg { width: 14px; height: 14px; color: var(--muted); }
.library-card-access { font-size: 10px; color: var(--muted); margin-bottom: 20px; }
.library-card-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }
.library-card-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-size: 11px; }
.library-card-actions svg { width: 14px; height: 14px; }
.forms-empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: 16px; background: var(--surface); }
.forms-empty h3 { font-size: 21px; margin-bottom: 8px; }
.forms-empty p { color: var(--muted); font-size: 13px; }
.forms-editor-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#form-state { font-size: 12px; color: var(--accent-ink); background: color-mix(in srgb,var(--accent) 12%,transparent); border: 1px solid color-mix(in srgb,var(--accent) 22%,transparent); border-radius: 30px; padding: 4px 12px; }
.forms-editor-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.forms-tabs { display: flex; justify-content: center; gap: 16px; border-bottom: 1px solid var(--border); margin: 30px 0 26px; }
.forms-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); padding: 13px 20px; }
.forms-tabs button[aria-pressed=true] { color: var(--accent-ink); border-color: var(--accent); }
.form-paper { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--border); border-radius: 17px; padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow); }
.form-title-card { border-top: 6px solid var(--accent); }
label { display: grid; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 500; }
input:not([type=checkbox],[type=radio],[type=color]),textarea,select { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; background: var(--field); color: var(--ink); }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
textarea { resize: vertical; }
input[type=color] { width: 72px; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); }
#form-title { font-size: 29px; padding: 6px 0 12px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; }
#form-description { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; padding: 6px 0; }
.question-card { border-left: 4px solid color-mix(in srgb,var(--accent) 70%,var(--surface)); }
.question-card { position: relative; }
.question-position { display: flex; align-items: center; justify-content: space-between; margin: -12px -10px 8px 0; }
.question-grip { touch-action: none; cursor: grab; padding: 8px; min-width: 44px; min-height: 44px; border-color: transparent; background: transparent; color: var(--muted); }
.question-grip:hover,.question-grip:focus-visible { color: var(--accent-ink); background: color-mix(in srgb,var(--accent) 12%,var(--surface)); }
.question-grip svg { width: 24px; height: 24px; }
.sorting-questions,.sorting-questions .question-grip { cursor: grabbing; user-select: none; }
.question-shifting { transition: transform .24s cubic-bezier(.22,1,.36,1); }
.question-placeholder { outline: 2px dashed color-mix(in srgb,var(--accent) 65%,var(--border)); outline-offset: -2px; border-color: transparent; background: color-mix(in srgb,var(--accent) 6%,var(--field)); box-shadow: none; }
.question-placeholder > * { opacity: 0; }
.question-ghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; transform-origin: top right; box-shadow: 0 24px 70px #0005,0 0 0 1px color-mix(in srgb,var(--accent) 50%,transparent); will-change: transform; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
button svg,.forms-tabs svg,.settings-card h3 svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; }
.settings-card h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 20px; }
.settings-card h3 svg { color: var(--accent-ink); }
.setting-switch { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; margin: 0; }
.setting-switch + .setting-switch { border-top: 1px solid var(--border); }
.setting-switch strong { display: block; font-size: 15px; font-weight: 600; }
.setting-switch small { display: block; max-width: 620px; color: var(--muted); margin-top: 5px; font-size: 13px; font-weight: 400; }
.setting-switch input[type=checkbox] { appearance: none; width: 44px; height: 26px; margin: 0; border-radius: 30px; background: var(--border); cursor: pointer; position: relative; transition: background .2s; }
.setting-switch input::before { content: ""; width: 18px; height: 18px; position: absolute; top: 4px; left: 4px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.setting-switch input:checked { background: var(--accent); }
.setting-switch input:checked::before { background: var(--on-accent); transform: translateX(18px); }
.color-presets { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.color-presets button { min-width: 44px; min-height: 44px; padding: 8px; border-radius: 50%; background: var(--preset); color: #101725; border: 3px solid var(--surface); outline: 1px solid var(--border); }
.color-presets button[aria-pressed=true] { outline: 3px solid var(--ink); }
.color-presets button[aria-pressed=false] svg { visibility: hidden; }
.custom-accent { display: flex; align-items: center; gap: 18px; margin: 0; }
.share-status { padding: 12px 16px; background: var(--field); border-radius: 10px; color: var(--accent-ink); font-size: 13px; }
.question-editor-head { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 20px; align-items: start; }
.question-editor-head input { font-size: 18px; }
.question-type-field { display: grid; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.question-type-trigger { width: 100%; justify-content: flex-start; min-height: 51px; padding-inline: 12px; background: var(--field); font-size: 13px; font-weight: 500; }
.question-type-trigger > svg:first-child { color: var(--accent-ink); }
.question-type-trigger > svg:last-child { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }
select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position: calc(100% - 18px) 50%,calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.question-image-editor { margin-bottom: 22px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--field); }
.question-image-editor summary { cursor: pointer; font-size: 13px; color: var(--accent-ink); }
.question-image-editor[open] summary { margin-bottom: 16px; }
.image-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.image-editor-actions button { font-size: 12px; }
.question-image { margin: 16px 0; }
.question-image img { display: block; width: auto; max-width: 100%; max-height: 420px; height: auto; object-fit: contain; border-radius: 12px; margin-inline: auto; }
.question-image figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 8px; }
.question-card:focus-within { border-left-color: var(--accent); }
.question-card { scroll-margin-top: 100px; }
.question-options-editor { margin: 0 0 24px; }
.question-options-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.question-option-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.question-option-row > svg,.question-answer-preview svg { width: 20px; height: 20px; fill: none; stroke: currentColor; flex-shrink: 0; color: var(--muted); }
.question-option-row button { min-width: 43px; padding: 8px; background: transparent; }
.question-option-row input { flex: 1; }
.question-options-editor > button { font-size: 13px; color: var(--accent-ink); margin: 4px 0 8px; }
.question-options-editor > .hint { font-size: 11px; margin: 0; }
.question-answer-preview { display: flex; align-items: center; gap: 12px; padding: 16px; margin-bottom: 24px; color: var(--muted); background: var(--field); border: 1px dashed var(--border); border-radius: 9px; font-size: 13px; }
.question-picker { width: min(680px,calc(100% - 24px)); max-height: calc(100svh - 40px); padding: 28px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 25px 100px #0007; }
.question-picker::backdrop { background: #030712a8; backdrop-filter: blur(6px); }
.picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.picker-heading h2 { margin: 0 0 6px; }
.picker-heading button { font-size: 24px; padding: 0; min-width: 43px; }
.question-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.question-type-choice { min-width: 0; justify-content: flex-start; text-align: left; padding: 18px; background: var(--field); }
.question-type-choice > svg { width: 24px; height: 24px; margin-right: 4px; color: var(--accent-ink); }
.question-type-choice span { display: grid; gap: 4px; }
.question-type-choice strong { font-size: 14px; font-weight: 600; }
.question-type-choice small { font-size: 11px; color: var(--muted); font-weight: 400; }
.question-type-choice[aria-pressed=true] { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 12%,var(--surface)); }
.question-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 18px; }
.question-tools button { font-size: 12px; padding-inline: 12px; }
.question-tools label { margin: 0 0 0 auto; }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
input[type=checkbox],input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
input[type=checkbox]:not([role=switch]),input[type=radio] { appearance: none; position: relative; width: 22px; height: 22px; margin: 0; border: 2px solid var(--muted); border-radius: 6px; background: var(--field); cursor: pointer; transition: background .18s,border-color .18s,box-shadow .18s; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:not([role=switch]):checked,input[type=radio]:checked { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
input[type=checkbox]:not([role=switch])::after { content: ""; position: absolute; width: 5px; height: 10px; left: 6px; top: 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .16s ease; }
input[type=checkbox]:not([role=switch]):checked::after { transform: rotate(45deg) scale(1); }
input[type=radio]::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--on-accent); transform: scale(0); transition: transform .16s ease; }
input[type=radio]:checked::after { transform: scale(1); }
.form-check { cursor: pointer; min-height: 44px; padding: 7px 11px; border-radius: 9px; background: var(--field); }
.form-check:has(input:checked) { background: color-mix(in srgb,var(--accent) 10%,var(--surface)); }
.add-question { width: 100%; border: 1px dashed color-mix(in srgb,var(--accent) 60%,var(--border)); background: color-mix(in srgb,var(--accent) 7%,var(--surface)); color: var(--accent-ink); }
.form-share { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 26px; }
.save-bar { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(880px,calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb,var(--surface) 95%,transparent); color: var(--ink); box-shadow: 0 12px 50px #0004; backdrop-filter: blur(16px); }
.save-bar > div { display: flex; gap: 9px; }
body:has(.save-bar:not([hidden])) main { padding-bottom: 180px; }
.save-bar > .draft-copy { display: grid; gap: 2px; }
.draft-copy strong { font-size: 15px; }
.draft-copy > span { color: var(--muted); font-size: 12px; max-width: 540px; overflow-wrap: anywhere; }
.draft-copy > button { justify-self: start; min-height: 26px; border: 0; padding: 0; background: none; color: var(--accent-ink); text-decoration: underline; font-size: 12px; }
.field-changed { outline: 2px solid #d6a039; outline-offset: 3px; }
.question-changed { border-left-color: #d6a039; }
.question-changed .question-position > .hint::after { content: " · Изменён"; color: #d6a039; }
html[data-theme=light] .question-changed .question-position > .hint::after { color: #856012; }
.forms-tabs button[data-changed=true]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d6a039; flex-shrink: 0; }
.draft-attention { border-color: #d6a039; box-shadow: 0 0 0 3px #d6a03933,0 12px 50px #0004; }
.leave-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.leave-dialog { max-width: 560px; }
.answer-question { border: 0; padding: 0; margin: 0; }
.answer-question legend { padding: 0; margin-bottom: 10px; font-size: 18px; font-weight: 550; white-space: pre-wrap; }
.answer-kicker { color: var(--accent-ink); font-size: 11px; font-weight: 650; letter-spacing: .5px; margin-bottom: 12px; }
.answer-type-hint { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.number-answer-hint { margin-bottom: 10px; }
.answer-text-limits { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 11px; color: var(--muted); }
.answer-text-rule { max-width: 75%; }
.answer-text-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.text-limit-editor { display: grid; grid-template-columns: 1fr 160px; gap: 12px; padding: 16px; background: var(--field); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 22px; }
.text-limit-editor label { margin-bottom: 0; }
.text-limit-editor-hint { grid-column: 1 / -1; margin: 0; font-size: 11px; }
#form-answer-questions > .form-paper:focus-within { border-color: color-mix(in srgb,var(--accent) 70%,var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 8%,transparent); }
#forms-public .form-title-card h1 { font-size: clamp(28px,4vw,40px); margin-bottom: 16px; }
#form-answer-questions input:not([type=checkbox],[type=radio]),#form-answer-questions textarea,#form-answer-questions select { font-size: 16px; line-height: 1.6; padding: 14px 16px; }
#form-answer-questions select { padding-right: 38px; }
.answer-draft-panel { padding: 20px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin: 0 0 26px; }
.answer-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.answer-progress-heading strong { font-size: 13px; font-weight: 600; }
.answer-progress-heading button { padding: 6px 10px; font-size: 11px; min-height: 36px; }
#answer-progress { display: block; appearance: none; border: 0; width: 100%; height: 6px; border-radius: 20px; overflow: hidden; margin: 14px 0 12px; background: var(--border); accent-color: var(--accent); }
#answer-progress::-webkit-progress-bar { background: var(--border); }
#answer-progress::-webkit-progress-value { background: var(--accent); border-radius: 20px; }
#answer-progress::-moz-progress-bar { background: var(--accent); border-radius: 20px; }
#answer-draft-status { margin: 0; font-size: 12px; }
.answer-draft-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 8px 0 0; }
#form-thanks { text-align: center; padding: 50px 24px; border-top: 4px solid var(--accent); }
#form-thanks h2 { font-size: 28px; margin-bottom: 12px; }
.forms-page:has(#forms-public:not([hidden])) main { width: min(820px,calc(100% - 40px)); }
.answer-main { min-width: 0; max-width: 820px; margin-inline: auto; width: 100%; }
.answer-question-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.answer-question-top .answer-kicker { margin: 0; }
.answer-filled-status { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-size: 11px; }
.answer-filled-status svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
#form-answer-questions > .form-paper { scroll-margin-top: 108px; padding: 30px; }
.answer-question legend { font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.answer-complete { border-color: color-mix(in srgb,var(--accent) 32%,var(--border)); }
.answer-submit-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.answer-submit-card h3 { margin: 0 0 8px; font-size: 22px; }
.answer-submit-card > .hint { max-width: 500px; margin-bottom: 22px; }
.form-identity { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 10px; background: var(--field); }
.form-identity svg { flex-shrink: 0; width: 17px; height: 17px; stroke: currentColor; fill: none; margin-top: 2px; }
#form-public-header > p:not(.hint) { white-space: pre-wrap; }
.answer-question .required { color: #f37492; margin-left: 5px; }
.form-required-note { padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; margin-bottom: 0; }
.form-required-note .required { color: #f37492; font-weight: 700; }
html[data-theme="light"] .form-required-note .required { color: #b32642; }
html[data-theme="light"] .answer-question .required { color: #b32642; }
.answer-description { white-space: pre-wrap; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.answer-option { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; font-weight: 400; cursor: pointer; padding: 14px 16px; margin-bottom: 10px; min-height: 54px; border: 1px solid var(--border); border-radius: 11px; background: var(--field); transition: border-color .18s,background .18s; }
.answer-option span { min-width: 0; overflow-wrap: anywhere; }
.answer-option:hover { border-color: color-mix(in srgb,var(--accent) 65%,var(--border)); }
.answer-option:has(input:checked) { background: color-mix(in srgb,var(--accent) 10%,var(--surface)); border-color: var(--accent); }
.answer-option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb,var(--accent) 60%,transparent); outline-offset: 3px; }
.answer-option input { margin: 0; }
.answer-scale { display: flex; flex-wrap: wrap; gap: 14px; }
.answer-scale label { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; position: relative; padding: 10px 14px; font-weight: 600; }
.answer-scale input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.answer-scale .answer-option:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.answer-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.answer-actions span { max-width: 330px; font-size: 12px; color: var(--muted); }
.preview-notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; color: var(--muted); }
.response-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.responses-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0; }
.responses-toolbar button { font-size: 12px; }
.response-card { padding: 0; overflow: hidden; }
.response-summary { display: flex; align-items: center; gap: 14px; padding: 22px 24px; cursor: pointer; list-style: none; }
.response-summary::-webkit-details-marker { display: none; }
.response-summary:hover { background: var(--field); }
.response-avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent-ink); background: color-mix(in srgb,var(--accent) 14%,var(--surface)); font-weight: 700; }
.response-avatar { position: relative; overflow: hidden; width: 50px; height: 50px; border: 1px solid color-mix(in srgb,var(--accent) 25%,var(--border)); }
.response-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.response-progress { display: block; height: 4px; width: 100%; max-width: 150px; margin: 7px 0 0 auto; background: var(--border); border-radius: 20px; overflow: hidden; }
.response-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.response-profile-link { display: inline-block; margin: 0 0 16px; font-size: 12px; }
.response-identity { display: grid; min-width: 0; overflow-wrap: anywhere; }
.response-identity strong { font-size: 16px; }
.response-overview { display: grid; text-align: right; margin-left: auto; }
.response-chevron { width: 9px; height: 9px; flex-shrink: 0; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 4px 4px 12px; transition: transform .2s; }
.response-card[open] .response-chevron { transform: rotate(225deg); margin-bottom: -4px; }
.response-body { padding: 0 24px 8px; }
.response-answer { padding: 22px 0; border-top: 1px solid var(--border); }
.response-answer h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.response-answer-type { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.response-text { margin: 0; padding: 14px 16px; background: var(--field); border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.response-empty { margin: 0; font-size: 13px; color: var(--muted); font-style: italic; }
.response-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.response-choices li { padding: 7px 12px; border-radius: 9px; border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--border)); color: var(--ink); background: color-mix(in srgb,var(--accent) 9%,var(--surface)); overflow-wrap: anywhere; max-width: 100%; }
.response-score { margin: 0; color: var(--muted); }
.response-score strong { color: var(--accent-ink); font-size: 28px; font-weight: 650; }
[data-error=true] { color: #fb9bb1; }
html[data-theme="light"] [data-error=true] { color: #b32642; }
#forms-message:empty,#responses-message:empty,#form-submit-message:empty { display: none; }
@media(max-width:800px) { .forms-header-inner { width: calc(100% - 32px); gap: 14px; } .forms-ecosystem span { display: none; } .forms-header-nav { gap: 16px; } }
@media(max-width:900px) { .forms-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) {
  .forms-header-inner { height: 70px; width: calc(100% - 24px); gap: 12px; }
  .forms-ecosystem { display: none; }
  .forms-header-nav .header-account { padding: 5px 8px 5px 5px; gap: 7px; border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--border)); }
  .header-account-avatar { width: 32px; height: 32px; font-size: 13px; }
  .header-account-arrow { display: none; }
  .header-account-copy { max-width: 85px; }
  .header-account-name { font-size: 11px; }
  .forms-header-divider,.forms-brand > span,.forms-header-nav a:first-child { display: none; }
  .forms-brand { font-size: 19px; } .forms-header-nav { margin-left: auto; } .forms-header-nav .forms-profile-link:not(.header-account) { font-size: 11px; padding: 7px; border: 0; }
  main { width: calc(100% - 24px); min-height: calc(100svh - 70px); padding-top: 24px; }
  .forms-home-heading { flex-direction: column; align-items: flex-start; padding: 18px 4px 32px; gap: 24px; }
  .forms-home-hero { padding: 24px; gap: 22px; }
  .forms-home-guide { grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }
  .forms-home-guide > div { padding: 14px 18px; }
  .forms-home-guide span { float: left; width: 30px; margin: 3px 8px 0 0; }
  .forms-home-guide p { margin-left: 38px; }
  .form-author-row { gap: 10px; align-items: flex-start; }
  .forms-grid { grid-template-columns: 1fr; } .form-paper { padding: 21px; border-radius: 14px; }
  .question-editor-head { grid-template-columns: 1fr; gap: 0; } .forms-editor-actions { width: 100%; margin: 0; }
  .forms-tabs { gap: 8px; } .forms-tabs button { padding-inline: clamp(5px,2vw,15px); font-size: 13px; }
  .save-bar { bottom: 10px; flex-direction: column; gap: 10px; padding: 12px; font-size: 13px; } .save-bar > div { width: 100%; } .save-bar button { flex: 1; }
  .answer-actions,.preview-notice { align-items: flex-start; flex-direction: column; } #form-title { font-size: 25px; }
  .response-summary { flex-wrap: wrap; gap: 10px; padding: 18px; }
  .response-overview { width: 100%; margin: 0; padding-left: 54px; text-align: left; }
  .response-chevron { position: absolute; right: 20px; top: 30px; }
  .response-card { position: relative; }
  .response-identity { max-width: calc(100% - 80px); }
  .response-body { padding-inline: 18px; }
  body:has(.save-bar:not([hidden])) main { padding-bottom: 220px; }
  .save-bar > .draft-copy { gap: 1px; }
  .draft-copy strong { font-size: 14px; }
  .response-progress { margin-left: 0; }
  .question-picker { padding: 20px; }
  .question-type-grid { grid-template-columns: 1fr; }
  .question-type-choice { padding: 14px; }
  .answer-draft-panel { padding: 18px; }
  .answer-progress-heading { align-items: flex-start; }
  .answer-progress-heading strong { max-width: 210px; }
  .forms-page:has(#forms-public:not([hidden])) main { width: calc(100% - 24px); }
  #form-answer-questions > .form-paper { padding: 22px; }
  .answer-submit-card { padding: 22px; }
  .text-limit-editor { grid-template-columns: 1fr; }
  .answer-text-limits { flex-wrap: wrap; gap: 4px 12px; }
  .answer-text-rule { max-width: 100%; flex: 1 1 180px; }
  .responses-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media(max-width:360px) { .forms-header-inner { gap: 8px; } .header-account-copy { max-width: 65px; } .form-author-row { flex-wrap: wrap; } .form-author-link { flex: 1 1 100%; } .form-report-button { margin-left: auto; } }
@media(prefers-reduced-motion:reduce) { body,button,.button,.setting-switch input,.setting-switch input::before,.question-shifting,.answer-option,.response-chevron,input[type=checkbox]:not([role=switch]),input[type=radio],input[type=checkbox]:not([role=switch])::after,input[type=radio]::after { transition: none; } }
@media(forced-colors:active) {
  input[type=checkbox]:not([role=switch]),input[type=radio] { appearance: auto; }
  input[type=checkbox]:not([role=switch])::after,input[type=radio]::after { display: none; }
  .answer-option:has(input:checked) { outline: 2px solid Highlight; }
}
