html.forms-page { --blue: #111; --blue-hover: #303030; }
html.forms-page[data-theme=dark] { --blue: #f2f2f5; --blue-hover: #d1d1d6; }
html.forms-page .follow-link.discord i { color: var(--ink); }
.forms-main { max-width: 1040px; color: var(--text); }
.forms-main.narrow { max-width: 760px; }
.forms-main:has(> #forms-app.narrow) { max-width: 760px; }
.forms-main [hidden] { display: none !important; }
.forms-main a { color: var(--blue); }
.forms-main button, .forms-main input, .forms-main select, .forms-main textarea { font: inherit; }
.forms-main button, .forms-main select, .forms-main input[type=checkbox], .forms-main input[type=radio] { cursor: pointer; }
.forms-main button:disabled { opacity: .5; cursor: wait; }
.forms-main :is(input,textarea,select):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.forms-main input, .forms-main textarea, .forms-main select { color: var(--ink); }
.forms-main input[type=checkbox], .forms-main input[type=radio] { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.forms-main textarea { resize: vertical; min-height: 94px; line-height: 1.5; }
.forms-main h2 { color: var(--ink); letter-spacing: -.5px; }
.forms-main h3 { color: var(--ink); }
.f-head, .f-toolbar, .f-row, .f-actions { display: flex; align-items: center; gap: 12px; }
.f-head { justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.f-head .page-sub { line-height: 1.6; max-width: 560px; }
.f-toolbar { justify-content: space-between; flex-wrap: wrap; margin: 22px 0; }
.f-row, .f-actions { flex-wrap: wrap; }
.f-actions { gap: 8px; }
.f-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid rgba(var(--tint),.1); border-radius: 999px; background: var(--surface); color: var(--ink) !important; font-size: .88rem !important; font-weight: 600 !important; text-decoration: none; transition: background .2s, transform .2s; }
.f-button:hover { background: var(--surface-2); }
.f-button.primary { border-color: transparent; background: #111; color: #fff !important; }
.f-button.primary:hover { background: #303030; }
html[data-theme=dark] .f-button.primary { border-color: #555; }
.f-button.danger { color: #c52b32 !important; }
html[data-theme=dark] .f-button.danger { color: #ff888e !important; }
.f-button.subtle { border-color: transparent; background: transparent; color: var(--muted) !important; }
.f-card { padding: 26px; border: 1px solid rgba(var(--tint),.055); border-radius: 20px; background: var(--surface); box-shadow: 0 2px 4px rgba(0,0,0,.025), 0 8px 26px rgba(0,0,0,.035); }
.f-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.f-form-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.f-form-card h2 { margin: 0; font-size: 1.23rem; overflow-wrap: anywhere; }
.f-form-card p { margin: 0; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
.f-form-card .f-actions { margin-top: auto; padding-top: 8px; }
.f-label { display: block; font-size: .83rem; font-weight: 650; color: var(--text); margin-bottom: 8px; }
.f-field { margin-bottom: 22px; }
.f-field:last-child { margin-bottom: 0; }
.f-input { display: block; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid rgba(var(--tint),.14); border-radius: 11px; background: var(--bg); }
.f-input::placeholder { color: var(--muted); opacity: .8; }
.f-help { margin: 8px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.f-meta { color: var(--muted); font-size: .8rem; }
.f-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: .73rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-2); }
.f-verification { width: min(420px, calc(100vw - 32px)); padding: 26px; border: 1px solid rgba(var(--tint),.1); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 16px 64px rgba(0,0,0,.2); }
.f-verification::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.f-verification h2 { margin: 0 0 10px; font-size: 1.3rem; }
.f-verification > p { color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
.f-verification [data-verification-widget] { min-height: 65px; margin: 0 0 18px; }
@media (max-width: 380px) { .f-verification { padding: 18px; } }
.f-empty { padding: 54px 24px; text-align: center; }
.f-empty h2 { font-size: 1.35rem; margin: 0 0 10px; }
.f-empty p { margin: 0 auto 22px; color: var(--muted); max-width: 420px; line-height: 1.65; }
.f-footer { margin: 32px 0 0; color: var(--muted); font-size: .8rem; text-align: center; line-height: 1.7; }
.f-footer a { color: var(--muted); }
.f-login { max-width: 440px; margin: 32px auto; }
.f-login h2 { margin: 0 0 10px; }
.f-notice { padding: 14px 18px; border: 1px solid rgba(var(--tint),.15); background: rgba(var(--tint),.05); border-radius: 12px; font-size: .9rem; line-height: 1.6; margin: 16px 0; white-space: pre-line; overflow-wrap: anywhere; }
.f-notice.error { color: #b1232d; background: rgba(255,59,48,.07); border-color: rgba(255,59,48,.15); }
html[data-theme=dark] .f-notice.error { color: #ff9399; }
#forms-message:empty { display: none; }
#forms-message { position: sticky; top: 80px; z-index: 90; background: var(--surface); box-shadow: var(--glass-drop-hi); }
.f-editor { display: grid; grid-template-columns: minmax(0,1fr) 228px; gap: 20px; align-items: start; }
.f-stack { display: grid; gap: 16px; min-width: 0; }
.f-side { position: sticky; top: 100px; padding: 20px; }
.f-side h2 { margin: 0 0 10px; font-size: .9rem; }
.f-side p { margin: 0; line-height: 1.6; }
.f-side ol { padding: 0; margin: 18px 0; list-style: none; display: grid; gap: 5px; }
.f-outline { display: block; border: 0; background: transparent; color: var(--muted); padding: 9px 8px; width: 100%; text-align: left; font-size: .82rem !important; border-radius: 8px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.f-outline:hover { color: var(--ink); background: var(--bg); }
.f-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(var(--tint),.055); margin: 0; flex-wrap: wrap; }
.f-tabs button { border: 0; border-radius: 999px; background: transparent; padding: 9px 16px; color: var(--muted); font-size: .83rem; font-weight: 600; }
.f-tabs button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.09); }
.f-question { scroll-margin-top: 110px; }
.f-question-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.f-number { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: .8rem; font-weight: 700; background: var(--bg); color: var(--muted); }
.f-type { width: auto; font-size: .82rem !important; max-width: 75%; }
.f-question-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding-top: 16px; margin-top: 20px; border-top: 1px solid rgba(var(--tint),.07); }
.f-check { display: flex; align-items: center; gap: 10px; font-size: .86rem; line-height: 1.5; }
.f-icon { width: 34px; height: 34px; padding: 0; min-height: 34px; border: none; border-radius: 9px; font-size: 1rem !important; }
.f-add { width: 100%; border-style: dashed; border-radius: 16px; background: transparent; min-height: 52px; }
.f-title-input { font-size: 1.6rem !important; font-weight: 750; letter-spacing: -.5px; }
#form-title { font-size: 1.6rem; font-weight: 750; letter-spacing: -.5px; }
.f-settings { max-width: 720px; }
.f-link { display: flex; align-items: center; gap: 5px; color: var(--muted); background: var(--bg); border-radius: 11px; border: 1px solid rgba(var(--tint),.14); padding-left: 14px; font-size: .85rem; flex-wrap: wrap; }
.f-link input { border: 0; flex: 1; width: 160px; background: transparent; }
.f-public { display: grid; gap: 16px; }
.f-public-head { padding-top: 30px; }
.f-public-head h1 { font-size: clamp(1.7rem,5vw,2.2rem); color: var(--ink); letter-spacing: -.7px; margin: 0 0 12px; overflow-wrap: anywhere; }
.f-public-head p { color: var(--muted); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.f-google { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid rgba(var(--tint),.09); margin-top: 22px; padding-top: 20px; }
.f-public-head .f-google-title, .f-google-title { margin: 0; color: var(--ink); font-size: .9rem; font-weight: 650; }
.f-public-head .f-google .f-help { margin: 4px 0 0; font-size: .8rem; }
.f-google-setup { border-top: 1px solid rgba(var(--tint),.09); border-bottom: 1px solid rgba(var(--tint),.09); margin: 0 0 22px; padding: 16px 0; }
.f-google-setup summary { cursor: pointer; font-size: .85rem; font-weight: 650; }
.f-google-setup > .f-help { margin: 12px 0 18px; }
.f-answer { margin: 0; min-width: 0; }
.f-answer legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-weight: 650; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.f-answer .f-answer-content { clear: both; }
.f-answer .f-help { margin: 0 0 18px; white-space: pre-line; }
.f-required { color: #d43b46; margin-left: 3px; }
html[data-theme=dark] .f-required { color: #ff9399; }
.f-choice { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid rgba(var(--tint),.1); border-radius: 11px; cursor: pointer; line-height: 1.5; overflow-wrap: anywhere; }
.f-choice:has(input:checked) { background: rgba(var(--tint),.065); border-color: var(--blue); }
.f-choices { display: grid; gap: 9px; }
.f-rating { display: flex; gap: 10px; }
.f-rating .f-choice { flex: 1; justify-content: center; position: relative; padding: 17px 8px; font-weight: 650; }
.f-rating input { position: absolute; opacity: 0; }
.f-rating .f-choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.f-progress { width: 100%; height: 4px; border: 0; border-radius: 5px; overflow: hidden; accent-color: var(--blue); margin: 12px 0 0; }
.f-progress::-webkit-progress-bar { background: var(--surface-2); }
.f-progress::-webkit-progress-value { background: var(--blue); }
.f-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.f-success { padding: 48px 30px; text-align: center; }
.f-success h1 { color: var(--ink); font-size: 1.7rem; }
.f-success p { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; }
.f-response { margin-bottom: 14px; }
.f-response summary { cursor: pointer; font-size: .9rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.f-response dl { display: grid; gap: 20px; margin: 24px 0 0; }
.f-response dt { font-weight: 650; font-size: .85rem; color: var(--muted); margin-bottom: 5px; overflow-wrap: anywhere; }
.f-response dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.f-stat { margin: 0 0 4px; font-size: 2rem; font-weight: 750; color: var(--ink); letter-spacing: -1px; }
@media (max-width: 760px) { .f-editor { grid-template-columns: minmax(0,1fr); } .f-side { position: static; order: -1; } .f-side ol, .f-side .f-help { display: none; } .f-side { display: flex; align-items: center; gap: 16px; justify-content: space-between; } .f-side h2 { margin: 0; } .f-grid { grid-template-columns: 1fr; } }
@media (max-width: 519px) { .f-card { padding: 20px; border-radius: 17px; } .f-head { flex-direction: column; gap: 16px; } .f-head > .f-actions { width: 100%; } .f-tabs { width: 100%; justify-content: space-between; } .f-tabs button { padding: 9px 12px; } .f-toolbar { gap: 16px; } .f-link { gap: 0; } .f-button { padding: 10px 14px; } }
@media (prefers-reduced-motion: reduce) { .forms-main * { scroll-behavior: auto !important; transition: none !important; } }
