:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f6f7f9;color:#18202b;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#12343b;color:#f7fbfb;display:flex;flex-direction:column;gap:24px;padding:20px 14px}.brand{align-items:center;display:flex;gap:12px;padding:6px 8px 14px}.brand svg{color:#f4b860;height:30px;width:30px}.brand div{display:grid;gap:2px}.brand strong{font-size:18px;line-height:1}.brand span{color:#a9c5c7;font-size:12px;text-transform:uppercase}.sidebar nav{display:grid;gap:4px}.sidebar a{align-items:center;border-radius:8px;color:#d7e7e8;display:flex;gap:10px;min-height:42px;padding:0 10px;text-decoration:none}.sidebar a:hover,.sidebar a.active{background:#1d4b52;color:#fff}.sidebar a.active{box-shadow:inset 3px 0 #f4b860}.sidebar svg{flex:0 0 auto;height:18px;width:18px}.workspace{min-width:0}.topbar{align-items:center;background:#fff;border-bottom:1px solid #dce3e8;display:flex;gap:16px;justify-content:flex-end;min-height:64px;padding:0 24px;position:sticky;top:0;z-index:5}.identity{display:grid;gap:2px;min-width:0;text-align:right}.identity span,.muted{color:#65717f;font-size:13px}.content{padding:24px}.page-header{align-items:flex-start;display:flex;gap:20px;justify-content:space-between;margin-bottom:18px}.page-header h1{font-size:26px;line-height:1.2;margin:0}.page-header p{color:#5f6d7a;margin:6px 0 0;max-width:780px}.page-actions,.inline-actions,.toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.toolbar{align-items:flex-end;background:#fff;border:1px solid #dce3e8;border-radius:8px;margin-bottom:14px;padding:12px}.toolbar label,.form-grid label,.stack label{color:#3c4856;display:grid;font-size:13px;font-weight:600;gap:6px}input,textarea,select{background:#fff;border:1px solid #cfd8df;border-radius:8px;color:#18202b;min-height:38px;padding:8px 10px}textarea{min-height:100px;resize:vertical}input[type=checkbox]{min-height:auto}.stack label.checkbox-line,.form-grid label.checkbox-line,.toolbar label.checkbox-line,.checkbox-line{align-items:center;display:inline-flex;gap:8px;justify-content:flex-start;max-width:100%;width:max-content}.checkbox-line input[type=checkbox]{flex:0 0 auto;height:18px;margin:0;width:18px}.button,.icon-button{align-items:center;border:1px solid #cfd8df;border-radius:8px;display:inline-flex;font-weight:650;gap:8px;justify-content:center;min-height:38px;padding:8px 12px}.button{background:#fff;color:#1d2b3a}.button.primary{background:#1f6f78;border-color:#1f6f78;color:#fff}.button.danger{background:#fff5f4;border-color:#efb2ab;color:#9f2f24}.button.subtle{background:#edf4f5;border-color:#c9dbdf;color:#12343b}.button.small{min-height:32px;padding:5px 9px}.icon-button{aspect-ratio:1;background:#fff;color:#1d2b3a;padding:8px;width:38px}.button svg,.icon-button svg{height:16px;width:16px}.grid-2{display:grid;gap:16px;grid-template-columns:minmax(0,1fr) minmax(360px,.6fr)}.grid-3{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.panel,.table-panel,.form-panel{background:#fff;border:1px solid #dce3e8;border-radius:8px}.panel,.form-panel{padding:16px}.panel h2,.form-panel h2,.table-panel h2{font-size:18px;line-height:1.25;margin:0 0 12px}.table-panel{overflow:hidden}.table-scroll{overflow-x:auto}table{border-collapse:collapse;min-width:760px;width:100%}th,td{border-bottom:1px solid #e7edf1;padding:12px;text-align:left;vertical-align:top}th{background:#f2f5f7;color:#3a4755;font-size:12px;text-transform:uppercase}tbody tr:hover{background:#fbfcfd}tr.selected{background:#edf7f8}.row-click{cursor:pointer}.form-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.full{grid-column:1 / -1}.stack{display:grid;gap:12px}.section-stack{display:grid;gap:16px}.stat{background:#fff;border:1px solid #dce3e8;border-radius:8px;display:grid;gap:8px;padding:16px}.stat span{color:#607080;font-size:13px}.stat strong{font-size:28px}.badge{align-items:center;background:#edf4f5;border:1px solid #c9dbdf;border-radius:999px;color:#12343b;display:inline-flex;font-size:12px;font-weight:700;min-height:24px;padding:3px 9px;white-space:nowrap}.badge.warning{background:#fff5dd;border-color:#f2cf83;color:#795200}.badge.success{background:#e9f7ef;border-color:#b9e2c8;color:#1d6b3d}.badge.danger{background:#fff0ef;border-color:#efb2ab;color:#9f2f24}.pagination{align-items:center;border-top:1px solid #e7edf1;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;padding:12px}.pagination label{align-items:center;color:#5f6d7a;display:flex;gap:8px}.alert{align-items:center;border-radius:8px;display:flex;gap:10px;margin-bottom:12px;padding:10px 12px}.alert.error{background:#fff0ef;border:1px solid #efb2ab;color:#8f2d23}.empty-state,.center-screen,.state-panel{align-items:center;display:grid;justify-items:center;text-align:center}.center-screen{min-height:100vh;padding:24px}.state-panel{background:#fff;border:1px solid #dce3e8;border-radius:8px;gap:12px;max-width:520px;padding:28px}.state-panel svg,.empty-state svg{color:#1f6f78;height:34px;width:34px}.empty-state{color:#5f6d7a;gap:8px;padding:34px 16px}.file-preview{align-items:center;display:flex;gap:12px}.file-preview>div:last-child{display:grid;gap:4px}.image-preview{align-items:center;aspect-ratio:4 / 3;background:#eef3f4;border:1px solid #dce3e8;border-radius:8px;display:flex;flex:0 0 128px;justify-content:center;overflow:hidden}.image-preview img{height:100%;object-fit:cover;width:100%}.field-error{color:#9f2f24;font-size:12px}.json-preview{background:#17212b;border-radius:8px;color:#eaf3f4;font-family:Cascadia Code,Consolas,monospace;font-size:12px;line-height:1.45;max-height:360px;overflow:auto;padding:12px;white-space:pre-wrap}.rich-text-field{display:grid;gap:0}.rich-text-label{color:#3c4856;font-size:13px;font-weight:600;margin-bottom:6px}.rich-text-toolbar{align-items:center;background:#f5f8fa;border:1px solid #cfd8df;border-bottom:0;border-radius:8px 8px 0 0;display:flex;flex-wrap:wrap;gap:4px;padding:6px}.rich-text-toolbar select{min-height:32px;padding:4px 8px}.rich-text-tool{background:#fff;border:1px solid #d1d9df;border-radius:5px;color:#263541;font-size:12px;font-weight:700;min-height:32px;padding:4px 8px}.rich-text-tool:hover,.rich-text-tool:focus-visible{background:#e6f2f3;border-color:#81adb2}.rich-text-editor{background:#fff;border:1px solid #cfd8df;border-radius:0 0 8px 8px;line-height:1.55;min-height:180px;outline:0;overflow-wrap:anywhere;padding:12px}.rich-text-editor:focus{border-color:#2e7f88;box-shadow:0 0 0 3px #2e7f8824}.rich-text-editor:empty:before{color:#8a98a5;content:attr(data-placeholder);pointer-events:none}.rich-text-editor h2,.rich-text-editor h3,.rich-text-content h2,.rich-text-content h3{margin:.7em 0 .35em}.rich-text-editor p,.rich-text-editor blockquote,.rich-text-editor ul,.rich-text-editor ol,.rich-text-content p,.rich-text-content blockquote,.rich-text-content ul,.rich-text-content ol{margin:.45em 0}.rich-text-editor blockquote,.rich-text-content blockquote{border-left:4px solid #9bc0c4;color:#4d626b;padding-left:12px}.rich-text-editor a,.rich-text-content a{color:#176d78;text-decoration:underline}.rich-text-hint{color:#72808c;font-size:11px;margin-top:5px}.rich-text-content{line-height:1.55;overflow-wrap:anywhere}.tabs{border-bottom:1px solid #dce3e8;display:flex;flex-wrap:wrap;gap:4px;margin-bottom:14px}.tabs button{background:transparent;border:0;border-bottom:3px solid transparent;color:#5f6d7a;font-weight:700;min-height:42px;padding:0 12px}.tabs button.active{border-color:#1f6f78;color:#12343b}.spin{animation:spin .9s linear infinite}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:1080px){.app-shell{grid-template-columns:86px minmax(0,1fr)}.brand div,.sidebar a span{display:none}.sidebar{align-items:center}.sidebar a{justify-content:center;width:48px}.grid-2,.grid-3{grid-template-columns:1fr}}@media(max-width:720px){.app-shell{display:block}.sidebar{align-items:stretch;bottom:0;flex-direction:row;gap:8px;left:0;overflow-x:auto;padding:8px;position:fixed;right:0;z-index:10}.brand{display:none}.sidebar nav{display:flex;gap:6px}.sidebar a{min-width:48px}.topbar{justify-content:space-between;padding:0 14px}.content{padding:16px 12px 88px}.page-header{display:grid}.form-grid{grid-template-columns:1fr}}
