.forms-project,.forms-settings{width:100%;min-width:0;color:var(--ink);--card:var(--panel);--soft:var(--surface);--red:var(--accent)}
.forms-project h1{font-size:19px;margin:12px 0}.forms-project h2,.forms-settings h2{font-size:15px;margin:0 0 12px}.forms-project h3{font-size:14px;margin:0 0 9px}.forms-project h4{font-size:13px;margin:0 0 8px}
.forms-project button,.forms-settings button{padding:8px 12px;border:1px solid var(--line-strong);border-radius:9px;color:var(--ink);background:var(--surface);font:600 12px/1.35 inherit;cursor:pointer;box-shadow:none}.forms-project button:hover,.forms-settings button:hover{background:var(--hover)}.forms-project button:disabled,.forms-settings button:disabled{opacity:.5;cursor:default}.forms-project .forms-primary,.forms-settings .forms-primary{background:var(--accent);color:white;border-color:var(--accent)}
.forms-project input,.forms-project select,.forms-project textarea,.forms-settings input,.forms-settings select,.forms-settings textarea{box-sizing:border-box;max-width:100%;min-width:0;font:inherit;font-size:13px;padding:9px 11px;background:var(--input);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px}.forms-project input[type=checkbox],.forms-settings input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.forms-project textarea{min-height:74px;resize:vertical;width:100%}
.forms-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.forms-tabs button{border-radius:20px;padding:7px 14px;font-weight:500}.forms-tabs .active{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.forms-panel,.forms-settings .forms-library-head{padding:18px;margin:12px 0;background:var(--panel);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.forms-library-head{display:flex;align-items:center;gap:16px;justify-content:space-between}.forms-help,.forms-status{font-size:12px;color:var(--muted)}.forms-status:empty{display:none}.forms-status{padding:10px 0}.forms-settings small.forms-help{display:block;margin:3px 0}.forms-notice{padding:12px;border:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning);border-radius:9px;margin:10px 0}
.forms-actions,.forms-filters,.forms-row-fields{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.forms-filters{margin:16px 0;align-items:flex-end}.forms-field,.forms-filters>label{display:flex;flex-direction:column;gap:5px;min-width:140px;flex:1;font-size:12px;font-weight:600}.forms-filters>label{flex:0 1 220px}.forms-filters select{min-width:150px}.forms-check,.forms-switch{display:flex;gap:8px;align-items:center;font-size:12px}.forms-check{flex-direction:row-reverse;justify-content:flex-end}.forms-row-fields .forms-field{min-width:100px}.forms-row-fields{padding:12px 0;border-bottom:1px solid var(--line)}
.forms-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}.forms-project .forms-template-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:104px;gap:18px;padding:18px 15px;text-align:left;background:var(--panel);border-left:4px solid var(--accent);box-shadow:var(--shadow)}.forms-template-card strong{font-size:13px}.forms-template-card small{color:var(--muted);font-size:11px;font-weight:400}.forms-draft-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:13px;margin:8px 0;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:12px}.forms-draft-row small{color:var(--muted)}.forms-draft-row button{margin-left:auto}
.forms-table-scroll{overflow:auto;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.forms-project table,.forms-settings table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.forms-project th,.forms-settings th{background:var(--surface);font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);white-space:nowrap}.forms-project th,.forms-project td,.forms-settings th,.forms-settings td{padding:11px 13px;border-bottom:1px solid var(--line);vertical-align:middle}.forms-row-actions{white-space:nowrap}.forms-row-actions button{margin:2px}.forms-settings td:nth-child(2){min-width:220px}.forms-settings .forms-switch{white-space:nowrap}
.forms-question{margin:12px 0;padding:17px;background:var(--panel);border:1px solid var(--line);border-radius:11px}.forms-question>.forms-field>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.forms-section-heading{background:var(--accent-soft);border-left:4px solid var(--accent);padding:11px 16px}.forms-section-heading h2{margin:0}.forms-answer-choices{display:flex;gap:6px;flex-wrap:wrap}.forms-answer-choices button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:white}.forms-answer-choices .forms-flag-choice[aria-pressed=true]{background:var(--danger)}.forms-paragraph{font-size:13px;white-space:pre-wrap}.forms-repeat{padding:14px;margin:10px 0;border:1px solid var(--line-strong);border-left:3px solid var(--accent);border-radius:9px}.forms-repeat .forms-question{box-shadow:none}.forms-editor-actions{position:sticky;bottom:0;z-index:2;background:var(--panel);border-top:1px solid var(--line);padding:13px;justify-content:flex-end;box-shadow:0 -4px 15px #00000008}
.forms-signature-entry{max-width:700px}.forms-signature-entry canvas{display:block;width:100%;height:150px;touch-action:none;background:#fff;border:1px solid var(--line-strong);border-radius:9px;margin:8px 0}.forms-signature-entry button{margin-right:8px}.forms-signature-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:10px;border-bottom:1px solid var(--line)}.forms-signature-row img{max-width:260px;max-height:75px;background:white;border-radius:5px}.forms-signature-row small{color:var(--muted)}.forms-photo-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.forms-photo-preview{padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.forms-photo-preview img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:12px auto}.forms-history-row{display:flex;justify-content:space-between;gap:15px;padding:10px 0}.forms-project pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:420px;overflow:auto}
.forms-settings .form-template-editor .fm-bldq{background:var(--panel);border-radius:11px;padding:16px}.forms-settings .form-template-editor .fm-bldq-bar>.pill{font-size:12px;color:var(--accent);font-weight:600;min-width:105px}.forms-settings .form-template-editor .fm-actions{position:static;background:var(--panel);border-top:1px solid var(--line);padding:13px}.forms-settings .form-template-editor .fm-template-palette{padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:11px}.forms-settings .fm-template-palette>input{flex-basis:100%;margin:4px 0 10px}.forms-settings .form-template-editor .fm-template-control{font-size:12px}.forms-settings .fm-template-palette button{border-radius:18px}.forms-settings .form-template-editor .fm-fltrow{padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:11px}.forms-settings .form-template-editor [data-template-action=save]{background:var(--accent);color:white}.forms-settings .fm-template-advanced{margin-top:10px;color:var(--muted);font-size:12px}.forms-settings .fm-template-advanced>summary{cursor:pointer;padding:5px 0}.forms-settings .fm-template-advanced fieldset{margin-top:8px}
@media(max-width:680px){.forms-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.forms-project .forms-template-card{padding:13px 10px;min-height:115px}.forms-panel{padding:13px}.forms-library-head{align-items:flex-start;flex-direction:column}.forms-filters>.forms-field,.forms-filters>label{flex:1 1 135px}.forms-question{padding:13px}.forms-draft-row button{margin-left:0}.forms-repeat{padding:8px}.forms-editor-actions{justify-content:flex-start}.forms-settings .form-template-editor .fm-bldq-bar{align-items:stretch}.forms-settings .form-template-editor .fm-bldq-bar>.fm-template-control{flex-basis:100%}}
