:root{--bg:#eef0f3;--surface:#fff;--surface-soft:#f8f9fb;--surface-muted:#f3f5f7;--text:#17191d;--text-secondary:#5c6370;--text-muted:#858d9a;--border:#dfe3e8;--border-strong:#cfd5dd;--accent:#2457d6;--accent-soft:#eaf0ff;--success:#249448;--warning:#c88a10;--danger:#c73737;--topbar:#15171c;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--topbar-height:56px;--tree-width:316px;--editor-width:632px;color:var(--text);background:var(--bg);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}body{background:var(--bg);font-size:13px;line-height:1.45;overflow:hidden}button,input,textarea{font:inherit}button{color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.auth-check,.login-page{background:#f4f5f7;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-check__mark,.login-panel__mark,.desktop-gate__mark{border-radius:var(--radius-md);background:var(--topbar);color:#fff;place-items:center;width:42px;height:42px;font-weight:750;display:grid}.login-panel{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);width:min(420px,100%);padding:34px;box-shadow:0 3px 12px #10182814}.login-panel__eyebrow{color:var(--accent);text-transform:uppercase;margin:20px 0 6px;font-size:11px;font-weight:700}.login-panel h1{margin:0;font-size:24px}.login-panel__copy,.login-panel__meta{color:var(--text-secondary)}.login-form{gap:9px;margin-top:24px;display:grid}.login-form label{color:#343a43;font-size:11px;font-weight:600}.login-form input{border:1px solid var(--border-strong);border-radius:var(--radius-md);height:38px;padding:0 10px}.login-form button,.desktop-gate button,.tree-state button,.logout-button{border-radius:var(--radius-md);background:var(--accent);color:#fff;cursor:pointer;border:1px solid #0000;min-height:36px;padding:0 15px;font-weight:600}.login-form button:disabled{cursor:wait;opacity:.7}.login-form__error{color:var(--danger);margin:4px 0}.desktop-gate{display:none}.cms-shell{grid-template-rows:var(--topbar-height) 1fr;background:var(--surface);min-width:1200px;height:100vh;display:grid}.topbar{height:var(--topbar-height);background:var(--topbar);color:#fff;border-bottom:1px solid #282b32;justify-content:space-between;align-items:center;gap:20px;padding:0 20px;display:flex}.topbar__brand-group,.topbar__actions,.language-switch{align-items:center;display:flex}.topbar__brand-group{gap:16px;min-width:0}.topbar__actions{gap:11px}.brand{white-space:nowrap;font-size:17px;font-weight:680}.environment,.api-status,.user-pill{border-radius:var(--radius-sm);color:#e8ebef;white-space:nowrap;background:#252930;align-items:center;gap:7px;min-height:30px;padding:0 10px;display:inline-flex}.environment__dot{background:#41c46a;border-radius:50%;width:7px;height:7px}.api-status{color:#a9afba;text-overflow:ellipsis;max-width:360px;overflow:hidden}.language-switch{gap:2px}.language-switch button,.viewport-switch button{border-radius:var(--radius-sm);color:#d4d8df;cursor:pointer;background:0 0;border:0;min-height:30px;padding:0 10px}.language-switch button.is-active,.viewport-switch button.is-active{color:#fff;background:#2d323a}.logout-button{background:#353a43}.workspace{grid-template-columns:var(--tree-width) var(--editor-width) minmax(520px, 1fr);min-height:0;display:grid}.site-tree,.editor,.preview-panel{background:var(--surface);min-width:0;min-height:0}.site-tree{border-right:1px solid var(--border);grid-template-rows:auto 1fr;display:grid}.editor{border-right:1px solid var(--border);grid-template-rows:auto auto 1fr;display:grid}.preview-panel{background:#f6f7f9;grid-template-rows:minmax(0,1fr) 230px;display:grid}.panel-heading,.editor__header,.preview-toolbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;min-height:64px;padding:12px 20px;display:flex}.panel-heading h1,.editor__header h1,.preview-toolbar h2{margin:0;font-size:15px;font-weight:650}.editor__header p,.preview-toolbar p{color:var(--text-muted);margin:4px 0 0;font-size:11px}.phase-badge,.readonly-badge{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-muted);min-height:24px;color:var(--text-secondary);align-items:center;padding:0 8px;font-size:10px;font-weight:700;display:inline-flex}.tree{padding:10px 0 14px;overflow:auto}.tree-row,.project-row{text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:38px;padding:5px 18px;display:flex}.tree-row--root,.tree-row--section{font-weight:650}.tree-row--disabled{color:var(--text-muted);cursor:default}.tree-row--disabled small{text-align:right;max-width:128px;font-size:10px}.count-badge{background:var(--accent-soft);min-width:22px;height:20px;color:var(--accent);border-radius:10px;place-items:center;font-size:10px;display:inline-grid}.tree-projects{border-left:1px solid #e3e6ea;margin-left:36px}.project-row{cursor:pointer;min-height:45px;padding-left:13px}.project-row:hover,.tree-row:not(.tree-row--disabled):hover{background:var(--surface-soft)}.project-row--selected{background:var(--accent-soft);color:#0e3ca7}.project-row__label{text-overflow:ellipsis;min-width:0;overflow:hidden}.status--published{color:var(--success);font-size:10px}.tree-state{color:var(--text-secondary);margin:10px 18px}.tree-state--error{border-radius:var(--radius-md);border:1px solid #e3c7c7;padding:10px}.tree-state--error button{color:#fff}.tabs{border-bottom:1px solid var(--border);align-items:end;height:44px;padding:0 14px;display:flex}.tabs__item{height:44px;color:var(--text-secondary);background:0 0;border:0;padding:0 14px;position:relative}.tabs__item--active{color:var(--accent);font-weight:700}.tabs__item--active:after{content:"";background:var(--accent);height:2px;position:absolute;bottom:-1px;left:10px;right:10px}.editor-form{padding:20px 24px 40px;overflow:auto}.editor-state{color:var(--text-secondary);place-items:center;padding:30px;display:grid}.form-section{border:0;margin:0 0 26px;padding:0}.form-section legend{border-bottom:1px solid var(--border);width:100%;margin-bottom:16px;padding-bottom:9px;font-size:12px;font-weight:650}.media-preview{border:1px solid var(--border);border-radius:var(--radius-md);object-fit:cover;width:min(320px,100%);max-height:180px;margin:0 0 14px;display:block}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;display:grid}.field{gap:6px;min-width:0;display:grid}.field span{color:#343a43;font-size:11px;font-weight:590}.field input,.field textarea{border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);width:100%;color:var(--text);padding:9px 10px}.field input{height:35px}.field textarea{resize:vertical;line-height:1.45}.tags-input{border:1px solid var(--border-strong);border-radius:var(--radius-md);flex-wrap:wrap;gap:6px;min-height:42px;margin-bottom:16px;padding:6px;display:flex}.tag{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-muted);color:#3c434e;align-items:center;min-height:27px;padding:0 9px;font-size:11px;display:inline-flex}.published-preview{min-height:0;overflow:auto}.viewport-switch{border:1px solid var(--border);border-radius:var(--radius-md);background:#fff;display:inline-flex;overflow:hidden}.viewport-switch button{color:var(--text-secondary);border-radius:0}.viewport-switch button.is-active{background:var(--accent-soft);color:var(--accent)}.preview-card{background:#fff;border:1px solid #e3e5e8;width:min(720px,100% - 40px);margin:20px auto;padding:26px;box-shadow:0 3px 12px #10182814}.preview-card__status{color:var(--success);text-transform:uppercase;font-size:11px;font-weight:700}.preview-card h3{letter-spacing:-.02em;margin:8px 0 14px;font-size:34px;line-height:1.02}.preview-card p{color:#31343a}.preview-card__tags{flex-wrap:wrap;gap:7px;margin:20px 0;display:flex}.preview-card__tags span{color:#666d78;border:1px solid #d7d9dd;border-radius:20px;align-items:center;min-height:24px;padding:0 10px;font-size:10px;display:inline-flex}.preview-card figure{margin:20px 0 0}.preview-card img{object-fit:cover;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-muted);width:100%;max-height:300px}.preview-card figcaption{color:var(--text-muted);margin-top:8px;font-size:10px}.activity-panel{border-top:1px solid var(--border);background:#fff;padding:14px 18px;overflow:auto}.activity-panel h2{margin:0 0 10px;font-size:12px}.activity-panel ol{gap:8px;margin:0;padding:0;list-style:none;display:grid}.activity-panel li{color:var(--text-secondary);justify-content:space-between;gap:14px;font-size:11px;display:flex}.activity-panel time{color:var(--text-muted)}.dialog-backdrop{z-index:10;background:#17191d7a;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.publish-dialog{border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);width:min(460px,100%);padding:24px;box-shadow:0 14px 36px #1018283d}.publish-dialog h2{margin:0;font-size:17px}.publish-dialog>p{color:var(--text-secondary);margin:10px 0 0}.dialog-actions,.editor-actions{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.dialog-actions button,.editor-actions button,.technology-list button,.editor-error button{border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);cursor:pointer;min-height:34px;padding:0 12px}.dialog-actions button:last-child,.editor-actions button:first-child{border-color:var(--accent);background:var(--accent);color:#fff}.dialog-actions button:disabled,.editor-actions button:disabled{cursor:not-allowed;opacity:.55}@media (width<=1399px){:root{--tree-width:286px;--editor-width:548px}.api-status{max-width:240px}}@media (width<=1199px){body{overflow:auto}.cms-shell{display:none}.desktop-gate{place-items:center;min-height:100vh;padding:24px;display:grid}.desktop-gate__card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);text-align:center;width:min(460px,100%);padding:34px;box-shadow:0 3px 12px #10182814}.desktop-gate__mark{margin:0 auto 16px}.desktop-gate__note{color:var(--text-secondary)}}
