*{box-sizing:border-box}body{margin:0;min-height:100vh;background-color:#fcfbff;background-image:radial-gradient(ellipse at 90% 8%,#eee4ff 0,transparent 38%),radial-gradient(ellipse at 0 35%,#fff0dc 0,transparent 32%);background-attachment:fixed;color:#24304a;font:15px system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer;background:#fff;border:1px solid #dbe0e9;border-radius:8px;padding:10px 14px;color:inherit}button:hover{border-color:#6b5ce7}button:disabled{opacity:.4;cursor:default}.primary{background:#6554df;color:white;border-color:#6554df}.danger{color:#b32c45}input,select{width:100%;padding:9px;border:1px solid #dbe0e9;border-radius:7px;background:white}label{display:block;margin:12px 0}label>span{display:block;font-size:12px;color:#68748c;margin-bottom:5px}aside{position:fixed;width:250px;inset:0 auto 0 0;background:#fff;border-right:1px solid #e4e7ef;padding:30px 18px;overflow:auto}aside h2{margin:0 10px 5px}aside p{font-size:12px;color:#8a94a6;margin:0 10px 35px}nav button{display:block;text-align:left;width:100%;border:0;margin:5px 0}nav button.active{background:#eeebff;color:#6554df}.courseLink{padding-left:28px;font-size:13px}main{margin-left:250px;padding:36px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:28px}h1{font-size:28px;margin:0 0 6px}h3{margin-top:0}.muted{color:#7a8498}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.card,.panel{background:white;border:1px solid #e3e7ef;border-radius:13px;padding:20px}.card img{width:100%;height:170px;object-fit:contain;background:#f7f8fb;cursor:zoom-in}.actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.empty{padding:65px;text-align:center;background:white;border:1px dashed #d4d9e5;border-radius:14px}.auth{max-width:430px;margin:12vh auto;padding:35px}.editor{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.stage{overflow:auto;background:#e4e7ef;border-radius:10px;padding:15px;touch-action:none}.stage canvas{display:block;max-width:100%;height:auto;background:white;cursor:move}.fields{max-height:480px;overflow:auto}.fields button{display:block;width:100%;text-align:left;margin:5px 0}.fields .selected{background:#eeebff;border-color:#6554df}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}dialog{border:0;border-radius:16px;max-width:95vw;max-height:90vh;padding:25px}dialog::backdrop{background:#16203899}#closeModal{float:right;margin-bottom:12px}#modalBody{clear:both}#modalBody img{max-width:85vw;max-height:75vh}table{border-collapse:collapse;font-size:13px}th,td{padding:10px;border:1px solid #e0e4ec;text-align:left;white-space:pre-wrap}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#24304a;color:white;border-radius:9px;padding:14px 22px;display:none;z-index:9}.help{font-size:12px;line-height:1.6;color:#7a8498}progress{width:100%;margin-top:15px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}.toolbar input{width:80px}@media(max-width:850px){aside{position:static;width:auto;padding:15px}aside p{margin-bottom:12px}main{margin:0;padding:18px}.editor{grid-template-columns:1fr}header{align-items:flex-start;flex-wrap:wrap}}
.column-add{display:flex;gap:10px;align-items:center}.column-add select{min-width:0;flex:1}.blue{background:#1874e8;border-color:#1874e8;color:#fff;white-space:nowrap}.blue:hover{background:#0c61cd;border-color:#0c61cd}.favorite-colors{display:flex;gap:6px;margin:7px 0 16px}.swatch{display:block;width:28px;height:28px;flex:0 0 28px;border:1px solid #b7c0ce;border-radius:5px;padding:0}.swatch:hover{outline:2px solid #1874e8;outline-offset:2px}.empty-swatch{background:repeating-linear-gradient(45deg,#f3f5f8,#f3f5f8 4px,#e8ecf2 4px,#e8ecf2 8px)}.field-row{display:flex;gap:8px;align-items:center}.field-row input,.snap-option input{width:auto;flex:0 0 auto}.field-row button{min-width:0;overflow-wrap:anywhere}.alignment-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.alignment-actions button{font-size:12px;padding:8px}.snap-option{font-size:13px;display:flex;align-items:center;gap:8px}
.font-select-row{display:flex;gap:8px;align-items:center}.font-select-row select{flex:1;min-width:0}.font-gallery-toggle{display:grid;place-items:center;flex:0 0 43px;padding:8px}.font-gallery{width:min(1000px,82vw)}.font-gallery-filters{display:flex;gap:12px;margin:20px 0}.font-gallery-filters input,.font-gallery-filters select{flex:1;min-width:0}.font-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.font-gallery-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:130px;padding:12px 14px;overflow:hidden}.font-gallery-card.chosen{border:2px solid #1874e8;background:#f1f7ff}.font-gallery-name{font-size:12px;font-weight:600}.font-gallery-category{font-size:10px;color:#7a8498;margin:3px 0 5px}.font-gallery-sample{font-size:42px;line-height:1.3;overflow-wrap:anywhere;width:100%;padding:4px 0 8px}.font-gallery-status{font-size:10px;color:#7a8498}.font-gallery-status:empty{display:none}@media(max-width:700px){.font-gallery-grid{grid-template-columns:1fr}.font-gallery-filters{flex-direction:column}.font-gallery{width:80vw}}
.fields .field-row button{display:flex;align-items:center;gap:9px}.field-kind{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;background:#edf3fe;border-radius:5px;color:#1874e8}.fields .field-row button>span:last-child{min-width:0;overflow-wrap:anywhere}
html{scrollbar-gutter:stable}.editor{overflow-anchor:none}.stage canvas{user-select:none;-webkit-user-select:none}
.field-add-section{min-width:0}.participant-toolbar{margin-top:10px;margin-bottom:12px;gap:7px}.participant-toolbar button{padding:8px 10px}.participant-toolbar #recordLabel{font-size:13px}
.static-toolbar{margin-top:10px;margin-bottom:12px}.static-toolbar button{padding:8px 10px}.list-controls{min-width:0}
.history-button{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;padding:8px!important;color:#6554df}.history-button:not(:disabled):hover{background:#eeebff}.static-toolbar{gap:8px}
.font-gallery-sample{white-space:pre-wrap}
.template-filters{margin-bottom:20px}.template-search-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.template-search-row>input{flex:1;min-width:180px}.untagged-option{display:flex;align-items:center;gap:7px;margin:0;white-space:nowrap}.untagged-option input{width:auto}.tag-filter-list,.tag-suggestions,.card-tags{display:flex;flex-wrap:wrap;gap:7px}.tag-filter-list{margin-top:16px}.tag-chip{font-size:12px;border-radius:20px;padding:5px 10px;background:#f6f5fc;border-color:#e3dff4;color:#605187}.tag-chip span{opacity:.65;margin-left:3px}.tag-chip.active{background:#6554df;border-color:#6554df;color:white}.card-tags{margin-top:12px}.tag-editor{width:min(650px,80vw)}.tag-suggestions{max-height:260px;overflow:auto;padding:3px}.template-filters .help{margin-bottom:0}[hidden]{display:none!important}
.share-option{display:flex;align-items:center;gap:8px}.share-option input{width:auto}.impersonation-banner{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-left:250px;padding:12px 24px;background:#eeeaff;border-bottom:1px solid #d6ccfb}.impersonating aside{top:65px}.admin-section{margin-top:22px}.admin-invite-create form{display:flex;align-items:flex-end;gap:12px}.admin-invite-create label{flex:1;margin:0}.admin-table-scroll{overflow-x:auto}.admin-table{width:100%;font-size:13px}.admin-table td{vertical-align:top;min-width:125px}.admin-table th{background:#f6f7fb}.admin-table .actions{margin-top:0}.admin-table button{font-size:12px;padding:7px 9px;white-space:nowrap}.quota-edit{display:flex;gap:6px}.quota-edit input{width:80px}.admin-invite-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.admin-invite-heading h3{margin:0}.admin-invite-heading select{width:auto}.invite-code{user-select:all;white-space:nowrap;font-size:14px}.template-search-row #templateOwner{width:auto;max-width:250px}@media(max-width:850px){.impersonation-banner{margin-left:0;position:relative;flex-wrap:wrap}.impersonating aside{top:auto}.admin-invite-create form{align-items:stretch;flex-direction:column}}
textarea{width:100%;padding:9px;border:1px solid #dbe0e9;border-radius:7px;background:white;color:inherit;font:inherit;resize:vertical;min-height:85px}textarea:focus{outline:2px solid #c5bdf8;outline-offset:1px}

textarea.inplace-editor{z-index:1000;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;min-height:0;resize:none;overflow:hidden;background:transparent;outline:1px solid #6554df;outline-offset:1px;caret-color:currentColor;white-space:pre-wrap;}

.stage{position:relative}#selectionTools{position:absolute;display:flex;flex-direction:column;gap:5px;z-index:4}#selectionTools button{width:28px;height:28px;padding:0;border-radius:3px;background:#fff;color:#6554df;border-color:#6554df;touch-action:none;line-height:1}#selectionTools button{cursor:pointer}#selectionTools .spacing-control{cursor:ns-resize}

#selectionTools .selection-font-control{position:absolute;left:34px;top:0;display:flex;flex-direction:column;gap:0}#selectionTools .selection-font-control button,#selectionTools .selection-font-control span{display:grid;place-items:center;width:32px;height:28px;background:white;border:1px solid #6554df;color:#6554df;border-radius:0;font-size:14px}#selectionTools .selection-font-control span{font-size:11px;border-top:0;border-bottom:0;cursor:default}

#selectionTools .selection-formatting{position:absolute;display:flex;gap:4px;bottom:calc(100% + 6px);right:0;align-items:center}#selectionTools .selection-formatting .selection-font-picker{width:auto;padding:0 8px}#selectionTools .selection-formatting input{width:28px;height:28px;padding:2px;cursor:pointer}#selectionTools button[aria-pressed="true"]{background:#ded8ff}

#selectionTools .selection-formatting{padding-bottom:26px}#selectionTools .selection-recent-colors{position:absolute;bottom:0;right:0;display:flex;gap:4px}#selectionTools .selection-recent-colors button,#selectionTools .selection-recent-colors button:first-child{width:20px;height:20px;min-width:20px;padding:0;border:1px solid #a9afbf;border-radius:3px}#selectionTools .selection-recent-colors button:hover{outline:2px solid #6554df;outline-offset:1px}

#selectionTools .selection-formatting{padding-bottom:0}#selectionTools .selection-color-menu{position:absolute;right:0;top:calc(100% + 6px);padding:10px;background:white;border:1px solid #dbe0e9;border-radius:8px;box-shadow:0 4px 16px #24304a25;min-width:184px;z-index:10}#selectionTools .selection-color-menu label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;font-size:12px;white-space:nowrap}#selectionTools .selection-color-menu .selection-recent-colors{position:static;display:flex;gap:4px}

.editor{grid-template-columns:minmax(0,1fr)}

.background-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.background-picker span{font-size:12px}.background-gallery{width:min(1000px,82vw)}.background-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-top:18px}.background-card{display:flex;flex-direction:column;gap:10px;text-align:left;padding:10px}.background-card img{width:100%;height:180px;object-fit:contain;background:#f5f6fa}.background-card.chosen{border:2px solid #6554df;background:#eeebff}.background-card span{overflow-wrap:anywhere}

.page-orientation{margin:0 0 0 8px}.page-orientation select{width:auto;padding:7px}.page-orientation>span{font-size:11px;margin-bottom:2px}

.document-name{width:50%}@media(max-width:600px){.document-name{width:100%}}

.scenario-picker{margin:0}.scenario-picker select{width:min(280px,100%);padding:7px}.static-toolbar{align-items:flex-end}

.orientation-badge{display:inline-block;font-size:11px;color:#6554df;background:#eeebff;border-radius:5px;padding:4px 7px}.background-card .orientation-badge{align-self:flex-start}

.background-previews{display:flex;width:100%;gap:5px;align-items:center}.background-previews img{min-width:0;flex:1;width:60%;height:150px}.background-previews .portrait-preview{width:35%;flex:0 1 35%;height:150px}

.background-hover-preview{position:fixed;top:50%;bottom:auto;transform:translateY(-50%);margin:0;width:48vw;height:76vh;max-height:calc(100vh - 32px);padding:14px;border:1px solid #d9d3ef;border-radius:12px;background:#fff;box-shadow:0 12px 48px #16203845;pointer-events:none;overflow:hidden}.background-hover-preview:popover-open{display:flex;flex-direction:column;gap:8px}.background-hover-preview img{width:100%;height:calc(100% - 30px);min-height:0;object-fit:contain;background:#f5f6fa}.background-hover-preview span{font:13px system-ui,sans-serif;color:#24304a;text-align:center}@media(max-width:600px){.background-hover-preview{width:calc(100vw - 32px);height:55vh}}

/* Floating editor toolbar */
.editor-heading{gap:20px;margin-bottom:20px;align-items:center}.editor-document{min-width:0;flex:1}.editor-heading .document-name{width:min(440px,100%);margin:0}.editor-heading .document-name>span{font-size:11px;margin:0 0 2px}.editor-heading #courseName{background:transparent;border:1px solid transparent;padding:5px 0;font-size:18px;font-weight:600;border-radius:5px}.editor-heading #courseName:hover{border-color:#e1dced}.editor-heading #courseName:focus{background:white;padding-left:8px}.editor-heading #autosaveStatus{display:block;font-size:11px;min-height:17px;margin-top:3px}.editor-heading .actions{margin:0;align-items:center}.editor-history{display:flex;gap:2px;margin-right:8px}.editor-history .history-button{border-color:transparent;background:transparent}.editor-heading #generate{background:#fff;border-color:#ddd7ed}.editor-heading .danger{font-size:12px;padding:9px;border-color:transparent;background:transparent}.editor-control-shell{padding:0;border:0;background:transparent}.floating-toolbar{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:100%;margin:0 auto;padding:9px;background:white;border:1px solid #e5e0ef;border-radius:18px;box-shadow:0 8px 28px #30215110;flex-wrap:wrap}.floating-toolbar button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:9px 13px;border:0;border-radius:10px;font-size:13px}.floating-toolbar #chooseBackground{color:#554771;background:transparent}.floating-toolbar #chooseBackground:hover{background:#f4f1fb}.floating-toolbar label{margin:0;min-width:0}.floating-toolbar label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.floating-toolbar select{width:auto;max-width:250px;border:0;background:#fff;padding:9px 26px 9px 9px;font-size:13px;min-height:40px;border-radius:9px}.toolbar-divider{height:23px;width:1px;background:#e8e3ef;flex:none;margin:0 3px}.batch-controls{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-top:20px;padding:16px 20px;background:#fff;border:1px solid #e5e0ef;border-radius:12px}.batch-controls>label{min-width:200px}.batch-controls .field-add-section{flex:1}.editor-control-shell #generationStatus:empty{display:none}.editor-control-shell+.editor{margin-top:24px!important}@media(max-width:850px){.editor-heading{align-items:flex-start}.floating-toolbar{gap:4px;padding:7px;border-radius:14px}.floating-toolbar select{max-width:220px}.editor-heading .actions{flex-wrap:wrap}.editor-heading .document-name{width:100%}}@media(max-width:600px){.editor-heading{flex-direction:column;gap:12px}.editor-document{width:100%}.editor-heading .actions{width:100%}.floating-toolbar{width:100%;justify-content:flex-start}.toolbar-divider{display:none}.floating-toolbar .scenario-picker{flex:1}.floating-toolbar .scenario-picker select{width:100%;max-width:100%}.floating-toolbar #addText{margin-left:auto}.batch-controls{padding:12px}}

/* Single-row editor chrome and larger page preview. */
main:has(.editor-heading){max-width:none;padding:24px}.editor-heading{display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(180px,1fr);gap:16px;margin-bottom:16px;align-items:center}.editor-heading .editor-document{min-width:0}.editor-heading .document-name{width:100%;max-width:340px}.editor-heading #courseName{font-size:15px;width:100%;text-overflow:ellipsis}.editor-heading .floating-toolbar{margin:0;flex-wrap:nowrap;gap:4px;padding:7px;border-radius:16px}.editor-heading .floating-toolbar select{max-width:210px}.editor-heading .actions{justify-self:end;justify-content:flex-end;flex-wrap:nowrap;gap:4px}.editor-heading .editor-history{margin-right:4px}.editor-heading .actions button{white-space:nowrap}.editor-control-shell:has(>progress[hidden]):not(:has(.batch-controls)):has(>#generationStatus:empty){display:none}.editor-control-shell+.editor{margin-top:0!important}main:has(.editor-heading) .stage{padding:8px}main:has(.editor-heading) .stage canvas{width:min(100%,calc((100dvh - 130px) * var(--page-ratio,1.414)));max-width:100%;height:auto;margin:0 auto}@media(max-width:1350px){.editor-heading{grid-template-columns:minmax(180px,1fr) auto}.editor-heading .floating-toolbar{grid-column:1 / -1;grid-row:2;justify-self:center;flex-wrap:wrap}.editor-heading .actions{grid-column:2;grid-row:1}main:has(.editor-heading) .stage canvas{width:min(100%,calc((100dvh - 190px) * var(--page-ratio,1.414)))}}@media(max-width:850px){main:has(.editor-heading){padding:18px}.editor-heading .floating-toolbar{width:100%;justify-content:center}.editor-heading .floating-toolbar select{max-width:190px}main:has(.editor-heading) .stage canvas{width:100%}}@media(max-width:600px){.editor-heading{display:flex;flex-direction:column;align-items:stretch}.editor-heading .floating-toolbar{order:3;flex-wrap:wrap;justify-content:flex-start}.editor-heading .actions{justify-content:space-between}.editor-heading .toolbar-divider{display:none}}

.editor-heading .actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 12px;font-size:13px;border-radius:10px}.editor-heading .actions>#deleteCourse{color:#c23850;background:#fff2f4;border:1px solid #f2d1d8}.editor-heading .actions>#deleteCourse:hover{background:#ffe5eb}.floating-toolbar .editor-history{margin:0;gap:0}.floating-toolbar .editor-history button{min-width:34px;width:34px;padding:7px}.editor-heading{grid-template-columns:minmax(170px,1fr) auto auto}

@media(min-width:1351px){.editor-heading{grid-template-columns:minmax(170px,340px) minmax(0,1fr) auto}.editor-heading .floating-toolbar{justify-self:center;max-width:100%}.editor-heading .editor-document{width:100%}}

/* Sidebar navigation */
aside.app-sidebar{display:flex;flex-direction:column;width:250px;padding:25px 14px 14px;background:#fff;border-right:1px solid #eae7f0;gap:22px}.sidebar-brand{display:flex;align-items:center;gap:9px;padding:0 8px;font-size:17px;font-weight:650;letter-spacing:-.4px}.brand-mark{display:grid;place-items:center;width:30px;height:32px;color:#6a50e8;background:#f1edff;border-radius:9px}.app-sidebar summary{list-style:none;cursor:pointer}.app-sidebar summary::-webkit-details-marker{display:none}.sidebar-create{position:relative}.sidebar-create>summary{display:flex;align-items:center;gap:9px;min-height:43px;padding:10px 13px;color:#fff;background:#6851df;border-radius:11px;font-size:14px;font-weight:500;box-shadow:0 3px 8px #6851df18}.create-chevron{margin-left:auto}.create-options{position:absolute;top:calc(100% + 6px);left:0;right:0;background:white;border:1px solid #e8e3f0;border-radius:11px;padding:5px;box-shadow:0 8px 24px #29213c18;z-index:20}.create-options button{display:block;width:100%;border:0;text-align:left;padding:10px;font-size:13px}.app-sidebar .sidebar-navigation{display:flex;flex-direction:column;gap:4px}.app-sidebar .sidebar-navigation button,.app-sidebar .courseLink,.sidebar-admin{display:flex;align-items:center;gap:11px;width:100%;min-height:41px;padding:10px 12px;margin:0;border:0;border-radius:9px;background:transparent;font-size:13px;color:#625d73;text-align:left}.app-sidebar svg{flex-shrink:0}.app-sidebar .sidebar-navigation button:hover,.app-sidebar .courseLink:hover,.sidebar-admin:hover{background:#f7f5fb}.app-sidebar button.active{color:#654bd9;background:#eeebfb;font-weight:500}.sidebar-recent{min-height:0;overflow:auto;flex:1}.sidebar-caption{padding:0 12px;margin-bottom:10px;font-size:11px;font-weight:600;letter-spacing:.6px;color:#9a93a8}.app-sidebar .courseLink{font-size:12px;min-height:38px;gap:9px}.app-sidebar .courseLink svg{width:16px;height:16px;color:#a39ab5}.app-sidebar .courseLink span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.app-sidebar .all-documents{display:flex;align-items:center;gap:5px;margin:10px 0 0 11px;padding:6px 0;border:0;background:transparent;font-size:12px;color:#7b6a9c}.all-documents svg{width:13px;height:13px}.sidebar-empty{display:block;padding:8px 12px;color:#9a93a8;font-size:12px}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px;padding-top:12px;border-top:1px solid #eeeaf4}.sidebar-admin{font-size:12px}.sidebar-profile{position:relative}.sidebar-profile>summary{display:flex;align-items:center;gap:9px;padding:8px;border-radius:10px}.sidebar-profile>summary:hover{background:#f7f5fb}.profile-avatar{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:50%;background:#eee9fb;color:#7156b2;font-size:12px;font-weight:600}.profile-info{min-width:0;flex:1}.profile-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500}.profile-info small{display:block;font-size:10px;color:#9a93a8;margin-top:3px}.profile-options{position:absolute;bottom:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid #e8e3f0;border-radius:11px;padding:5px;box-shadow:0 8px 24px #29213c18;z-index:20}.profile-options button{display:flex;align-items:center;gap:9px;width:100%;padding:10px;text-align:left;border:0;font-size:13px}.document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;margin-top:20px}.document-item{display:flex;align-items:center;gap:13px;padding:18px;text-align:left;background:white;border:1px solid #e8e3f0;border-radius:12px;min-width:0}.document-item>span{flex:1;min-width:0}.document-item strong{font-size:14px;font-weight:500;display:block;overflow-wrap:anywhere}.document-item small{display:block;color:#9690a3;font-size:12px;margin-top:5px}.document-item>svg{color:#8e7db3;flex:none}#documentSearch{max-width:450px}@media(max-width:850px){aside.app-sidebar{position:static;width:auto;padding:14px;gap:14px}.sidebar-brand{font-size:16px}.app-sidebar .sidebar-navigation{flex-direction:row;flex-wrap:wrap}.app-sidebar .sidebar-navigation button{width:auto}.sidebar-recent{display:none}.sidebar-bottom{flex-direction:row;align-items:center;justify-content:space-between;margin:0;padding-top:10px}.sidebar-profile{min-width:180px}.sidebar-create{max-width:250px}}

.app-sidebar .sidebar-create-button{display:flex;align-items:center;gap:9px;width:100%;min-height:43px;padding:10px 13px;color:white;background:#6851df;border:0;border-radius:11px;font-size:14px;font-weight:500;box-shadow:0 3px 8px #6851df18;text-align:left}.app-sidebar .sidebar-create-button:hover{background:#5942ca}

.background-age-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;margin:16px 0;padding:0;border:0}.background-age-filters legend{font-size:12px;color:#7a8498;margin-bottom:8px}.background-age-filters label{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;cursor:pointer}.background-age-filters input{width:16px;height:16px;margin:0;accent-color:#6554df}

.object-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}.object-card{min-width:0;background:white;border:1px solid #e7e2ef;border-radius:14px;padding:14px}.object-card h3{font-size:15px;margin:14px 0 0;overflow-wrap:anywhere}.object-card .help{margin:5px 0}.object-card .actions{gap:5px}.object-card button{font-size:12px;padding:8px 10px}.checker{background-color:#fff;background-image:conic-gradient(#e7e4ed 25%,transparent 0 50%,#e7e4ed 0 75%,transparent 0);background-size:18px 18px}.object-thumb{height:190px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:16px}.object-thumb canvas{max-width:100%;max-height:100%;object-fit:contain}.object-editor{width:min(1120px,85vw)}.object-editor h2{margin:0 0 18px}.object-editor-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px}.object-edit-settings label{margin:0 0 14px}.object-edit-settings input[type="range"]{padding:0;accent-color:#6554df}.object-edit-settings output{float:right;color:#6554df}.object-color-row{display:flex;gap:8px}.object-color-row input{width:50px;height:38px;padding:3px}.object-color-row button{flex:1;padding:7px}.object-edit-settings .object-check{display:flex;gap:7px;align-items:center;font-size:12px}.object-check input{width:auto;accent-color:#6554df}.object-brush-tools{display:flex;gap:4px;margin:16px 0}.object-brush-tools button{padding:8px;font-size:12px;flex:1}.object-brush-tools [aria-pressed="true"],#objectEyedropper[aria-pressed="true"]{background:#eeebff;border-color:#6554df;color:#6554df}.object-edit-settings>button{font-size:12px;padding:8px;margin:0 0 8px}.object-preview-toolbar{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}.object-preview-toolbar button{font-size:12px;padding:8px 10px}.object-preview{min-height:330px;height:55vh;max-height:620px;display:flex;align-items:center;justify-content:center;padding:18px;border-radius:12px;overflow:hidden}.object-preview canvas{display:block;max-width:100%;max-height:100%;object-fit:contain;touch-action:none}.object-preview canvas:only-child{min-width:0}.object-preview[data-tool="erase"] canvas,.object-preview[data-tool="restore"] canvas,.object-preview[data-tool="pick"] canvas{cursor:crosshair}.object-preview.dark-checker{background-color:#49434f;background-image:conic-gradient(#37323d 25%,transparent 0 50%,#37323d 0 75%,transparent 0)}.object-editor-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:18px;border-top:1px solid #eee8f4;margin-top:14px}#objectPlaceholder{position:absolute;background:#fff;padding:12px;border-radius:6px}@media(max-width:850px){.object-editor-layout{grid-template-columns:1fr}.object-editor{width:80vw}.object-preview{height:40vh;min-height:220px}.object-edit-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}.object-edit-settings label{min-width:0}.object-brush-tools{grid-column:1/-1}}@media(max-width:500px){.object-edit-settings{grid-template-columns:1fr}.object-editor{width:76vw}.object-editor-footer{flex-wrap:wrap}}

.object-picker{width:min(1000px,84vw)}.object-picker .object-gallery{margin-top:18px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.object-picker-card{display:flex;flex-direction:column;gap:9px;text-align:left;padding:12px;min-width:0}.object-picker-card .object-thumb{width:100%}.object-picker-card strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.object-picker-card small{font-size:11px;color:#7a8498}.floating-toolbar #addObjectToPage{background:#f0ecff;color:#654bd9}

.editor-heading #exportFormat{width:auto;font-size:12px;padding:9px 7px;min-height:40px;border-color:#e5e0ef;border-radius:10px}

body.phone-placeholder{display:grid;place-items:center;min-height:100vh;min-height:100dvh;padding:24px}body.phone-placeholder #app{width:100%;max-width:440px}.phone-placeholder-message{padding:32px 24px;text-align:center;font-size:22px;line-height:1.5;font-weight:600;background:#fff;border:1px solid #e2e5ee;border-radius:16px;box-shadow:0 8px 32px #24304a0d}

.auth-tabs{display:flex;gap:8px;margin:20px 0}.auth-tabs a{flex:1;text-align:center;padding:10px;border-radius:6px;background:#f0f1f7;text-decoration:none}.auth-tabs a[aria-current="page"]{background:#6554df;color:white}.auth-home{font-size:13px}.auth #linkError{color:#a32929}

.participant-import{width:min(760px,80vw)}.import-badge{color:#7546d4;font-size:12px;font-weight:600}.participant-import textarea{width:100%;resize:vertical;padding:16px;border:1px solid #d9d0ed;border-radius:12px;background:#fcfaff;font:15px/1.7 system-ui,sans-serif}.import-check{display:flex;align-items:center;gap:9px;font-size:13px}.import-check input{width:auto}.participant-table{overflow:auto;max-height:320px;border-radius:10px}.participant-table input{min-width:130px}.participant-import #participantError{color:#b32c45;font-size:13px}.participant-import .actions{justify-content:flex-end}

.object-color-presets{display:flex;gap:8px}.object-color-presets button{width:30px;height:30px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #ddd}

#selectionTools .object-appearance-button{width:auto;min-width:158px;padding:0 9px;white-space:nowrap;font-size:12px}.placed-object-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin-bottom:10px;background:#eee5ff;border:1px solid #d9c8fc;border-radius:12px}.placed-object-actions span{font-size:13px;color:#65449a}.placed-object-actions button{font-size:13px}

#selectionTools .object-tone-panel{width:190px;background:white;border:1px solid #ded4f4;border-radius:12px;padding:12px;box-shadow:0 8px 24px #30204522}#selectionTools .object-tone-panel strong{font-size:13px}#selectionTools .object-tone-panel p{font-size:11px;color:#82738f;margin:6px 0 12px}#selectionTools .object-tone-panel .object-color-presets{flex-wrap:wrap;gap:7px}#selectionTools .object-tone-panel button{width:26px;height:26px}#selectionTools .object-tone-panel .tone-reset{width:100%;height:auto;padding:7px;font-size:12px}#selectionTools .object-tone-panel input{width:100%;height:32px}

.editor-loading{position:absolute;inset:0;display:grid;place-items:center;background:#f8f4ffed;color:#7350bd;z-index:5;font-size:16px;pointer-events:none}

.object-thumb{position:relative}.object-thumb .object-preview-retry{position:absolute;inset:auto 8px 8px;width:calc(100% - 16px);font-size:12px;padding:8px;background:#fff9ed;border:1px solid #ebc984}.object-thumb .object-preview-retry[hidden]{display:none}
