:root{color-scheme:dark;--ui-bar: light-dark(#ffffff, #0f172a);--ui-toolbar: light-dark(#f8fafc, #131c2e);--ui-panel: light-dark(#ffffff, #111827);--ui-raised: light-dark(#f1f5f9, #1f2937);--ui-sunken: light-dark(#e2e8f0, #0b1220);--ui-hover: light-dark(#e6ebf2, #273449);--ui-line: light-dark(#d9e0e8, #2b3646);--ui-text: light-dark(#0f172a, #e5e7eb);--ui-muted: light-dark(#556070, #9ca3af);--ui-faint: light-dark(#a3acb9, #4b5563);--ui-accent: light-dark(#2563eb, #3b82f6);--ui-accent-strong: light-dark(#1d4ed8, #2563eb);--ui-accent-soft: light-dark(rgba(37, 99, 235, .12), rgba(59, 130, 246, .18));--ui-active-text: light-dark(#1d4ed8, #bfdbfe);--ui-link: light-dark(#1d4ed8, #93c5fd);--ui-ok: light-dark(#15803d, #4ade80);--ui-warn: light-dark(#b45309, #fbbf24);--ui-error: light-dark(#b91c1c, #f87171);--ui-danger-text: light-dark(#b91c1c, #fecaca);--ui-danger-line: light-dark(rgba(220, 38, 38, .45), rgba(248, 113, 113, .5));--ui-danger-soft: light-dark(rgba(220, 38, 38, .08), rgba(248, 113, 113, .15));--ui-shadow: light-dark(rgba(15, 23, 42, .16), rgba(0, 0, 0, .45));--frame-shadow: light-dark(rgba(15, 23, 42, .36), rgba(0, 0, 0, .38));--ui-backdrop: light-dark(rgba(15, 23, 42, .32), rgba(2, 6, 23, .55));--ui-toast: #0f172a;--ui-toast-text: #f1f5f9;--ui-toast-link: #93c5fd;--stage: light-dark(#cbd5e1, #374151);--brand-ink: light-dark(#1d1b1a, #f7f5f1);--brand-red: light-dark(#a20000, #ef6a5c);--frame-width: 100%}html[data-ui-theme=system]{color-scheme:light dark}html[data-ui-theme=light]{color-scheme:light}html[data-ui-theme=dark]{color-scheme:dark}html[data-ui-theme=grey]{color-scheme:light;--ui-bar: #d4d0c8;--ui-toolbar: #dcd9d3;--ui-panel: #e4e2dd;--ui-raised: #f8f8f6;--ui-sunken: #ccc7bd;--ui-hover: #cfcac1;--ui-line: #afaaa2;--ui-text: #1b1a18;--ui-muted: #58544c;--ui-faint: #8e887c;--ui-accent-soft: rgba(37, 99, 235, .14);--ui-active-text: #1e40af;--ui-link: #1e40af;--stage: #9e998f}html[data-ui-theme=grey] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.richtext){border-color:#979287}html[data-ui-theme=grey] :is(.dialog,.tool,.panel,.bar-center) button:not(.icon-only):not(.primary):not(.danger):not(.text):not([role=menuitem]),html[data-ui-theme=grey] button.page-title{border-color:#a39e94;background:linear-gradient(#fcfbfb,#e4e2dd)}html[data-ui-theme=grey] :is(.dialog,.tool,.panel,.bar-center) button:not(.icon-only):not(.primary):not(.danger):not(.text):not([role=menuitem]):hover,html[data-ui-theme=grey] button.page-title:hover{background:linear-gradient(#fff,#dcd9d3)}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ui-text);background:var(--ui-bar)}button,.button,input,select,textarea{font:inherit;color:inherit}svg{flex:none}[hidden]{display:none!important}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:32px;padding:0 .7rem;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ui-text);text-decoration:none;cursor:pointer;white-space:nowrap}button:hover,.button:hover{background:var(--ui-hover)}button:focus-visible,.button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--ui-accent);outline-offset:1px}button:disabled{opacity:.35;cursor:default;background:transparent}button.icon-only,.button.icon-only{width:32px;padding:0}button.primary{background:var(--ui-accent-strong);color:#fff}button.primary:hover{background:var(--ui-accent)}button.active,.button.active{background:var(--ui-accent-soft);color:var(--ui-active-text)}button.danger{border-color:var(--ui-danger-line);color:var(--ui-danger-text)}button.danger:hover{background:var(--ui-danger-soft)}.login-screen{min-height:100%;display:grid;place-items:center;padding:16px;background:radial-gradient(circle at 50% 30%,var(--ui-raised),var(--ui-bar) 70%)}.login{width:min(100%,340px);display:grid;gap:.9rem;padding:2rem;background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:12px;box-shadow:0 20px 50px var(--ui-shadow)}.login .brand-logo{justify-self:start;margin-bottom:.6rem}.login h1{margin:0 0 .5rem;font-size:1.4rem;font-weight:600}.login label{display:grid;gap:.3rem;color:var(--ui-muted)}.login input{min-height:38px;padding:0 .6rem;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-raised)}.login .error{margin:0;min-height:1.2em;color:var(--ui-error)}.login button{min-height:38px}.login button.link{justify-self:center;min-height:0;padding:.2rem;color:var(--ui-link)}.login button.link:hover{background:none;text-decoration:underline}.login .hint{margin:0;color:var(--ui-muted);line-height:1.4}.login small.hint{margin-top:-.5rem}.login .error.note{color:var(--ui-ok)}.studio{height:100%;display:flex;flex-direction:column;--left-panel: 0px;--right-panel: 0px}.studio:has(.sitemap:not([hidden])){--left-panel: 280px}.studio:has(.panel:not([hidden])){--right-panel: 320px}.bar,.format-bar{flex:none}.bar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:.6rem;height:48px;padding:0 .6rem;background:var(--ui-bar);border-bottom:1px solid var(--ui-line);min-width:0}.bar-start{display:flex;align-items:center;gap:.6rem;min-width:0;flex:1;max-width:calc(50% + var(--left-panel) / 2 - var(--right-panel) / 2 - 140px)}.bar-center,.format-bar .tools{position:absolute;top:50%;display:flex;align-items:center;left:calc(var(--left-panel) + (100% - var(--left-panel) - var(--right-panel)) / 2);transform:translate(-50%,-50%);transition:left .15s ease}.bar-center{gap:.4rem}.brand-mark,.brand-logo{display:inline-flex;flex:none}.brand-mark svg,.brand-logo svg{display:block;width:auto;height:100%}.brand-mark{height:18px}.brand-logo{height:26px}:is(.brand-mark,.brand-logo) [fill="#1d1b1a"]{fill:var(--brand-ink)}:is(.brand-mark,.brand-logo) [fill="#a20000"]{fill:var(--brand-red)}.crumbs{display:flex;align-items:baseline;gap:.45rem;min-width:0;overflow:hidden}.site-name{color:var(--ui-muted);white-space:nowrap}.page-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:28px;padding:0 .4rem;margin-left:-.4rem}.page-title:after{content:"\2304";margin-left:.35rem;color:var(--ui-muted);font-weight:400}.sep{color:var(--ui-faint)}.status{flex:1;min-width:0;color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status[data-tone=ok]{color:var(--ui-ok)}.status[data-tone=warn]{color:var(--ui-warn)}.status[data-tone=error]{color:var(--ui-error)}.status[data-tone=dirty]:before{content:"";display:inline-block;width:8px;height:8px;margin-right:.45rem;border-radius:50%;background:var(--ui-warn);vertical-align:1px}.actions{display:flex;align-items:center;gap:.3rem}.divider{width:1px;height:22px;margin:0 .3rem;background:var(--ui-line)}.view-tools{display:flex;align-items:center;gap:.3rem}.divider--wide{margin:0 .9rem}.segmented{display:inline-flex;gap:2px;padding:2px;border-radius:8px;background:var(--ui-raised)}.segmented button{min-height:28px}.segmented button.icon-only{width:30px}.format-bar{position:relative;display:flex;align-items:center;height:42px;padding:0 .6rem;background:var(--ui-toolbar);border-bottom:1px solid var(--ui-line)}.format-bar .tools{gap:.35rem;white-space:nowrap}.format-bar .group{display:inline-flex;gap:1px;padding-right:.35rem;border-right:1px solid var(--ui-line)}.format-bar .group:last-child{border-right:0}.format-bar button{min-height:30px}.format-bar button.icon-only{width:32px}.format-bar button.text{padding:0 .6rem;font-size:13px}.format-bar .idle-hint{display:none;position:absolute;left:50%;transform:translate(-50%);max-width:calc(100% - 2rem);color:var(--ui-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.format-bar.is-idle .idle-hint{display:inline}.format-bar.is-idle .tools{visibility:hidden}.workspace{position:relative;flex:1;display:flex;min-height:0}.stage{position:relative;flex:1;min-width:0;overflow:hidden;background:var(--stage)}.stage-frame{position:absolute;inset:0;margin:0 auto;display:block;width:var(--frame-width);max-width:100%;height:100%;border:0;background:#fff}.stage:before{content:"";position:absolute;z-index:1;inset:0;width:var(--frame-width);max-width:100%;margin:0 auto;box-shadow:inset 0 0 18px var(--frame-shadow);pointer-events:none}body.is-editing .stage:after{content:"";position:absolute;z-index:2;inset:0;width:var(--frame-width);max-width:100%;margin:0 auto;box-shadow:inset 0 0 0 2px var(--ui-accent);pointer-events:none}.sitemap{width:280px;flex:none;overflow:auto;padding:.6rem .4rem 1rem;background:var(--ui-panel);border-right:1px solid var(--ui-line)}.sitemap h2,.panel h2,.dialog h2{margin:0;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--ui-muted)}.sitemap-head{display:flex;align-items:center;justify-content:space-between;padding:0 .1rem 0 .5rem}.tree,.tree ul{list-style:none;margin:.35rem 0 0;padding:0}.tree ul{margin:0 0 0 .8rem;padding-left:.4rem;border-left:1px solid var(--ui-line)}.row{position:relative;display:flex;align-items:center;gap:.25rem;min-height:32px;padding:0 .15rem 0 .5rem;border-radius:6px}.row:hover,.row:focus-within{background:var(--ui-hover)}.row.current{background:var(--ui-accent-soft)}.row.current .title{color:var(--ui-active-text);font-weight:600}.row .title{flex:1;min-width:0;padding:.3rem 0;color:var(--ui-text);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row .title.hidden-page{color:var(--ui-muted);font-style:italic}.row .flags{display:inline-flex;gap:3px;color:var(--ui-muted)}.row .row-actions{display:inline-flex;opacity:0}.row:hover .row-actions,.row:focus-within .row-actions{opacity:1}.row .row-actions button{width:26px;min-height:26px}.row.dragging{opacity:.45}.row.drop-before{box-shadow:inset 0 2px 0 var(--ui-accent)}.row.drop-after{box-shadow:inset 0 -2px 0 var(--ui-accent)}.row.drop-inside{background:var(--ui-accent-soft);outline:1px dashed var(--ui-accent)}.new-page{display:grid;gap:.2rem;padding:.25rem .25rem .4rem .5rem}.new-page input{min-height:32px;padding:0 .5rem;border:1px solid var(--ui-accent);border-radius:6px;background:var(--ui-raised)}.new-page small{color:var(--ui-muted)}.trash{margin-top:1rem;padding:0 .5rem;color:var(--ui-muted)}.trash summary{display:flex;align-items:center;gap:.4rem;cursor:pointer;padding:.3rem 0}.trash ul{list-style:none;margin:.25rem 0 0;padding:0}.trash li{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding-left:1.4rem}.trash-empty{margin:.5rem 0 .25rem 1.4rem;min-height:28px;font-size:.85rem}.trash-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu{position:fixed;z-index:50;min-width:220px;width:max-content;max-width:320px;padding:.3rem;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-raised);box-shadow:0 12px 30px var(--ui-shadow)}.menu button{width:100%;justify-content:flex-start;gap:.55rem;min-height:32px;padding:0 .6rem;border:0}.menu button.danger{color:var(--ui-danger-text)}.menu .menu-hint{margin-left:auto;padding-left:1.5rem;border:0;background:none;color:var(--ui-muted);font:12px/1 system-ui,sans-serif}.menu-sep{height:1px;margin:.3rem .2rem;background:var(--ui-line)}.toast{position:absolute;z-index:40;bottom:16px;left:calc(var(--left-panel) + (100% - var(--left-panel) - var(--right-panel)) / 2);transform:translate(-50%);display:flex;align-items:center;gap:.75rem;max-width:min(90%,560px);padding:.55rem .6rem .55rem 1rem;border-radius:10px;background:var(--ui-toast);color:var(--ui-toast-text);box-shadow:0 12px 30px var(--ui-shadow)}dialog>.toast{position:fixed;left:50%;bottom:24px}.toast button{min-height:28px;color:var(--ui-toast-link);font-weight:600}.panel{width:320px;flex:none;overflow:auto;padding:.75rem 1rem 1.5rem;background:var(--ui-panel);border-left:1px solid var(--ui-line)}.panel header,.dialog header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.panel h2{text-transform:none;letter-spacing:0;font-size:1rem;color:var(--ui-text)}.panel .hint{margin:0 0 1rem;color:var(--ui-muted)}.fields{display:grid;gap:1rem}.field{display:grid;gap:.3rem;margin:0;padding:0;border:0;min-width:0}.field>label,.field legend{font-weight:600;padding:0}.field input:not([type=checkbox]),.field select,.field textarea,.dialog select,.dialog input{min-height:34px;padding:0 .5rem;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-raised);width:100%}.field textarea{padding:.4rem .5rem}.field small{color:var(--ui-muted)}.field.toggle{grid-template-columns:auto 1fr;align-items:center}.field.toggle small{grid-column:1 / -1}.field .address{color:var(--ui-muted);word-break:break-all}.field .counter{text-align:right}.subfields{display:grid;gap:.4rem;margin-top:.3rem}.field-error{margin:0;color:var(--ui-error);min-height:1em}.field>.check{display:flex;align-items:center;gap:.45rem;font-weight:400;padding:.1rem 0}input[type=checkbox]{accent-color:var(--ui-accent)}.dialog{padding:1.25rem;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-panel);color:var(--ui-text);box-shadow:0 24px 60px var(--ui-shadow)}.dialog::backdrop{background:var(--ui-backdrop)}.dialog{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.dialog.media-dialog,.dialog.images-dialog,.dialog.richtext-dialog{width:calc(100vw - 24px);height:calc(100vh - 24px)}.link-dialog{width:min(92vw,420px)}.link-dialog h2{margin-bottom:1rem}.link-dialog form{display:grid;gap:.9rem}.link-dialog label{display:grid;gap:.3rem;color:var(--ui-muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:.5rem}.dialog-actions button:not(.primary){border-color:var(--ui-line)}.help-dialog{width:calc(100vw - 24px)}.leave-dialog{width:min(92vw,440px)}.leave-dialog h2{margin-bottom:.75rem;text-transform:none;letter-spacing:0;font-size:1.05rem;color:var(--ui-text)}.leave-dialog p{margin:0 0 1.25rem;color:var(--ui-muted)}.shortcut-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:1.5rem 2.5rem}.shortcut-columns h3{margin:0 0 .5rem;font-size:.95rem}.shortcut-columns dl{display:grid;grid-template-columns:auto 1fr;gap:.4rem .75rem;margin:0;align-items:center}.shortcut-columns dt{white-space:nowrap}.shortcut-columns dd{margin:0;color:var(--ui-muted)}kbd{display:inline-block;min-width:1.6em;margin-right:2px;padding:1px 5px;border:1px solid var(--ui-line);border-bottom-width:2px;border-radius:4px;background:var(--ui-raised);font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}@media(max-width:1180px){.format-bar{height:auto;padding:.3rem .6rem}.format-bar .tools{position:static;transform:none;flex-wrap:wrap;white-space:normal}}@media(max-width:1180px){.bar-center{position:static;transform:none}.bar-start{max-width:none}}@media(max-width:1000px){.site-name,.crumbs .sep,.segmented{display:none!important}button.with-label .label{display:none}button.with-label{width:32px;padding:0}}@media(max-width:700px){.status{display:none}.sitemap{position:absolute;z-index:5;top:0;bottom:0;left:0;max-width:85%;box-shadow:4px 0 16px var(--ui-shadow)}.panel{position:absolute;z-index:5;top:0;bottom:0;right:0;max-width:100%;box-shadow:-4px 0 16px var(--ui-shadow)}}.format-bar button.icon-only.with-text{width:auto;padding:0 .65rem;gap:.35rem}.media-dialog{display:grid;grid-template-rows:auto 1fr auto;gap:.75rem;background:var(--ui-sunken)}.media-body{display:grid;grid-template-columns:220px minmax(0,1fr) 270px;gap:.75rem;min-height:0}.media-main{display:grid;grid-template-rows:auto auto 1fr;gap:.6rem;min-height:0;min-width:0;padding:.65rem;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-panel)}.media-folders{display:flex;flex-direction:column;gap:2px;overflow:auto;padding:.4rem;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-panel)}.folder-row{position:relative;display:flex;align-items:center;min-height:34px;border-radius:6px;padding-left:calc(var(--depth, 0) * .75rem)}.folder-row.current{background:var(--ui-accent-soft);box-shadow:inset 3px 0 0 var(--ui-accent)}.folder-row.drop{outline:2px solid var(--ui-accent);background:var(--ui-accent-soft)}.folder-row .folder-open{flex:1;min-width:0;justify-content:flex-start;min-height:32px;padding:0 .4rem;border-radius:6px;gap:.45rem}.folder-row .folder-open svg{color:var(--ui-muted)}.folder-row.current .folder-open svg,.folder-row.current .folder-label{color:var(--ui-active-text)}.folder-label{overflow:hidden;text-overflow:ellipsis}.folder-open small{display:inline-grid;place-items:center;min-width:1.6rem;height:1.35rem;margin-left:auto;padding:0 .3rem;border-radius:999px;background:var(--ui-raised);color:var(--ui-muted);font-size:.72rem;font-variant-numeric:tabular-nums}.folder-actions{display:none}.folder-row:hover .folder-actions,.folder-row:focus-within .folder-actions{display:flex}.folder-actions button{width:25px;min-height:25px}.folder-name{flex:1;min-width:0;min-height:26px;padding:0 .4rem;border:1px solid var(--ui-accent);border-radius:5px;background:var(--ui-raised)}.new-folder{justify-content:flex-start;min-height:32px;margin:.25rem .1rem .35rem;border:1px dashed var(--ui-line);color:var(--ui-muted)}.new-folder:hover{border-color:var(--ui-accent);color:var(--ui-text)}.trash-row{margin-top:auto;border-top:1px solid var(--ui-line);padding-top:.35rem;border-radius:0}.media-tile .media-folder{font-size:11px;color:var(--ui-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-empty{grid-column:1 / -1;margin:1rem 0;color:var(--ui-muted)}.media-detail{overflow:auto;padding:.75rem;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-panel)}.media-detail .muted,.media-usage .muted{color:var(--ui-muted)}.detail-box{display:grid;gap:.7rem;align-content:start}.detail-box p{margin:0;overflow-wrap:anywhere}.detail-preview{width:100%;max-height:160px;object-fit:contain;border-radius:6px;background:var(--ui-sunken)}.detail-box .field{display:grid;gap:.3rem;margin:0}.detail-box .field small{color:var(--ui-muted)}.detail-box textarea,.detail-box select{width:100%}.media-usage{margin:0;padding-left:1.1rem}.detail-box .warning{padding:.5rem .6rem;border:1px solid var(--ui-danger-line);border-radius:6px;background:var(--ui-danger-soft)}.detail-actions{display:flex;gap:.4rem;flex-wrap:wrap}.media-status button.text{margin-left:.5rem;text-decoration:underline}@media(max-width:820px){.media-body{grid-template-columns:1fr;grid-template-rows:auto 1fr auto}.media-folders{flex-direction:row;flex-wrap:wrap;max-height:7rem}.media-detail{max-height:14rem}}.media-dialog[open]{display:grid}.media-dialog header h2{text-transform:none;letter-spacing:0;font-size:1.05rem;color:var(--ui-text)}.media-drop{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:1rem;border:2px dashed var(--ui-line);border-radius:10px;color:var(--ui-muted)}.media-drop.over{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-text)}.media-drop button{border-color:var(--ui-line)}.media-status{margin:0;min-height:1.2em;color:var(--ui-muted)}.media-status.error{color:var(--ui-error)}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-auto-rows:max-content;gap:.65rem;overflow:auto;align-content:start;padding:.1rem}.media-tile{position:relative;display:grid;grid-template-rows:110px auto;gap:.4rem;align-items:start;min-height:0;padding:.4rem;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-panel);box-shadow:0 1px 3px var(--ui-shadow);text-align:left;white-space:normal}.media-tile:hover{border-color:var(--ui-faint);box-shadow:0 3px 8px var(--ui-shadow)}.media-tile img{width:100%;height:110px;object-fit:cover;border-radius:5px;background:var(--ui-sunken)}.media-tile .file{display:grid;place-content:center;justify-items:center;gap:.3rem;height:110px;border-radius:5px;background:var(--ui-sunken);color:var(--ui-muted)}.media-tile .file b{font-size:.75rem;letter-spacing:.05em}.link-file{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.link-file span{color:var(--ui-muted);overflow-wrap:anywhere}.media-tile .media-name{font-size:12px;color:var(--ui-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-tile.selected{border-color:var(--ui-accent);background:var(--ui-accent-soft);box-shadow:0 0 0 1px var(--ui-accent)}.media-tile.selected:after{content:"\2713";position:absolute;top:.5rem;right:.5rem;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ui-accent);color:#fff;font-weight:700}.media-tile.uploading{display:grid;place-items:center;grid-template-rows:110px auto auto;color:var(--ui-muted)}.media-tile progress{width:100%}.panel-preview{display:block;width:100%;max-height:200px;object-fit:contain;margin-bottom:.75rem;border-radius:6px;background:var(--ui-sunken)}.panel-actions{display:flex;gap:.5rem;flex-wrap:wrap}.panel-actions button{border-color:var(--ui-line)}.images-editor{display:grid;gap:.6rem}.images-head{display:flex;align-items:center;gap:.5rem}.images-summary{margin:0 auto 0 0;color:var(--ui-muted)}.images-summary strong{color:var(--ui-text);font-weight:600}.images-summary .images-missing{min-height:0;padding:0;color:var(--ui-warn);text-decoration:underline}.images-body{display:grid;gap:.75rem}.images-main{display:grid;gap:.6rem;align-content:start}.images-field{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:.35rem;max-height:320px;overflow:auto}.image-tile{position:relative}.image-thumb{position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:var(--ui-sunken)}.image-thumb img{width:100%;height:100%;object-fit:cover;display:block}.image-tile.selected .image-thumb{border-color:var(--ui-accent)}.image-number{position:absolute;left:3px;bottom:3px;padding:0 .3rem;border-radius:4px;background:#0f172ab3;color:#fff;font-size:11px}.image-no-alt{position:absolute;right:3px;top:3px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--ui-warn);color:#111;font-size:11px;font-weight:700}.image-tile.drop-before:before,.image-tile.drop-after:after{content:"";position:absolute;top:0;bottom:0;width:3px;border-radius:2px;background:var(--ui-accent)}.image-tile.drop-before:before{left:-3px}.image-tile.drop-after:after{right:-3px}.images-editor.is-dragging .image-tile:not(.selected){opacity:.85}.images-add{justify-self:start;border-color:var(--ui-line)}.images-detail{display:grid;gap:.6rem;padding:.6rem;border-radius:8px;background:var(--ui-raised)}.images-detail .hint,.images-detail p{margin:0;color:var(--ui-muted)}.images-detail .field{margin:0}.images-preview{width:100%;max-height:160px;object-fit:contain;border-radius:6px;background:var(--ui-sunken)}.images-dialog[open]{display:flex;flex-direction:column;gap:.75rem}.images-dialog .images-editor{flex:1;min-height:0;grid-template-rows:auto 1fr}.images-editor.large .images-body{grid-template-columns:minmax(0,1fr) 300px;min-height:0}.images-editor.large .images-main{min-height:0;grid-template-rows:1fr auto}.images-editor.large .images-field{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));max-height:none;overflow:auto;align-content:start}.images-editor.large .images-detail{align-content:start;overflow:auto}.images-editor.large .images-preview{max-height:220px}.images-dialog .dialog-actions{align-items:center}.images-dialog .dialog-actions small{margin-right:auto;color:var(--ui-muted)}.image-texts{display:grid;gap:.3rem;min-width:0}.image-texts input{min-height:28px!important;font-size:13px}.image-actions{display:grid;gap:2px}.image-actions button{width:26px;min-height:24px}.field>button{justify-self:start;border-color:var(--ui-line)}.sidebar-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin:0 .1rem .6rem;padding:2px;border-radius:8px;background:var(--ui-hover)}.sidebar-tabs [role=tablist]{display:contents}.sidebar-tabs button{flex-direction:column;gap:.15rem;min-height:46px;padding:.3rem .25rem;font-size:.8rem;color:var(--ui-muted)}.sidebar-tabs button:hover{color:var(--ui-text)}.sidebar-tabs button.active{background:var(--ui-panel);color:var(--ui-text);box-shadow:0 1px 2px var(--ui-shadow)}.data-menu{display:grid;gap:.9rem}.plugin-group h3{margin:0 0 .15rem;padding:0 .5rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--ui-muted)}.data-menu button{width:100%;justify-content:flex-start;margin-top:.15rem}.data-menu .empty{margin:0 .5rem;color:var(--ui-muted)}.data-menu .manage-plugins{margin-top:.4rem;padding-top:.4rem;border-top:1px solid var(--ui-line);border-radius:0;color:var(--ui-muted)}.plugins-dialog{width:min(94vw,680px)}.plugin-list{list-style:none;margin:0 0 .5rem;padding:0;display:grid;gap:.4rem}.plugin-list li{display:grid;grid-template-columns:1fr auto auto;gap:.6rem;align-items:center;padding:.4rem .5rem;border:1px solid var(--ui-line);border-radius:8px}.plugin-name{display:grid;min-width:0}.plugin-name small{color:var(--ui-muted)}.plugin-actions{display:flex;gap:.25rem}.badge{padding:1px 6px;border:1px solid var(--ui-danger-line);border-radius:999px;color:var(--ui-danger-text);font-size:.75rem}.plugin-preview{margin-top:.6rem;padding:.6rem .7rem;border:1px solid var(--ui-line);border-radius:8px}.plugin-preview p{margin:0 0 .5rem}.plugin-preview .warning{margin:.5rem 0;padding:.5rem .6rem;border:1px solid var(--ui-danger-line);border-radius:6px;background:var(--ui-danger-soft)}.plugin-preview label.check{display:flex;gap:.4rem;align-items:center}.panel-data{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--ui-line)}.tool{position:fixed;z-index:30;inset:12px;display:grid;grid-template-rows:auto 1fr;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-sunken);box-shadow:0 0 0 100vmax var(--ui-backdrop),0 24px 60px var(--ui-shadow);overflow:hidden}.tool>header{display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem;border-bottom:1px solid var(--ui-line)}.tool>header h2{margin:0 .5rem 0 0;font-size:1.05rem}.tool>header input[type=search]{flex:0 1 280px;min-height:32px;padding:0 .6rem;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-raised)}.tool>header .check{display:inline-flex;align-items:center;gap:.4rem;color:var(--ui-muted);margin-right:auto}.tool-body{display:grid;grid-template-columns:minmax(0,1fr) min(440px,45%);gap:.65rem;min-height:0;padding:.65rem}.tool-list,.tool-form{border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-panel);box-shadow:0 1px 3px var(--ui-shadow)}.tool-list{overflow:auto}.tool-list table{width:100%;border-collapse:collapse}.tool-list th{position:sticky;top:0;background:var(--ui-panel);text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ui-muted);padding:.6rem .9rem;border-bottom:1px solid var(--ui-line)}.tool-list td{padding:.55rem .9rem;border-bottom:1px solid var(--ui-line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px}.tool-list tr[data-id]{cursor:pointer}.tool-list tr[data-id]:hover,.tool-list tr[data-id]:focus{background:var(--ui-hover);outline:none}.tool-list tr.selected{background:var(--ui-accent-soft)}.tool-list .hint{padding:1rem .9rem;color:var(--ui-muted)}.tool-form{overflow:auto;padding:1rem 1.1rem 1.5rem;align-content:start}.tool-form h3{margin:0;font-size:1rem}.tool-close{flex:none;margin-left:auto;border-color:var(--ui-line)!important;background:var(--ui-panel)!important;box-shadow:0 1px 3px var(--ui-shadow)}.tool-close:hover{background:var(--ui-hover)!important}.tool-settings>header h2{margin-right:auto}.settings-form{padding:1.25rem 1.5rem 1.5rem;display:grid;margin:.65rem}.settings-body{width:100%;max-width:760px;margin:0 auto}.settings-body>.hint{margin:0;color:var(--ui-muted)}.settings-form .tool-actions{align-items:center}.settings-form .tool-actions .field-error{margin:0}.settings-group{display:grid;gap:.9rem;margin:0;padding:.9rem 1rem 1rem;border:1px solid var(--ui-line);border-radius:10px}.settings-group>legend{padding:0 .35rem;font-weight:600}.settings-group>.settings-help{margin-top:-.4rem;color:var(--ui-muted)}.keyed-list{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;margin:0;padding:0;list-style:none}.keyed-entry{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;gap:.6rem;align-items:end;padding:.55rem .6rem;border-radius:8px;background:var(--ui-raised)}.keyed-entry.compact{align-items:center;padding:.35rem .6rem}.keyed-entry.compact>.field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.keyed-entry .field{margin:0}.keyed-fields{display:grid;gap:.6rem}.keyed-meta{display:grid;grid-template-columns:10rem repeat(3,auto);align-items:center;gap:.15rem}.keyed-meta code{justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.1rem .4rem;border-radius:5px;background:var(--ui-panel);color:var(--ui-muted);font-size:.78rem}.keyed-entry:not(.compact)>.keyed-meta{align-self:start;margin-top:1.6rem}.keyed-add{justify-self:start;border-color:var(--ui-line)}.import-dialog{width:min(92vw,560px)}.import-dialog .hint{margin:0 0 1rem;color:var(--ui-muted)}.import-file{display:flex;align-items:center;gap:.5rem;padding:.7rem .9rem;border:1px dashed var(--ui-line);border-radius:8px;cursor:pointer}.import-file:hover,.import-file:focus-within{border-color:var(--ui-accent)}.import-file input{position:absolute;width:1px;height:1px;opacity:0}.import-preview{margin:1rem 0}.import-preview ul{margin:0 0 .6rem;padding-left:1.2rem}.import-lines{font-weight:600}.import-errors{color:var(--ui-error)}.tool-actions{position:sticky;bottom:-1.5rem;display:flex;justify-content:space-between;gap:.5rem;margin:0 -1.1rem -1.5rem;padding:.75rem 1.1rem 1rem;background:var(--ui-panel);border-top:1px solid var(--ui-line)}.tool-actions .primary{margin-left:auto}@media(max-width:900px){.tool-body{grid-template-columns:1fr;grid-template-rows:40% 60%}.tool-form{border-left:1px solid var(--ui-line)}.tool>header{flex-wrap:wrap}.tool>header .tool-close{order:10}}.richtext{border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-raised)}.richtext:focus-within{border-color:var(--ui-accent)}.richtext-tools{display:flex;flex-wrap:wrap;gap:1px;padding:3px;border-bottom:1px solid var(--ui-line)}.richtext-tools button{width:30px;min-height:28px}.richtext-link{display:flex;gap:.4rem;padding:.4rem;border-bottom:1px solid var(--ui-line)}.richtext-link select,.richtext-link input{min-height:30px;padding:0 .4rem;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-panel);min-width:0;flex:1}.richtext-link button{border-color:var(--ui-line)}.richtext-area .ProseMirror{min-height:140px;max-height:420px;overflow:auto;padding:.5rem .7rem;outline:none;white-space:pre-wrap;word-wrap:break-word;line-height:1.5}.richtext-area .ProseMirror p{margin:0 0 .6rem}.richtext-area .ProseMirror h3{margin:.8rem 0 .4rem;font-size:1.05rem}.richtext-area .ProseMirror ul,.richtext-area .ProseMirror ol{margin:0 0 .6rem;padding-left:1.4rem}.richtext-area .ProseMirror a{color:var(--ui-link)}.richtext-area .ProseMirror figure{margin:.4rem 0 .8rem}.richtext-area .ProseMirror figure img{display:block;max-width:min(100%,320px);height:auto;border-radius:4px}.richtext-area .ProseMirror figure.tx-figure--small img{max-width:min(100%,200px)}.richtext-area .ProseMirror figure.tx-figure--full img{max-width:100%}.richtext-area .ProseMirror figcaption{color:var(--ui-muted);font-size:.9em;min-height:1.2em}.richtext-area .ProseMirror figcaption:empty:before{content:"Bildunterschrift \2026";color:var(--ui-muted);opacity:.6}.richtext-area .ProseMirror .ProseMirror-selectednode{outline:2px solid var(--ui-accent)}.image-field{display:flex;gap:.75rem;align-items:center}.image-field-preview{width:96px;height:72px;object-fit:cover;border-radius:5px;background:var(--ui-sunken);flex:none}.image-field-side{display:flex;flex-direction:column;gap:.35rem;min-width:0}.image-field-name{color:var(--ui-muted);overflow-wrap:anywhere}.image-field-actions{display:flex;gap:.4rem;flex-wrap:wrap}.richtext-tools .expand{margin-left:auto}.richtext-dialog[open]{display:flex;flex-direction:column;gap:.75rem}.richtext-dialog header{margin-bottom:0}.richtext-dialog .richtext,.richtext-dialog .richtext-area{flex:1;min-height:0;display:flex;flex-direction:column}.richtext-dialog .richtext-area .ProseMirror{flex:1;max-height:none;padding:1rem 1.25rem;font-size:1rem}.richtext-dialog .dialog-actions{align-items:center}.richtext-dialog .dialog-actions small{margin-right:auto;color:var(--ui-muted)}.richtext-area .ProseMirror table{border-collapse:collapse;margin:0 0 .6rem}.richtext-area .ProseMirror :is(td,th){position:relative;min-width:3em;padding:.25rem .45rem;border:1px solid var(--ui-line);vertical-align:top;text-align:left}.richtext-area .ProseMirror th{font-weight:600;background:color-mix(in srgb,var(--ui-line) 35%,transparent)}.richtext-area .ProseMirror :is(td,th)>:last-child{margin-bottom:0}.richtext-area .ProseMirror .selectedCell:after{content:"";position:absolute;inset:0;background:color-mix(in srgb,var(--ui-accent) 25%,transparent);pointer-events:none}.account-dialog{width:min(94vw,640px)}.account-dialog section{margin-bottom:1.25rem}.account-dialog h3{margin:0 0 .6rem;font-size:.95rem}.accounts-dialog{width:min(94vw,760px)}.section-hint,.role-legend,.invite-hint{margin:0 0 .6rem;color:var(--ui-muted)}.account-list{list-style:none;margin:0 0 .5rem;padding:0;display:grid;gap:.4rem}.account-list li{display:grid;grid-template-columns:minmax(7rem,1fr) minmax(10rem,1.6fr) minmax(8rem,.9fr) 4.5rem;gap:.5rem;align-items:center;padding:.4rem .5rem;border:1px solid var(--ui-line);border-radius:8px}.account-name{display:grid;min-width:0}.account-name strong{overflow:hidden;text-overflow:ellipsis}.account-name small{color:var(--ui-muted)}.account-list input,.account-list select{width:100%;min-width:0}.account-list :is(input,select):disabled{border-color:transparent;background:transparent;appearance:none;opacity:.8}.account-actions{display:flex;justify-content:flex-end;gap:.25rem}.invite-form{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;gap:.5rem;align-items:end}.invite-form .field{margin:0}.invite-form .field-error,.invite-hint{grid-column:1 / -1}@media(max-width:620px){.account-list li{grid-template-columns:1fr auto}.account-list li>input,.account-list li>select{grid-column:1 / -1}.account-list .account-actions{grid-row:1;grid-column:2}.invite-form{grid-template-columns:1fr}}.form-settings section{padding-bottom:.9rem;margin-bottom:.9rem;border-bottom:1px solid var(--ui-line)}.form-settings section:last-child{border-bottom:0}.form-settings .field{display:grid;gap:.3rem;margin-bottom:.6rem}.form-settings .field small{color:var(--ui-muted)}.form-settings label.check{display:flex;gap:.4rem;align-items:center;margin:.2rem 0 .6rem}.dialog .form-settings input[type=checkbox]{width:1rem;height:1rem;min-height:0;padding:0;flex:none}.sync-dialog{width:min(96vw,820px)}.sync-list{list-style:none;margin:.5rem 0;padding:0;display:grid;gap:.35rem;max-height:55vh;overflow:auto}.sync-row{display:grid;grid-template-columns:2.4rem minmax(0,1fr) auto;gap:.6rem;align-items:center;padding:.4rem .6rem;border:1px solid var(--ui-line);border-radius:8px}.sync-row--conflict{border-color:var(--ui-warn)}.sync-row--failed{border-color:var(--ui-danger-line);background:var(--ui-danger-soft)}.sync-arrow{font-size:1.1rem;text-align:center;color:var(--ui-muted);white-space:nowrap}.sync-row--conflict .sync-arrow{color:var(--ui-warn)}.sync-what{display:grid;min-width:0}.sync-what strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-what small{color:var(--ui-muted)}.sync-row select{max-width:14rem}.sync-row input[type=checkbox]{width:1.1rem;height:1.1rem;min-height:0;padding:0}.sync-empty{display:flex;align-items:center;gap:.4rem}.sync-connect .field,.sync-settings .field{display:grid;gap:.3rem;margin-bottom:.6rem}.sync-partners{margin-top:.9rem}.sync-partners summary{cursor:pointer;color:var(--ui-muted);margin-bottom:.5rem}.sync-code{margin:.5rem 0 0}.sync-code strong{font:600 1.15rem ui-monospace,monospace;letter-spacing:.08em}.sync-settings label.check{display:flex;gap:.4rem;align-items:center;margin:.4rem 0}.dialog .sync-settings input[type=checkbox]{width:1rem;height:1rem;min-height:0;padding:0;flex:none}.url-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}@media(max-width:560px){.url-choices{grid-template-columns:1fr}}.url-choice{position:relative;display:flex;gap:.6rem;align-items:flex-start;padding:.6rem .7rem;border:1px solid var(--ui-line);border-radius:10px;cursor:pointer}.url-choice:has(input:checked){border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}.url-choice.disabled{opacity:.6;cursor:default}.dialog .url-choice input[type=radio]{flex:none;width:1rem;height:1rem;min-height:0;margin:.2rem 0 0;padding:0}.url-choice span{display:grid;gap:.2rem}.url-choice code{font-size:.85rem}.url-choice small,.site-settings .field small{color:var(--ui-muted)}.site-settings .field{display:grid;gap:.3rem;margin-bottom:.8rem}.theme-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}@media(max-width:560px){.theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}.theme-choice{position:relative;display:grid;gap:.45rem;padding:.55rem;border:1px solid var(--ui-line);border-radius:10px;cursor:pointer}.theme-choice:has(input:checked){border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}.theme-choice:has(input:focus-visible){outline:2px solid var(--ui-accent);outline-offset:2px}.theme-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;pointer-events:none}.theme-text{display:grid}.theme-text small{color:var(--ui-muted);line-height:1.3}.theme-swatch{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:10px 38px;height:48px;overflow:hidden;border-radius:6px;border:1px solid var(--ui-line)}.theme-swatch i:first-child{grid-column:1 / -1}.theme-swatch i:last-child{margin:6px;border-radius:3px;background:#fff}.theme-swatch--dark i:first-child{background:#0f172a}.theme-swatch--dark i:nth-child(2),.theme-swatch--dark{background:#111827}.theme-swatch--light i:first-child{background:#f1f5f9}.theme-swatch--light i:nth-child(2){background:#fff}.theme-swatch--light{background:#cbd5e1}.theme-swatch--light i:last-child{box-shadow:0 0 0 1px #d9e0e8}.theme-swatch--grey i:first-child{background:#d4d0c8}.theme-swatch--grey i:nth-child(2){background:#e4e2dd}.theme-swatch--grey{background:#9e998f}.theme-swatch--system{background:linear-gradient(135deg,#cbd5e1 50%,#374151 50%)}.theme-swatch--system i:first-child{background:linear-gradient(90deg,#f1f5f9 50%,#0f172a 50%)}.theme-swatch--system i:nth-child(2){background:linear-gradient(135deg,#fff 50%,#111827 50%)}.account-password{max-width:360px}.account-password .dialog-actions{justify-content:flex-start}.media-dialog>header{gap:.75rem}.media-dialog>header h2{margin-right:auto}.media-search{flex:0 1 260px;min-height:32px;padding:0 .6rem;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-raised)}.media-count{color:var(--ui-muted);white-space:nowrap}.sync-badge{position:relative;display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer}.sync-badge:hover{background:var(--ui-hover, color-mix(in srgb, var(--ui-text) 8%, transparent));color:var(--ui-text)}.sync-badge-text{position:absolute;top:1px;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--ui-accent);color:#fff;font:600 .68rem/17px system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:center}.sync-badge-text:empty{display:none}.sync-badge.is-conflict .sync-badge-text,.sync-badge.is-error .sync-badge-text{background:var(--ui-warn);color:light-dark(#fff,#1b1a18)}.sync-badge.is-checking svg{animation:sync-badge-turn 1s linear infinite}@keyframes sync-badge-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.sync-badge.is-checking svg{animation:none;opacity:.5}}
/*# sourceMappingURL=studio.css.map */
