@charset "UTF-8";
:root{--bg:#f7f8f5;--paper:#fff;--ink:#253d39;--muted:#73817b;--line:#e3e8e2;--green:#286555;--soft:#e7eee6;--red:#a63e3e;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;line-height:1.55}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:34px;font-weight:650;letter-spacing:-1.1px;line-height:1.2;margin-bottom:12px}h2{font-size:19px;line-height:1.4;letter-spacing:-.35px;margin-bottom:12px}h3{font-size:20px;letter-spacing:-.35px;margin-bottom:8px}small{display:block;color:var(--muted);font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:28px 0}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;color:var(--muted);margin-bottom:10px}.small-text{font-size:12px}.sidebar{position:fixed;left:0;top:0;width:244px;height:100dvh;background:#fff;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:11px;align-items:center;font-size:24px;font-weight:700;letter-spacing:-1px;color:var(--ink);margin:0 0 44px 7px}.brand:hover{text-decoration:none}.brand small{font-size:10px;letter-spacing:.2px;font-weight:450;margin-top:1px}.brand-mark{flex-shrink:0;width:40px;height:43px;background:var(--green);color:#fff;border-radius:12px;display:grid;place-content:center;font-size:30px;font-weight:650;line-height:1;position:relative;letter-spacing:-2px}.brand-mark span{position:absolute;right:4px;top:4px;font-size:15px;color:#e8e5ac}.nav-label{font-size:9px;letter-spacing:1.4px;font-weight:750;color:#94a099;margin:16px 12px 12px}.sidebar nav>a{display:flex;gap:12px;align-items:center;padding:13px 14px;border-radius:10px;color:#63746d;font-weight:550;margin:4px 0;font-size:13px}.sidebar nav>a:hover{background:#f5f7f2;text-decoration:none}.sidebar nav>a.active{background:#eaf1e9;color:#285d4b}.nav-icon{font-size:21px;width:23px;line-height:1}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:22px;display:flex;gap:9px;align-items:center;font-size:11px}.sidebar-bottom a{font-weight:650;color:var(--ink)}.sidebar-bottom small{font-size:10px}.sidebar-bottom form{margin-left:auto}.avatar{width:32px;height:32px;border-radius:50%;background:#eee9d8;display:grid;place-content:center;color:#766a43;font-weight:650}.logout{background:none;border:0;color:var(--muted);font-size:22px;padding:6px}.main{margin-left:244px}.topbar{height:78px;padding:0 44px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#ffffff90}.topbar>span{font-size:10px;font-weight:650;letter-spacing:1.5px;color:var(--muted)}.context-pill{font-size:11px;background:#fff;border:1px solid var(--line);border-radius:50px;padding:7px 14px;color:#61746b}.page-wrap{padding:40px 44px 20px;max-width:1500px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading .muted{font-size:13px;margin-bottom:0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin-bottom:22px}.class-selector{padding:27px}.class-selector>div:first-child h2{font-size:19px;margin-bottom:18px}.grade-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);padding-bottom:21px;margin-bottom:20px;flex-wrap:wrap}.grade-tabs a{padding:9px 18px;font-size:12px;border:1px solid var(--line);border-radius:8px;color:#738078}.grade-tabs a.selected{background:var(--green);color:white;border-color:var(--green)}.grade-tabs a:hover{text-decoration:none;border-color:var(--green)}.class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:12px}.class-card{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:17px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}.class-card.selected{border-color:#81a18b;background:#f3f7ef}.class-card strong{display:block;font-size:15px}.class-card small{margin-top:2px}.class-initial{font-size:24px;font-weight:550;width:43px;height:46px;display:grid;place-content:center;border-radius:10px;background:#e4eddd;color:#4b6b43}.arrow{margin-left:auto;font-size:20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:26px 0 16px}.section-title h2{margin:0}.panel>.section-title{margin-top:0}.text-badge{font-size:10px;font-weight:500;padding:5px 10px;border-radius:7px;background:#f1f4ee;color:#6b7a6b;vertical-align:middle;white-space:nowrap}.section-title .text-badge{margin-left:8px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:30px}.dashboard-card{border:1px solid #e6e7dc;background:#fff;border-radius:var(--radius);padding:26px;color:var(--ink);transition:transform .15s,box-shadow .15s}.dashboard-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px #243c3610;text-decoration:none}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.tile-icon{width:46px;height:46px;border-radius:12px;display:grid;place-content:center;font-size:26px}.peach .tile-icon{background:#fae9de;color:#a67656}.mint .tile-icon{background:#e6efdf;color:#678558}.lavender .tile-icon{background:#edeaf6;color:#8a79aa}.sand .tile-icon{background:#f5edd7;color:#a89356}.dashboard-card p{font-size:12px;color:var(--muted);margin-bottom:23px}.card-link{display:flex;justify-content:space-between;font-size:12px;font-weight:650;color:var(--green)}.card-link>span{font-size:17px;font-weight:400}.badge{display:inline-block;background:#edf2e7;color:#4d7153;font-size:11px;padding:5px 12px;border-radius:6px;white-space:nowrap}.level-chips{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;background:var(--green);color:#fff;padding:11px 18px;border:1px solid var(--green);border-radius:8px;font-size:12px;font-weight:600;min-height:41px;line-height:1.4}.button:hover{text-decoration:none;background:#1f5547}.button.secondary{background:#fff;color:var(--green);border-color:#cad8cc}.button.secondary:hover{background:#f3f6ef}.button.small{padding:8px 13px;font-size:11px;min-height:35px}.button.full{width:100%;justify-content:space-between}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.link{padding:0;background:none;border:0;color:var(--green);font-size:12px}.link:hover{text-decoration:underline}.danger-text{color:var(--red)}.danger-button{background:var(--red);border-color:var(--red)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;min-width:0}.field>span,.search>span{font-size:11px;font-weight:650;color:#64776d}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;border:1px solid #dce3db;border-radius:7px;background:#fff;padding:10px 12px;color:var(--ink);font-size:13px}input:focus,select:focus,textarea:focus{outline:2px solid #a9c8b5;border-color:#739a84}textarea{resize:vertical;line-height:1.6}input[type=file]{font-size:12px}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}.check{display:flex;align-items:center;gap:9px;font-size:12px;margin:10px 0}.form-row{display:flex;align-items:flex-end;gap:12px;max-width:600px}.form-row .field{flex:1;margin-bottom:0}.table-panel{padding:0;overflow:hidden}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#7c887e;background:#f8faf5;font-weight:650;white-space:nowrap}td,th{padding:15px 20px;border-bottom:1px solid #edf0e9;vertical-align:top}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbf7}.actions{white-space:nowrap;font-size:11px}.actions>*{margin-right:12px}.inline{display:inline}.student-name{font-weight:650;color:var(--ink)}.long-cell{max-width:400px;min-width:200px;font-size:11px;color:#79857d}.table-toolbar{padding:20px;display:flex;gap:20px;align-items:center;justify-content:space-between}.table-toolbar>a{font-size:12px}.search{max-width:380px;display:flex;flex-direction:column;gap:6px;flex:1}.empty-cell{padding:42px;text-align:center;color:var(--muted)}.empty{background:#fff;border:1px dashed #d5dfd0;border-radius:var(--radius);text-align:center;padding:60px 20px;margin:20px 0}.empty p{color:var(--muted);max-width:450px;margin:0 auto 25px}.empty-symbol{font-size:45px;color:#8caa94;margin-bottom:20px}.notice{background:#edf3e8;border:1px solid #d3e2ca;color:#4a6745;border-radius:10px;padding:15px 20px;margin-bottom:22px;font-size:13px;overflow-wrap:anywhere}.notice.danger{background:#fff0ed;border-color:#ebcdc5;color:#9a4b3d}.notice form{margin-top:12px}details>summary{cursor:pointer;font-size:14px;font-weight:650}details[open]>summary{margin-bottom:22px}.level-section{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.level-section>summary{font-size:13px;color:var(--green)}.override-row{display:grid;grid-template-columns:1fr 1fr auto;gap:15px;align-items:center;border-top:1px solid var(--line);padding:14px 0;font-size:12px}.override-row small{font-size:10px;margin-top:3px}.sticky-actions{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:14px;padding:16px;background:#f7f8f5f5;border:1px solid var(--line);border-radius:12px;z-index:1;backdrop-filter:blur(8px)}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled{opacity:.75}.delete-area{margin:20px 0}.step-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.step-heading h2{margin-bottom:0}.step-heading p{margin:4px 0 0;font-size:12px}.step{width:28px;height:28px;border-radius:8px;background:#eaf0e5;display:grid;place-content:center;font-size:12px;font-weight:700;flex-shrink:0}.selection-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:30px}.selection-tools{display:flex;gap:16px;margin-bottom:10px}.selection-list{height:300px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:8px 14px}.selection-item{padding:9px 0;border-bottom:1px solid #edf0e9;margin:0}.selection-item:last-child{border:0}.selection-item small{font-size:10px}.generation-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;background:#f5f8f0;padding:17px;border-radius:10px;margin:25px 0 18px;font-size:12px}.generation-summary>span{font-size:10px;color:var(--muted)}.placeholder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.placeholder-grid>div{display:flex;flex-direction:column;padding:10px;background:#f7f9f4;border-radius:7px;font-size:11px}.placeholder-grid span{color:var(--muted);margin-top:5px}code{font-size:11px;color:#557b5f;overflow-wrap:anywhere}.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;margin-bottom:20px}.column-picker{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:20px}.preset-select{min-width:190px;margin:0}.list-title{display:flex;align-items:center;justify-content:space-between;padding:22px}.list-title h2{margin:0}.list-title>span{font-size:11px;color:var(--muted)}.footer{padding:35px 0 10px;color:#9aa49a;font-size:10px;display:flex;gap:20px;justify-content:space-between}.auth-main{max-width:580px;margin:5vh auto}.auth-main .page-wrap{padding:25px}.auth-card{padding:35px}.auth-card .brand-mark{margin-bottom:30px}.auth-card form{margin:15px 0 20px}.narrow{max-width:650px}.import-panel{background:#fafbf7}.import-panel p{font-size:12px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1500px){.dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-card h3{font-size:17px}}
@media(max-width:1100px){.sidebar{width:205px;padding:25px 15px}.main{margin-left:205px}.topbar{padding:0 25px}.page-wrap{padding:30px 25px}.brand{font-size:21px}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.grade-tabs a{padding:8px 12px}.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{position:static;width:auto;height:auto;padding:15px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 15px 3px;font-size:20px}.brand small,.sidebar .nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar nav>a{padding:7px 10px;font-size:11px;margin:0;gap:5px}.nav-icon{font-size:16px;width:auto}.main{margin-left:0}.topbar{height:55px;padding:0 18px}.topbar>span{font-size:8px;letter-spacing:.6px}.context-pill{font-size:9px;padding:5px 8px}.page-wrap{padding:26px 18px 15px}h1{font-size:27px}.page-heading{align-items:flex-start}.page-heading .button{font-size:10px}.panel{padding:20px}.table-panel{padding:0}.dashboard-grid{gap:12px}.dashboard-card{padding:18px}.dashboard-card h3{font-size:17px}.dashboard-card p{font-size:11px}.grade-tabs{gap:5px}.grade-tabs a{padding:7px 10px;font-size:11px}.selection-grid,.form-grid,.form-grid.three,.placeholder-grid{grid-template-columns:1fr}.override-row{grid-template-columns:1fr auto}.override-row strong{grid-column:1/-1}.selection-list{height:230px}.section-title{flex-wrap:wrap}.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer span{max-width:180px;text-align:right}.form-row{flex-wrap:wrap}.form-row .field{flex-basis:100%}.auth-main{margin:0 auto}.table-toolbar{flex-wrap:wrap}.table-scroll td{padding:12px 14px}.generation-summary{flex-direction:column;align-items:flex-start}}
@media print{@page{size:A4 landscape;margin:12mm}body{background:white;color:black;font-size:9pt}.sidebar,.topbar,.page-heading,.footer,.notice,.no-print{display:none!important}.main{margin:0}.page-wrap{padding:0;max-width:none}.panel{border:0;border-radius:0;margin:0;padding:0}.table-scroll{overflow:visible}table{font-size:8pt;table-layout:auto}td,th{padding:5px 6px;border-bottom:1px solid #ccc;overflow-wrap:anywhere;white-space:normal}th{font-size:7pt;color:black}thead{display:table-header-group}tr{break-inside:avoid}.list-title{padding:0 0 15px}.print-list{width:100%}.list-title h2{font-size:16pt}}
@media screen and (max-width:760px){.sidebar-bottom{display:flex;margin-top:14px;padding-top:12px}.sidebar-bottom small{display:block}.sidebar-bottom .avatar{width:27px;height:27px}.sidebar-bottom .logout{font-size:19px}}
/* V1.2: Übersicht und Bearbeitung nebeneinander */
.page-wrap{max-width:none}.split-view{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.split-view>div,.split-view>section{min-width:0}.split-view iframe{width:100%;height:calc(100vh - 150px);min-height:600px;border:0;border-radius:18px;background:var(--paper,#fff)}.embedded .sidebar,.embedded .topbar,.embedded .page-heading,.embedded .footer{display:none}.embedded .main{margin:0;padding:0}.embedded .page-wrap{padding:16px}.topic-navigation{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}.topic-navigation a{max-width:48%;white-space:normal}.list-split .form-grid{grid-template-columns:1fr 1fr}.list-split .checkbox-grid{grid-template-columns:1fr 1fr}.list-split .print-list{position:sticky;top:16px}#student-table input,#student-table select,#student-table textarea{width:100%;min-width:90px}#student-table td:first-child{min-width:170px}#student-table .save-error{border:2px solid #b42318}[hidden]{display:none!important}.calendar-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px}.topic-pool{max-height:calc(100vh - 210px);overflow:auto;position:sticky;top:12px}.calendar-topic{display:block;width:100%;text-align:left;padding:6px 8px;margin:4px 0;border:1px solid #b4cbbb;border-radius:6px;background:#e8f2e9;color:#203c2e;cursor:grab;font:inherit;font-size:11px;overflow-wrap:anywhere}.calendar-topic.selected{outline:2px solid #276145}.year-calendar{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.calendar-week{border:1px solid #d4dfd5;border-radius:7px;min-height:84px;background:white;padding:5px}.week-target{border:0;background:none;text-align:left;width:100%;cursor:pointer;padding:0;font:inherit;font-size:10px}.week-target span{display:block;color:#66736a}.drag-over{background:#d7eadb;outline:2px solid #276145}#calendar-status{min-height:24px}.calendar-week .calendar-topic{font-size:10px;padding:3px}.calendar-layout .panel{padding:12px}
@media(min-width:1300px){body:has(.year-calendar) .sidebar{width:180px}body:has(.year-calendar) .main{margin-left:180px}body:has(.year-calendar) .page-wrap{padding:16px 20px}body:has(.year-calendar) .page-heading{margin-bottom:12px}}
@media(max-width:1000px){.split-view{grid-template-columns:1fr}.list-split .print-list{position:static}.year-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}.calendar-layout{grid-template-columns:160px minmax(0,1fr)}}
@media print{.list-split{display:block}.list-split .print-list{position:static}.topic-navigation{display:none}}

@media(min-width:1001px){.split-view #topics-table td{padding:14px 10px}.split-view>div:first-child{max-height:calc(100vh - 180px);overflow:auto}.split-view iframe{position:sticky;top:12px}}
@media(min-width:1100px){body:has(.year-calendar) .topbar{height:48px}body:has(.year-calendar) .page-wrap{padding:16px 20px 0}body:has(.year-calendar) .page-heading{margin-bottom:12px}body:has(.year-calendar) .page-heading h1{font-size:27px;margin-bottom:5px}body:has(.year-calendar) .page-heading .eyebrow{display:none}body:has(.year-calendar) .section-title{margin-bottom:8px}body:has(.year-calendar) .page-wrap>p.muted{font-size:11px;margin-bottom:8px}body:has(.year-calendar) .footer{display:none}.calendar-layout .topic-pool{max-height:calc(100dvh - 245px);margin-bottom:0}.year-calendar{height:calc(100dvh - 245px);grid-template-rows:repeat(7,minmax(0,1fr))}.calendar-week{min-height:0;overflow:auto}.calendar-layout .topic-pool h2{font-size:15px}}

/* V1.3: Fachliche Angaben bleiben auch in der linken Tabellenhälfte sichtbar. */
#topics-table th,#topics-table td{white-space:normal;overflow-wrap:anywhere}#topics-table td:nth-child(4){min-width:180px;max-width:none}#topics-table td:nth-child(2){min-width:140px}#topics-table th:nth-child(1){min-width:65px}#topics-table td:nth-child(5){min-width:75px}
/* V2.0: integrierter A4-Grafikeditor */
.template-choice-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.template-choice-header>.step-heading{margin:0 0 14px}.template-choice-header .button-row{margin:0 0 14px}.template-choice-header .button{gap:7px}
.editor-toolbar{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;margin-bottom:14px}
.editor-toolbar .field{margin:0;min-width:170px;flex:1 1 180px}.editor-toolbar .field input{min-width:0}.editor-toolbar .button{gap:5px;white-space:nowrap}
.editor-toolbar select{height:37px;border:1px solid #d7ded8;border-radius:8px;background:#fff;color:var(--ink);padding:4px 7px}
#ed-status{font-size:11px;min-width:105px;text-align:right}#graphic-editor{min-width:0}
.ed-check,.ed-checkbox{display:inline-flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}
.ed-preview-controls{display:flex;gap:15px;padding:12px 15px;background:#e7f0ec;margin-bottom:14px;border-radius:10px;flex-wrap:wrap}
.ed-preview-controls label{display:flex;gap:8px;align-items:center;font-size:12px}.ed-preview-controls select{max-width:220px}
.ed-layout{display:grid;grid-template-columns:minmax(195px,235px) minmax(0,1fr) minmax(220px,265px);gap:12px;align-items:start}
.ed-side,.ed-properties{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px;position:sticky;top:12px;max-height:calc(100dvh - 34px);overflow-y:auto;min-width:0}
.ed-side h3,.ed-properties h3{font-size:15px;margin-bottom:9px}.ed-side .small-text{font-size:10px}
.ed-tabs{display:flex;gap:3px;margin:12px 0 11px;border-bottom:1px solid var(--line);padding-bottom:6px}
.ed-tabs button{border:0;background:transparent;padding:6px 7px;color:var(--muted);font-size:10px;border-radius:6px}
.ed-tabs button.active{background:#e9f2e8;color:var(--green);font-weight:700}
#ed-tools{display:flex;flex-direction:column;gap:6px}#ed-tools details{padding:6px 0;border-bottom:1px solid #e7eee7}#ed-tools summary{font-size:11px;font-weight:700;margin-bottom:5px}
.ed-tool{border:1px solid #d9e5d9;background:#f9fbf8;border-radius:7px;text-align:left;padding:8px 9px;color:#365e52;font-size:11px;line-height:1.3;cursor:grab;display:flex;align-items:center;gap:8px;width:100%;min-height:34px;overflow-wrap:anywhere}
.ed-tool:hover{background:#e8f3e7;border-color:#8aa98c}.ed-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ed-gallery .ed-tool{flex-direction:column}.ed-gallery img{max-width:100%;max-height:65px;object-fit:contain}
.ed-file-input{max-width:100%;font-size:10px}.ed-stage{background:#e6eae5;border:1px solid #d5ddd3;border-radius:12px;padding:15px;min-width:0;overflow:auto;min-height:650px}
.ed-stage-head{font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;color:#566d60}.ed-stage-head label{white-space:nowrap}
#ed-sheet-wrap{position:relative;margin:0 auto 16px}#ed-sheet{position:absolute;left:0;top:0;background:white;box-shadow:0 8px 25px #1a302529;transform-origin:top left;user-select:none}
#ed-canvas,#ed-overlays{position:absolute;top:0;left:0;width:794px;height:1123px}#ed-overlays{pointer-events:none}
#ed-sheet.grid-on{background-image:linear-gradient(#9bbfa83c 1px,transparent 1px),linear-gradient(90deg,#9bbfa83c 1px,transparent 1px);background-size:18.8976px 18.8976px}
#ed-sheet.grid-on #ed-canvas{opacity:.94}
.ed-hit{position:absolute;pointer-events:auto;border:1px solid transparent;touch-action:none;cursor:move}
.ed-hit:hover{border-color:#73a99599}.ed-hit.selected{border:2px solid #2d9c72;outline:1px solid #d1f4d8}
.ed-hit.locked{cursor:not-allowed}.ed-hit.locked.selected{border-style:dashed;border-color:#b27a60}
.ed-handle{position:absolute;right:-5px;bottom:-5px;width:11px;height:11px;background:#fff;border:2px solid #27835c;border-radius:2px;cursor:nwse-resize}
.ed-warning{padding:10px 13px;background:#fff9ed;border:1px solid #e8dabc;border-radius:7px;font-size:11px;color:#856424;margin:6px 0 0}
.ed-properties .ed-prop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;font-size:11px}.ed-prop>span{flex:1;overflow-wrap:anywhere}.ed-prop input,.ed-prop select{width:106px;min-width:0;border:1px solid #cad8cf;border-radius:6px;padding:6px 5px;background:#fff;min-height:31px;color:var(--ink)}.ed-prop input[type=color]{padding:2px;height:31px}
.ed-prop-actions{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0 12px}.ed-prop-actions .button{min-height:29px;padding:6px 8px;font-size:10px}.ed-checkbox{margin:5px 0;display:flex}.ed-rich-editor{min-height:95px;max-height:220px;overflow:auto;padding:9px;border:1px solid #c5d5cb;border-radius:7px;background:#fff;font-size:13px;user-select:text}
.tpl-row{display:flex;gap:18px;border-bottom:1px solid var(--line);padding:16px 0;align-items:center}.tpl-thumb{width:102px;height:144px;object-fit:contain;border:1px solid #d5dfd6;box-shadow:0 2px 8px #1232;flex-shrink:0;background:white}.tpl-data{min-width:0;flex:1}.tpl-data>strong{font-size:15px;display:block}.tpl-data small{margin:5px 0 15px}.tpl-actions{display:flex;flex-wrap:wrap;gap:7px}.tpl-actions .button{gap:5px}
.tpl-default-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(160px,1fr);gap:10px;align-items:center;border-bottom:1px solid #e9efeb;padding:9px 0}.tpl-default-row label{font-size:12px}.tpl-default-row select{width:100%;border:1px solid #d5ded7;border-radius:7px;padding:7px}
.tpl-archive-row,.tpl-asset-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.tpl-asset-row img{height:48px;width:60px;object-fit:contain}.tpl-asset-row span{flex:1;overflow-wrap:anywhere}
@media(max-width:1450px){.ed-layout{grid-template-columns:185px minmax(0,1fr) 210px}.ed-stage{padding:10px}.ed-side,.ed-properties{padding:10px}}
@media(max-width:1050px){.ed-layout{grid-template-columns:175px minmax(0,1fr)}.ed-properties{grid-column:1/-1;position:static;max-height:none}.ed-side{position:static;max-height:none}.ed-stage{max-width:100%}}
@media(max-width:650px){.ed-layout{grid-template-columns:1fr}.ed-stage,.ed-side,.ed-properties{grid-column:auto}.ed-side{max-height:250px}.ed-stage{max-height:740px}.editor-toolbar{align-items:center}.tpl-row{align-items:flex-start}.tpl-thumb{width:70px;height:98px}.tpl-default-row{grid-template-columns:1fr}}
