:root{color-scheme:light;font-family:Inter,system-ui,sans-serif;line-height:1.5;font-weight:400;color:var(--color-text);background-color:var(--color-bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--color-bg: #f6f7f9;--color-surface: #ffffff;--color-surface-muted: #f9fafb;--color-surface-subtle: #f8fafc;--color-text: #1a1a1a;--color-text-strong: #111827;--color-text-secondary: #1f2937;--color-text-tertiary: #334155;--color-text-muted: #475569;--color-text-subtle: #4b5563;--color-border: #e5e7eb;--color-border-strong: #d1d5db;--color-border-subtle: #e2e8f0;--color-border-accent: #cbd5f5;--color-link: #2563eb;--color-link-strong: #1d4ed8;--color-button-bg: #eef2ff;--color-button-bg-hover: #e0e7ff;--color-focus: #2563eb;--color-danger: #b91c1c;--color-success: #047857;--color-success-strong: #15803d;--color-badge-bg: #dbeafe;--color-badge-text: #1d4ed8;--color-note-bg: #eef2ff;--color-note-border: #cbd5f5;--color-input-bg: #ffffff;--shadow-soft: 0 12px 30px rgba(15, 23, 42, .08);--shadow-medium: 0 10px 24px rgba(15, 23, 42, .08);--shadow-subtle: 0 8px 20px rgba(15, 23, 42, .08)}:root[data-theme=dark]{color-scheme:dark;--color-bg: #191919;--color-surface: #232323;--color-surface-muted: #1f1f1f;--color-surface-subtle: #242424;--color-text: #f3f4f6;--color-text-strong: #f9fafb;--color-text-secondary: #eef2f7;--color-text-tertiary: #dde4ee;--color-text-muted: #d2dbea;--color-text-subtle: #bcc7db;--color-border: #4b5563;--color-border-strong: #6b7280;--color-border-subtle: #3f4754;--color-border-accent: #7c879c;--color-link: #93c5fd;--color-link-strong: #bfdbfe;--color-button-bg: #1e293b;--color-button-bg-hover: #1f2a44;--color-focus: #38bdf8;--color-danger: #f87171;--color-success: #34d399;--color-success-strong: #4ade80;--color-badge-bg: #1e3a8a;--color-badge-text: #bfdbfe;--color-note-bg: #1e3a8a;--color-note-border: #3b82f6;--color-input-bg: #1f1f1f;--shadow-soft: 0 12px 30px rgba(0, 0, 0, .45);--shadow-medium: 0 10px 24px rgba(0, 0, 0, .45);--shadow-subtle: 0 8px 20px rgba(0, 0, 0, .4)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background-color:var(--color-bg);color:var(--color-text)}#root{min-height:100vh}.app{min-height:100vh;display:flex;flex-direction:column;padding:2rem;gap:2rem}.app__header{background:var(--color-surface);border-radius:16px;padding:1.5rem 2rem;box-shadow:var(--shadow-soft)}.app__header-content{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}.app__header-brand{flex:1;min-width:240px}.app__header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:1rem}.app__header-settings{display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}.app__topbar-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:.75rem}.app__topbar-action{text-decoration:none;display:inline-flex;align-items:center;gap:.35rem;min-width:7.5rem;justify-content:center;font-size:1rem}.app__share-fallback{width:min(320px,100%);background:var(--color-surface-subtle);border:1px solid var(--color-border-subtle);border-radius:12px;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;box-shadow:var(--shadow-subtle)}.app__share-fallback-description{margin:0;color:var(--color-text-tertiary)}.app__share-fallback-label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--color-text-tertiary)}.app__share-fallback-label input{border:1px solid var(--color-border-accent);border-radius:8px;padding:.35rem .5rem;font-size:.9rem;background-color:var(--color-input-bg);color:var(--color-text)}.app__share-fallback-label input:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.app__share-fallback-actions{display:flex;justify-content:flex-end}.app__header h1{margin:0 0 .25rem;font-size:2rem}.app__brand-link{color:inherit;text-decoration:none}.app__brand-link:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}.app__brand-link:focus-visible{outline:2px solid var(--color-focus);outline-offset:4px;border-radius:6px}.app__subtitle{margin:0;color:var(--color-text-muted)}.app__locale-switch,.app__theme-switch{display:flex;align-items:center;gap:.75rem;font-size:.95rem;color:var(--color-text-secondary)}.app__select{padding:.4rem 2rem .4rem .6rem;border-radius:8px;border:1px solid var(--color-border-strong);background-color:var(--color-input-bg);color:var(--color-text);appearance:none;-webkit-appearance:none;-moz-appearance:none}.app__select:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.app__select-wrapper{position:relative;display:inline-flex;align-items:center}.app__select-chevron{position:absolute;right:.6rem;pointer-events:none;color:var(--color-text-subtle)}.app__content{display:flex;width:100%;flex:1}.app__card{background:var(--color-surface);border-radius:16px;padding:1.5rem 2rem;box-shadow:var(--shadow-medium);width:100%;max-width:960px}.app__card h2{margin-top:0}.app__card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;flex-wrap:wrap;margin-bottom:1rem}.app__link{color:var(--color-link);text-decoration:none;font-weight:600}.app__link:hover{text-decoration:underline}.app__button{border:1px solid var(--color-border-accent);background:var(--color-button-bg);color:var(--color-link-strong);font:inherit;font-weight:600;border-radius:8px;padding:.45rem .9rem;cursor:pointer}.app__button:hover{background:var(--color-button-bg-hover)}.app__button:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.app__error{color:var(--color-danger);margin:.5rem 0 1rem}.app__footer{margin-top:auto}.app__footer-content{background:var(--color-surface);border-radius:16px;padding:1.25rem 2rem;box-shadow:var(--shadow-medium)}.app__footer-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));align-items:center;gap:.75rem 1.5rem}.app__footer-link{color:var(--color-link);text-decoration:none;font-weight:600}.app__footer-link:hover{text-decoration:underline}.app__footer-link--left{justify-self:start;text-align:left}.app__footer-link--center-left,.app__footer-link--center-right{justify-self:center;text-align:center}.app__footer-link--right{justify-self:end;text-align:right}@media(max-width:720px){.app__footer-links{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));justify-items:center}.app__footer-link{justify-self:center;text-align:center}}@media(max-width:420px){.app__footer-links{grid-template-columns:1fr}}.legal-page{display:flex;flex-direction:column;gap:.75rem}.legal-page ul{margin:0;padding-left:1.25rem}.formpack-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}.formpack-card{border:1px solid var(--color-border);border-radius:12px;padding:1rem 1.25rem;display:flex;flex-direction:column;justify-content:space-between;gap:1rem;background:var(--color-surface-muted);text-decoration:none;color:inherit;transition:background-color .2s ease-in-out,border-color .2s ease-in-out}.formpack-card:hover,.formpack-card:focus-visible{background:var(--color-surface);border-color:var(--color-border-strong)}.formpack-card:hover h3,.formpack-card:hover .formpack-card__link,.formpack-card:focus-visible h3,.formpack-card:focus-visible .formpack-card__link{text-decoration:underline}.formpack-card:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.formpack-card h3{margin:0 0 .5rem;font-size:1.1rem;color:var(--color-text-strong)}.formpack-card__description{margin:0;color:var(--color-text-muted)}.formpack-card__link{align-self:flex-start;color:var(--color-link-strong);font-weight:600;text-decoration:none}.formpack-card__link:hover{text-decoration:underline}.formpack-detail{display:grid;gap:2rem}.formpack-detail__assets,.formpack-detail__form{display:grid;gap:1.5rem;min-width:0}.formpack-detail__section h3{margin:0 0 .75rem}.formpack-detail__section>dl{margin:0;display:grid;gap:.75rem}.formpack-detail__section>dl>div{display:grid;grid-template-columns:minmax(140px,200px) 1fr;gap:.75rem}.formpack-detail__section dt{font-weight:600;color:var(--color-text-secondary)}.formpack-detail__section dd{margin:0;color:var(--color-text-strong);word-break:break-word}.formpack-import__hint{margin:0 0 .75rem;color:var(--color-text-muted);font-size:.95rem}.formpack-import__field{display:grid;gap:.5rem;margin-bottom:.75rem}.formpack-import__file{width:100%;padding:.6rem;border-radius:8px;border:1px solid var(--color-border-strong);font-family:inherit;font-size:.95rem;background-color:var(--color-input-bg);color:var(--color-text)}.formpack-import__file:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.formpack-import__file-name{margin:0;color:var(--color-text-subtle);font-size:.9rem}.formpack-import__options{margin:0 0 .75rem;padding:.75rem 1rem;border-radius:12px;border:1px solid var(--color-border);display:grid;gap:.5rem}.formpack-import__options legend{font-weight:600;margin-bottom:.25rem}.formpack-import__option{display:flex;gap:.5rem;align-items:flex-start}.formpack-import__note{margin:0 0 .5rem 1.75rem;color:var(--color-text-subtle);font-size:.9rem}.formpack-import__actions{margin-top:.75rem}.formpack-import__success{color:var(--color-success);margin:.5rem 0 0}.formpack-form{display:grid;gap:1rem}.formpack-form *,.formpack-form *:before,.formpack-form *:after{box-sizing:border-box}.formpack-form label{font-weight:600;font-size:.95rem;line-height:1.4}.formpack-form input,.formpack-form textarea,.formpack-form select{width:100%;max-width:100%;padding:.5rem .6rem;border:1px solid var(--color-border-strong);border-radius:8px;background-color:var(--color-input-bg);color:var(--color-text)}.formpack-form input:focus-visible,.formpack-form textarea:focus-visible,.formpack-form select:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.formpack-form input[type=checkbox]{width:auto;max-width:none;padding:0;margin:0}.formpack-form label:has(>input[type=checkbox]){display:inline-flex;align-items:center;gap:.5rem}.formpack-form fieldset{margin:0;padding:1rem;border-radius:12px;border:1px solid var(--color-border)}.formpack-form button,.formpack-form .btn{font-size:.95rem;padding:.5rem .85rem;border-radius:8px;min-height:2.5rem}.formpack-array{display:grid;gap:.75rem;margin:0}.formpack-array__items{display:grid;gap:.75rem}.formpack-array__add{display:flex}.formpack-array__add-button{width:100%}.formpack-array-button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem}.formpack-array-item{border:1px solid var(--color-border);border-radius:12px;padding:.75rem;display:grid;gap:.75rem;background:var(--color-surface)}.formpack-array-item__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}.formpack-array-item__title{margin:0;font-weight:600;font-size:.95rem}.formpack-array-item__content>fieldset{margin:0;padding:0;border:0}.formpack-array-item__content>fieldset>legend{display:none}.formpack-form legend{padding:0 .25rem;font-weight:600;font-size:1rem}.formpack-form .field-description,.formpack-form .help-block{margin:.35rem 0 0;color:var(--color-text-muted);font-size:.9rem;line-height:1.4}.formpack-form__actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:flex-end}.formpack-docx-export{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-right:auto}.formpack-docx-export__label{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:.9rem}.formpack-docx-export__select{min-width:180px;min-height:2.5rem;padding:.5rem .85rem;font-size:.95rem;line-height:1.4;border:1px solid var(--color-border-strong);border-radius:8px;background-color:var(--color-input-bg);color:var(--color-text)}.formpack-docx-export__select:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}.formpack-docx-export__success{color:var(--color-success-strong);font-weight:600;font-size:.9rem}.formpack-records__actions,.formpack-snapshots__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.75rem}.formpack-records__list,.formpack-snapshots__list{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}.formpack-records__item,.formpack-snapshots__item{border:1px solid var(--color-border);border-radius:10px;padding:.75rem .9rem;background:var(--color-surface);display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.formpack-records__item--active{border-color:var(--color-border-accent);background:var(--color-button-bg)}.formpack-records__title,.formpack-snapshots__title{margin:0;font-weight:600}.formpack-records__meta,.formpack-snapshots__meta,.formpack-records__empty,.formpack-snapshots__empty{margin:.25rem 0 0;color:var(--color-text-subtle);font-size:.9rem}.formpack-records__item-actions,.formpack-snapshots__item-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.formpack-records__badge{background:var(--color-badge-bg);color:var(--color-badge-text);border-radius:999px;padding:.2rem .6rem;font-size:.75rem;font-weight:600}.formpack-preview{background:var(--color-surface-subtle);border:1px solid var(--color-border-subtle);border-radius:12px;padding:1rem;overflow-x:auto;font-size:.9rem;white-space:pre-wrap;max-width:100%}.formpack-document-preview{background:var(--color-surface-subtle);border:1px solid var(--color-border-subtle);border-radius:12px;padding:1rem;font-size:.95rem}.formpack-document-preview__empty{margin:0;color:var(--color-text-subtle);font-size:.9rem}.formpack-document-preview__section{padding-bottom:.85rem;margin-bottom:.85rem;border-bottom:1px solid var(--color-border-subtle)}.formpack-document-preview__section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.formpack-document-preview__section h4{margin:0 0 .5rem;font-size:1rem}.formpack-document-preview__section h5{margin:.75rem 0 .35rem;font-size:.9rem;color:var(--color-text-tertiary)}.formpack-document-preview__section p{margin:0 0 .5rem}.formpack-document-preview__section p:last-child{margin-bottom:0}.formpack-document-preview__section dl{margin:0}.formpack-document-preview__section dl div{display:grid;grid-template-columns:minmax(0,160px) minmax(0,1fr);gap:.35rem .75rem;padding:.2rem 0}.formpack-document-preview__section dt{font-weight:600}.formpack-document-preview__section dd{margin:0}.formpack-document-preview__list{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}.formpack-document-preview__list li{padding:.5rem .75rem;border:1px solid var(--color-border-subtle);border-radius:10px;background:var(--color-surface)}.formpack-document-preview__note{margin-top:.75rem;padding:.5rem .75rem;border-left:3px solid var(--color-note-border);background:var(--color-note-bg);border-radius:8px}
