.material-editor {
  color: #192c47; background: #fff; border: 1px solid #d6dfec; padding: 0;
  border-radius: 12px; width: min(710px, calc(100vw - 32px)); max-width: none;
  max-height: min(90dvh, 900px); box-shadow: 0 24px 75px #172e5338; overflow: hidden;
  font: 14px/1.5 "Inter", "Noto Sans SC", "Microsoft Yahei", sans-serif;
}
.material-editor::backdrop { background: rgb(16 32 58 / 48%); }
.material-editor[open] { display: flex; flex-direction: column; }
.material-editor *, .material-editor *::before, .material-editor *::after { box-sizing: border-box; }
.material-editor [hidden] { display: none !important; }
.material-editor h2, .material-editor h3, .material-editor p { margin: 0; }
.material-editor .ed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; border-bottom: 1px solid #dce3ee; flex: none;
}
.material-editor h2 { font-size: 21px; letter-spacing: -.025em; line-height: 1.35; font-weight: 670; }
.material-editor button, .material-editor input, .material-editor select { font: inherit; }
.material-editor button { cursor: pointer; }
.material-editor button:disabled { opacity: .45; cursor: not-allowed; }
.material-editor .ed-close, .material-editor .ed-remove {
  display: inline-grid; place-items: center; background: transparent; color: #607189;
  border: 0; padding: 0; line-height: 1; border-radius: 6px;
}
.material-editor .ed-close { width: 32px; height: 32px; font-size: 25px; }
.material-editor .ed-remove { width: 28px; height: 28px; font-size: 19px; }
.material-editor .ed-close:hover, .material-editor .ed-remove:hover { color: #174fb5; background: #edf3fd; }
.material-editor form { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.material-editor .ed-body { overflow: auto; overscroll-behavior: contain; padding: 20px 24px; min-height: 0; }
.material-editor .ed-topline { display: grid; grid-template-columns: minmax(100px, .64fr) minmax(0, 1.7fr); gap: 16px; margin-bottom: 14px; }
.material-editor .ed-topline-name { grid-template-columns: minmax(0, 1.7fr) minmax(116px, .64fr); margin-bottom: 20px; }
.material-editor label { display: flex; flex-direction: column; color: #374a65; gap: 5px; font-size: 13px; font-weight: 600; }
.material-editor input, .material-editor select {
  display: block; width: 100%; min-width: 0; height: 37px; color: #1c314f; background-color: #fff;
  padding: 6px 9px; border: 1px solid #cbd5e3; border-radius: 7px; font-weight: 400;
}
.material-editor select:disabled { color: #465974; background-color: #f3f6fa; opacity: 1; }
.material-editor :is(button, input, select):focus-visible { outline: 2px solid #3774d6; outline-offset: 1px; }
.material-editor .ed-table-head { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 0 3px; }
.material-editor #editor-temper-hint { margin: -8px 0 8px; }
.material-editor .ed-state-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.material-editor .ed-state-options button { border: 1px solid #abc5e5; border-radius: 6px; padding: 3px 9px; color: #174f9a; background: #f0f6ff; }
.material-editor .ed-state-error { color: #9a3227; margin-bottom: 8px; }
.material-editor input[aria-invalid="true"] { border-color: #ae493c; }
.material-editor h3 { font-size: 16px; font-weight: 650; }
.material-editor .ed-table-head span, .material-editor .ed-help { color: #576b85; font-size: 12px; line-height: 1.5; }
.material-editor .ed-table-wrap { margin-top: 8px; border: 1px solid #dce3ee; border-radius: 9px; overflow: hidden; }
.material-editor .ed-table { border-collapse: collapse; table-layout: fixed; width: 100%; font-variant-numeric: tabular-nums; font-size: 13px; text-align: left; }
.material-editor .ed-table th, .material-editor .ed-table td { text-align: start; padding: 5px 7px; background: #fff; color: #283e5b; border-bottom: 1px solid #e2e8f0; }
.material-editor .ed-table thead th { background: #f3f6fb; font-weight: 600; color: #52657d; font-size: 12px; }
.material-editor .ed-table th:first-child { width: 12%; padding-left: 12px; }
.material-editor .ed-table th:nth-child(2) { width: 25%; }
.material-editor .ed-table th:last-child { width: 38px; }
.material-editor .ed-table tr:last-child :is(td,th) { border-bottom: 0; }
.material-editor .ed-table input { height: 31px; padding: 3px 6px; font-size: 13px; }
.material-editor .ed-table input::placeholder { color: #8290a2; }
.material-editor .ed-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.material-editor .ed-append, .material-editor .ed-actions { display: flex; align-items: center; gap: 8px; }
.material-editor .ed-append { margin: 10px 0 4px; }
.material-editor .ed-append select { width: 120px; height: 33px; font-size: 13px; }
.material-editor .ed-append button, .material-editor .ed-secondary, .material-editor .ed-primary {
  border: 1px solid #cad5e4; border-radius: 7px; background: #fff; color: #253c59;
  min-height: 36px; padding: 6px 14px; font-weight: 550;
}
.material-editor .ed-append button { min-height: 32px; font-size: 13px; }
.material-editor .ed-primary { color: white; background: #2258bf; border-color: #2258bf; }
.material-editor :is(.ed-append button, .ed-secondary):hover:not(:disabled) { background: #f1f5fb; }
.material-editor .ed-primary:hover:not(:disabled) { background: #17499f; }
.material-editor .ed-actions { flex: none; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid #dce3ee; }
.material-editor .ed-actions button:first-child { margin-right: auto; }
.material-editor .ed-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 11px 15px; margin: 16px 0 5px; border: 1px solid #d5e0f4; border-radius: 9px; background: #f0f5fe; }
.material-editor .ed-result span { display: block; font-size: 12px; color: #476286; }
.material-editor .ed-result b { color: #194ea8; font-size: 23px; font-variant-numeric: tabular-nums; }
.material-editor .ed-result small { font-size: 12px; color: #536b8b; }
.material-editor .ed-message:not(:empty) { margin-top: 8px; color: #455f83; font-size: 13px; }
.material-editor .ed-message.ed-error { color: #a33227; font-weight: 550; }
@media (max-width: 580px) {
  .material-editor { width: calc(100vw - 16px); max-height: 95dvh; }
  .material-editor .ed-head, .material-editor .ed-body { padding: 13px; }
  .material-editor .ed-topline, .material-editor .ed-topline-name { gap: 8px; }
  .material-editor .ed-topline { grid-template-columns: minmax(68px, .48fr) minmax(0, 1.6fr); }
  .material-editor .ed-topline-name { grid-template-columns: minmax(0, 1.5fr) minmax(95px, .72fr); }
  .material-editor .ed-table th, .material-editor .ed-table td { padding: 5px 3px; }
  .material-editor .ed-table th:first-child { padding-left: 6px; }
  .material-editor .ed-table th:last-child { width: 25px; }
  .material-editor .ed-remove { width: 22px; }
  .material-editor .ed-actions { gap: 5px; padding: 10px 13px; }
  .material-editor .ed-actions button { padding-inline: 10px; }
}
.material-editor .ed-head,.material-editor .ed-actions{padding:12px 18px}
.material-editor .ed-body{padding:14px 18px}
.material-editor .ed-topline{gap:10px;margin:0 0 9px}
.ed-task{border-top:1px solid #dbe4eb;padding-top:10px;margin:10px 0}
.ed-task label{display:block;font-weight:550;font-size:12px;color:#334c62}
.ed-task #editor-uts-field{max-width:340px}
.ed-params{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}
.ed-route{margin-top:8px!important;padding:6px 9px;background:#edf5f5;border-left:3px solid #2c7472;color:#195b5c;font-size:12px}
.ed-composition{border:1px solid #d8e2e6;border-radius:6px;padding:7px 10px;margin:10px 0}
.ed-composition summary{cursor:pointer;font-size:13px;font-weight:600}.ed-composition summary small{color:#637489;font-weight:400}
.ed-composition[open] summary{margin-bottom:6px}.ed-deltas,.ed-validation{grid-column:1/-1;font-size:12px;line-height:1.5}
.ed-result{row-gap:4px!important}.ed-validation{color:#334b65;border-top:1px solid #ccdbeb;padding-top:6px}
#editor-ref-source{margin:4px 0}#editor-ref-source a{color:#18549b}
.ed-context{margin-bottom:9px}.ed-context label{font-size:12px;font-weight:550;display:block;margin:6px 0}.ed-context .ed-help{margin-top:6px}
.material-editor .ed-insight-link{justify-self:start;grid-column:1/-1;padding:1px 0;background:none;border:0;color:#14578c;font-size:12px;text-decoration:underline;text-underline-offset:3px}
