.app{width: min(1280px, calc(100% - 32px));margin: 22px auto 20px;background:#fffdf8;border:1px solid #e2d8c8;border-radius:14px;box-shadow:0 8px 30px rgba(20,30,50,.08);display:flex;flex-direction:column;overflow:}
.intro{padding: 16px 18px 12px;}
h1{font-size: 20px; margin: 0 0 5px;}
.intro p{color:var(--muted);font-size:13px;margin:0}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 12px;margin-bottom:14px;box-shadow:0 2px 7px #172b4d0a;font-size:12px;}
.actions,.settings{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.settings {
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}

.settings > .check {
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .settings {
    flex-wrap: wrap;
    white-space: normal;
  }
}
button,select,.file-label{font:inherit;font-size:13px;}
button,.file-label{border:1px solid #cbd2da;background:#fff;color:#252a31;border-radius:6px;padding: 7px 11px; line-height: 1.2;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
button.primary{background:#1f2937;border-color:#1f2937;color:#fff}
button:hover,.file-label:hover{filter:brightness(.97)}
button:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #7aa7f7;outline-offset:2px}
select{border:1px solid #cbd2da;border-radius:6px;padding:5px 6px;background:#fff;min-height:36px;max-width:90px;}
.check{display:flex;align-items:center;gap:6px;color:#40464d;}
.workspace{display:grid;grid-template-columns:1fr 1fr;gap:16px; padding:10px;}
.panel{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 3px 10px #172b4d0a}
.panel-head{padding:12px 15px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}
.panel-head small{font-weight:400;color:var(--muted)}
.editor-wrap{display:grid;grid-template-columns:48px minmax(0,1fr);height:440px;background:#fff}
.lines{padding:13px 10px 13px 0;text-align:right;white-space:pre;overflow:hidden;background:#f7f8fa;color:#9299a3;border-right:1px solid #e7eaf0;font:13px/1.65 Consolas,Monaco,monospace;user-select:none}
textarea{width:100%;height:100%;resize:vertical;border:0;outline:0;padding:13px 14px;font:13px/1.65 Consolas,Monaco,monospace;color:#20242a;white-space:pre;overflow:auto;tab-size:2}
textarea[readonly]{background:#fcfcfd}
.status{min-height:42px;padding:10px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.status .message{overflow-wrap:anywhere}
.status.error{color:var(--error)}
.status.success{color:var(--ok)}
footer{text-align:center;color:#737b84;font-size:13px;padding:20px}
@media(max-width:760px){main{padding:24px 12px 32px}.nav{padding:13px 14px}h1{font-size:25px}.workspace{grid-template-columns:1fr;gap:12px}.editor-wrap{height:330px}.toolbar{align-items:flex-start}.actions{width:100%}.actions button,.actions .file-label{flex:1}.settings{width:100%}.settings select{flex:1}}