*{box-sizing:border-box}html,body{margin:0;height:100%}body{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,Noto Sans,"Apple Color Emoji","Segoe UI Emoji";color:#0f172a;background-color:#f5f5ffcc;background-image:radial-gradient(120% 120% at 50% 0%,#ffffffeb,#ece7ffd9 45%,#d4c6ffad);background-repeat:no-repeat;background-size:cover;background-attachment:fixed;min-height:100%}.app{max-width:min(1920px,98vw);margin:24px auto;padding:0 28px 36px;min-height:calc(100vh - 48px);display:flex;flex-direction:column;gap:24px}.app--editor-ready{min-height:calc(100vh - 48px)}.hero{margin-bottom:12px;text-align:center}.hero .logo{height:60px;width:auto;display:block;margin:12px auto}.hero h1{margin:0 0 6px;font-size:32px;color:#0f172a}.subtitle{margin:0;color:#334155;opacity:.8}.card{background-color:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:22px;box-shadow:0 20px 48px #0f172a14}.input-panel{display:grid;gap:16px;max-width:540px;margin:0 auto}.field{display:grid;gap:6px;text-align:left}label{font-weight:600;color:#1e293b}label .label-help{font-weight:400;color:#65738a;font-size:12.5px;margin-left:6px}input[type=text],input[type=file],input:not([type]),select{padding:11px 14px;border:1px solid #d5dae3;border-radius:12px;font-size:14px;background:#fff;color:inherit}.checkbox-field .checkbox{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#1e293b}.checkbox-field .checkbox input{width:16px;height:16px}.actions{display:flex;gap:10px;justify-content:flex-end}button{padding:11px 18px;border-radius:999px;border:1px solid transparent;cursor:pointer;font-weight:600;transition:all .2s ease}button[disabled]{opacity:.6;cursor:not-allowed}.primary{color:#fff;background-image:linear-gradient(135deg,#9d50bb,#b565f1)}.primary:hover:not([disabled]){filter:brightness(1.05)}.secondary{background:#fff;color:#1f2937;border-color:#d2d7e0}.secondary:hover:not([disabled]){background:#f8fafc}.hint{color:#64748b;font-size:12.5px}.status{padding:8px;color:#475569}.status.error{color:#b91c1c}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.editor-container{text-align:center;display:flex;flex-direction:column;flex:1;min-height:0;gap:18px}.editor-container.card{background:linear-gradient(160deg,#ffffff6b,#ffffff38);border:1px solid rgba(255,255,255,.4);box-shadow:0 28px 68px #c15cb338;-webkit-backdrop-filter:saturate(140%) blur(18px);backdrop-filter:saturate(140%) blur(18px)}.top-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.top-bar .left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.top-bar .right button+button{margin-left:8px}.version-pill{display:inline-block;padding:6px 12px;background:#eef2ff;border:1px solid #e0e7ff;border-radius:999px;font-size:12px;color:#1d4ed8}.xml-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;align-self:stretch;width:100%;padding:9px 14px;border-radius:12px;border:1px solid #d7dde7;background:#f8fafc;color:#1e293b;font-weight:500;box-shadow:none}.xml-toggle:hover{background:#eef2ff;border-color:#c7d2fe}.devtools .drawer{width:100%}.devtools .drawer>summary{width:100%;justify-content:center}.editor-layout{min-height:0;display:flex;justify-content:center}.devtools-drawer{position:relative;display:inline-block}.devtools-drawer>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1px solid #d7dde7;border-radius:12px;background:#f8fafc;color:#1e293b;font-weight:500;-webkit-user-select:none;user-select:none}.devtools-drawer>summary::-webkit-details-marker{display:none}.devtools-drawer>summary:after{content:"▾";font-size:11px;color:#94a3b8;transition:transform .15s ease}.devtools-drawer[open]>summary:after{transform:rotate(180deg)}.devtools-drawer[open]>summary{border-color:#c7d2fe;background:#eef2ff}.devtools-drawer .devtools{position:absolute;top:calc(100% + 8px);left:0;z-index:40;border:1px solid #e2e8f0;background:#f9fbff;border-radius:18px;padding:18px;text-align:left;display:flex;flex-direction:column;gap:12px;width:min(420px,calc(100vw - 48px));box-shadow:0 26px 60px #0f172a1f;max-height:min(70vh,560px);overflow:auto}.toolbar{margin-bottom:4px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:10px;box-sizing:border-box;text-align:left;flex-shrink:0;position:sticky;top:0;z-index:10}.ruler-container{display:flex;justify-content:center;background:#f5f5f5;border:1px solid #e2e8f0;border-radius:12px;padding:0;min-height:25px;margin-bottom:4px;flex-shrink:0;position:sticky;top:62px;z-index:9}.ruler-container:not(:has(.ruler)){display:none}.drawer{margin:8px 0 12px;display:inline-block;text-align:left;width:100%}.drawer>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1px solid #d7dde7;border-radius:12px;background:#f8fafc;color:#1e293b;font-weight:500}.drawer>summary:before{content:"▸";display:inline-block;transform:rotate(0);transition:transform .15s ease;color:#94a3b8}.drawer[open]>summary:before{transform:rotate(90deg)}.insert-panel{margin:10px auto 12px;width:100%;max-width:420px}.insert-row{display:grid;grid-template-columns:1fr;gap:8px}.insert-mode{padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;background:#fff;color:#0f172a;height:42px}.insert-textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;font-family:inherit;resize:vertical;min-height:120px}.insert-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.insert-button{height:42px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.editor-root{min-height:420px;border:none;border-radius:20px;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;display:flex;flex:1;text-align:left;overflow:hidden;min-width:816px;margin-top:18px}#superdoc,#superdoc>*,.editor-root .superdoc,.editor-root .superdoc__layers,.editor-root .superdoc__document,.editor-root .superdoc__sub-document,.editor-root .super-editor-container,.editor-root .superdoc .super-editor,.editor-root .superdoc .super-editor:before,.editor-root .superdoc .super-editor:after{background:transparent!important;box-shadow:none!important;border:none!important}#superdoc .superdoc__layers{border-radius:0!important}#superdoc{--floating-comments-width: 0px;flex:1;min-height:0;overflow:auto;display:flex;justify-content:center;align-items:flex-start;align-self:center;padding:18px 18px 24px}#superdoc.has-floating-comments{padding-right:calc(var(--floating-comments-width, 320px) + 36px)}#superdoc.has-floating-comments>*{transform:translate(calc((var(--floating-comments-width, 0px) + 36px) / 2))}.editor-layout--with-xml #superdoc{padding-right:18px}.editor-layout--with-xml #superdoc .floating-comments,.editor-layout--with-xml #superdoc .superdoc__right-sidebar{display:none!important}.editor-layout--with-xml #superdoc>*{transform:none!important}#superdoc>*{flex:0 0 auto;min-width:0;max-width:none;width:auto}.xml-pane{border:1px solid #e3e8ef;background:#fff;border-radius:20px;padding:12px 20px 18px;color:#0f172a;display:flex;flex-direction:column;gap:10px;text-align:left;box-shadow:0 26px 60px #0f172a14;min-width:816px}.xml-pane__header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.xml-pane__header h3{margin:0;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#1e293b}.xml-pane__actions{display:flex;align-items:center;gap:8px}.xml-pane__actions .secondary{padding:8px 14px;font-size:12px}.xml-dirty{font-size:10px;color:#d97706;text-transform:uppercase;letter-spacing:.1em}.xml-status{margin:6px 0 0;font-size:12px;color:#64748b}.xml-status[data-state=error]{color:#b91c1c}.xml-status[data-state=pending]{color:#d97706}.xml-status[data-state=synced]{color:#047857}.xml-editor-shell{flex:1;border:1px solid rgba(148,163,184,.22);border-radius:14px;overflow:hidden;background:#0b1220;display:flex;min-height:0}.xml-editor-shell .cm-editor{height:100%;width:100%}.xml-editor-shell .cm-scroller{overflow:auto}.xml-pane__footer{display:flex;justify-content:space-between;color:#94a3b8;font-size:12px}.debug-details pre{margin-top:12px;padding:12px;background:#0f172a;color:#f8fafc;border-radius:12px;max-height:240px;overflow:auto;font-size:12px}
