.editor-body{font-size:14px}.editor-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 40px;border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0;z-index:30}.editor-brand{font-family:var(--serif);font-size:29px;letter-spacing:-.045em;line-height:1.1}.editor-brand span{color:var(--accent)}.editor-header p{font-size:11px;margin-top:5px}.editor-actions{display:flex;gap:10px;flex-wrap:wrap}.editor-button{border:1px solid var(--line);background:transparent;color:var(--ink);padding:10px 15px;font-size:12px;cursor:pointer;min-height:40px}.editor-button:hover{background:var(--blue)}.editor-button.primary{background:var(--ink);border-color:var(--ink);color:var(--paper)}.editor-button:disabled{opacity:.5;cursor:wait}.editor-button.danger{color:#9e4032}.editor-statusbar{display:flex;justify-content:space-between;gap:20px;padding:12px 40px;border-bottom:1px solid var(--line);font-size:12px;min-height:44px}.editor-statusbar a{white-space:nowrap;color:var(--ink)}.editor-layout{display:grid;grid-template-columns:235px minmax(0,1fr);max-width:1440px;margin:auto}.editor-sidebar{padding:32px 25px 40px 40px;align-self:start;position:sticky;top:105px}.editor-sidebar nav{display:flex;flex-direction:column;gap:5px;margin-bottom:34px}.editor-sidebar button{border:0;background:transparent;text-align:left;padding:10px 12px;color:var(--muted);font-size:13px}.editor-sidebar button[aria-current=page]{background:var(--blue);color:var(--ink)}.editor-sidebar .text-link{font-size:11px}.editor-content{padding:38px 45px 80px;max-width:1100px;width:100%;outline:none}.editor-content h1{font-size:43px;line-height:1.1;margin-bottom:14px}.editor-intro{font-size:14px;line-height:1.7;margin-bottom:28px;max-width:750px}.editor-field{margin-bottom:24px}.editor-field>label,.editor-field legend{display:block;font-size:12px;color:var(--ink);font-weight:700;margin-bottom:9px}.editor-field fieldset{border:0;padding:0;margin:0;min-width:0}.editor-language-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.editor-language-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.editor-input{width:100%;min-width:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:11px 12px;font-size:13px;line-height:1.6;border-radius:0;resize:vertical}.editor-input:focus{outline:1px solid var(--ink);outline-offset:1px}.editor-section{padding:22px 0;border-bottom:1px solid var(--line)}.editor-section summary{font-family:var(--serif);font-size:24px;color:var(--ink);cursor:pointer}.editor-section[open] summary{margin-bottom:24px}.editor-small{font-size:12px;line-height:1.7;margin-top:10px}.editor-photo{display:flex;gap:25px;align-items:center;margin:25px 0}.editor-photo img{width:140px;height:140px;object-fit:cover;border:1px solid var(--line)}.editor-photo input{display:block;margin-top:12px;font-size:12px;max-width:100%}.course-editor{border-block-start:1px solid var(--line);padding:24px 0;margin-top:25px}.course-editor h2{font-size:28px;white-space:normal;margin-bottom:20px}.course-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.editor-content h2{font-size:28px;margin:25px 0 15px}.editor-help{font-size:14px;line-height:1.8;max-width:740px}.editor-help ol{padding-left:20px}.editor-help li{padding-left:6px;margin-block:13px}.editor-help a{color:var(--ink);text-decoration:underline}.backup-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.history-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-block:15px;border-bottom:1px solid var(--line);font-size:13px}.editor-login{min-height:100vh;display:grid;place-items:center;padding:30px}.login-card{max-width:470px;width:100%;padding:32px}.login-card .editor-brand{display:block;margin-bottom:55px}.login-card h1{font-size:57px;margin-block:20px}.login-card>p:not(.eyebrow){font-size:15px;line-height:1.75}.login-card .button{margin-top:28px}.login-card .login-note{font-size:11px!important;margin-top:17px;margin-bottom:25px}.editor-login .text-link{font-size:12px}dialog{width:min(1200px,calc(100% - 32px));height:90vh;max-height:90vh;border:1px solid var(--line);padding:0;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#182c2470}.preview-toolbar{display:flex;gap:14px;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line);font-size:12px}.preview-toolbar select{border:1px solid var(--line);padding:8px;background:var(--paper);font-size:12px}.preview-toolbar button{margin-left:auto}#preview-frame{width:100%;height:calc(100% - 70px);border:0;background:var(--paper)}.editor-error{color:#9e4032!important}.editor-success{color:var(--ink)!important}@media(max-width:850px){.editor-header{padding:18px 22px;flex-wrap:wrap;gap:15px;position:static}.editor-brand{font-size:26px}.editor-statusbar{padding-inline:22px}.editor-layout{grid-template-columns:1fr}.editor-sidebar{position:static;padding:20px 22px;border-bottom:1px solid var(--line)}.editor-sidebar nav{flex-direction:row;flex-wrap:wrap;gap:4px;margin-bottom:12px}.editor-sidebar button{font-size:12px;padding:8px 10px}.editor-content{padding:28px 22px 65px}.editor-content h1{font-size:36px}}@media(max-width:550px){.editor-language-fields{grid-template-columns:1fr;gap:12px}.editor-actions{gap:7px}.editor-button{padding:9px 11px;font-size:11px}.editor-photo{align-items:start;flex-direction:column;gap:10px}.editor-statusbar{font-size:11px}.login-card{padding:12px}.login-card h1{font-size:49px}.preview-toolbar{gap:8px;padding:10px}.preview-toolbar label{display:none}.history-row{align-items:start;flex-direction:column}}
.editor-sidebar>label{display:block;font-size:11px;margin-bottom:9px}.editor-sidebar>select{margin-bottom:20px;font-size:12px}.editor-brand{font-size:25px;max-width:380px;display:block}.editor-header{gap:25px}.editor-content label .editor-input{display:block;margin-top:9px;font-weight:400}.editor-photo img{width:220px;height:auto;object-fit:contain}.editor-small{font-weight:400;color:var(--muted)}.editor-section>summary{font-size:22px}.editor-field .editor-small{font-size:10px;opacity:.8}.editor-input{overflow-wrap:anywhere}.editor-sidebar .editor-input{max-width:100%}.editor-content label>input[type=file]{display:block;margin-top:12px}.editor-section .editor-field:last-child{margin-bottom:5px}
@media(max-width:550px){.editor-brand{font-size:23px}.editor-header{padding:22px}.editor-actions{width:100%}.editor-actions .editor-button{flex-grow:1}.editor-content h1{font-size:34px}.editor-sidebar>select{font-size:14px}}
.resource-editor-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:28px}.resource-editor-toolbar select{flex:1 1 100%;min-width:0}.material-form{max-width:760px}.material-field{display:block;font-size:13px;color:var(--ink);margin:0 0 22px}.material-field>.editor-input{display:block;margin-top:8px}.material-field>.editor-small{display:block}.material-fields-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.material-upload{padding:5px 0 25px;border-bottom:1px solid var(--line);margin-bottom:24px}.material-upload>label{display:block;margin-top:20px;font-size:13px}.material-upload input[type=file]{display:block;max-width:100%;margin-top:10px}.material-editor-cover{display:block;max-width:240px;max-height:300px;object-fit:contain;margin-bottom:18px}@media(max-width:550px){.material-fields-row{grid-template-columns:1fr;gap:0}.resource-editor-toolbar .editor-button{flex:1}}
.payment-connections{max-width:720px}.payment-connection{padding:0 0 32px;margin:0 0 32px;border-bottom:1px solid var(--line)}.payment-connection h2{margin-top:0}.payment-status{padding:12px 16px;background:var(--blue);margin:0 0 24px}.payment-confirm{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.6;margin:22px 0}.payment-confirm input{flex:none;margin-top:4px}.payment-connection .editor-button{margin-top:4px}
.payment-result{margin-top:18px;padding:14px 16px;background:var(--blue);font-size:14px;line-height:1.6;overflow-wrap:anywhere}.payment-result.editor-error{background:#f6e8ea}

.payment-test-section{margin-top:3rem;padding-top:2rem;border-top:1px solid #c2dbca;max-width:850px}.payment-test-note{padding:1rem 1.25rem;background:#f1f5ef;margin:1rem 0 1.5rem}.payment-test-note p{margin-top:0}.payment-test-prerequisite{color:#4b567a}.payment-test-order{margin-top:1.5rem}.payment-test-order .editor-button{display:inline-flex;margin:0 .6rem .6rem 0;align-items:center;text-decoration:none}.payment-test-order:empty{display:none}
