:root { color-scheme: light; font-family: "Microsoft YaHei UI", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; color: #263849; background: #f1f6f9; font-synthesis: none; --accent: #168877; --muted: #6b8092; --border: #dce6ee; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--border); border-radius: 5px; background: #eff5f8; transition: background .15s, border-color .15s; }
button:hover { background: #e4eef4; border-color: #bcced9; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="text"], select, .readonly-field { display: block; width: 100%; min-width: 0; margin-top: 7px; border: 1px solid #d4e0e9; border-radius: 3px; background: #f8fafc; padding: 9px 11px; line-height: 18px; font-size: 13px; font-variant-numeric: tabular-nums; }
input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; margin: 0 6px 0 0; flex-shrink: 0; }
input.is-pending { border-color: #c7a976; background: #fffcf4; }
input:focus { background: white; }
h1, h2, h3, p { margin: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 14px; padding: 14px; height: calc(100dvh - 33px); min-height: 700px; }
.drawing-column { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.drawing-panel { flex: 1; min-height: 0; border: 1px solid var(--border); border-radius: 8px; background: white; display: flex; flex-direction: column; overflow: hidden; }
.drawing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; flex-shrink: 0; }
.drawing-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
h1 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.stair-icon { color: var(--accent); font-size: 20px; line-height: 1; }
.view-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 12px; }
.check-label { display: flex; align-items: center; cursor: pointer; line-height: 1.6; }
.zoom-actions { display: flex; }
.zoom-actions button { width: 27px; height: 29px; font-size: 17px; border-radius: 0; }
.zoom-actions button:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.zoom-actions button:last-child { border-radius: 0 4px 4px 0; }
.quiet-button { padding: 7px 10px; white-space: nowrap; font-size: 12px; }
.viewport { flex: 1; min-height: 0; cursor: grab; overflow: hidden; touch-action: none; }
.viewport.dragging { cursor: grabbing; }
#stair-svg { display: block; width: 100%; height: 100%; user-select: none; font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; }
.drawing-hint { text-align: center; color: var(--muted); font-size: 11px; padding: 10px; flex-shrink: 0; }
.drawing-hint span { margin: 0 9px; color: #bbc8d0; }
.notice { border: 1px solid transparent; border-radius: 6px; background: #e5f1ee; padding: 11px 14px; min-height: 58px; color: #46636b; flex-shrink: 0; font-size: 12px; }
.notice strong { color: #263849; display: block; font-weight: 600; margin-bottom: 4px; }
.notice p { white-space: pre-line; line-height: 1.65; }
.notice.pending { background: #fbf5e8; color: #80652e; }
.notice.error { background: #fff1ef; border-color: #f0c9c1; color: #a23d2c; }
.parameters { border: 1px solid var(--border); border-radius: 8px; background: white; padding: 17px 20px; overflow-y: auto; min-height: 0; }
.parameters-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: .5px; }
.intro { color: var(--muted); margin-top: 8px; font-size: 10px; line-height: 1.8; white-space: nowrap; }
.parameter-section { margin-top: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
h3 { font-size: 14px; font-weight: 650; display: flex; gap: 9px; align-items: center; }
h3 span { font-size: 12px; color: #8194a3; border-right: 1px solid #d6e1e7; padding-right: 9px; font-weight: 500; }
.primary-button { background: var(--accent); color: white; border-color: var(--accent); padding: 7px 20px; }
.primary-button:hover { background: #107563; border-color: #107563; }
.primary-button.pending { box-shadow: 0 0 0 3px #e8f2ee; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
label, .field-group > label { color: #597186; font-size: 12px; }
.check-label { color: #263849; }
select { margin-top: 13px; background: #f7fafb; padding: 8px; font-size: 12px; }
.readonly-field { background: #f0f5f8; color: #536c80; }
.help { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.accent-text { color: var(--accent); font-size: 11px; line-height: 1.75; margin-top: 9px; }
.stepper { display: flex; gap: 4px; margin-top: 7px; }
.landing-width-field, .going-field { margin-top: 14px; }
.stepper input { flex: 1; width: 0; margin: 0; padding-left: 4px; padding-right: 4px; text-align: center; }
.stepper button { width: 30px; flex-shrink: 0; font-size: 16px; }
.platform-option { margin-top: 20px; font-size: 12px; }
.pending-hint { color: #8d6c29; font-size: 11px; line-height: 1.7; margin-top: 9px; }
details { margin-top: 25px; }
summary { cursor: pointer; padding: 5px 0; font-size: 12px; color: #384e60; }
details > label { display: block; margin-top: 15px; }
.formula { white-space: pre-line; color: var(--muted); line-height: 1.9; font-size: 11px; margin-top: 12px; }
.local-note { display: flex; align-items: center; gap: 7px; color: #8595a1; font-size: 10px; border-top: 1px solid #edf2f5; padding-top: 18px; margin-top: 30px; }
.status-dot { width: 5px; height: 5px; background: #69a799; border-radius: 50%; }
footer { display: flex; justify-content: space-between; gap: 15px; color: #788b9a; font-size: 10px; padding: 8px 24px; min-height: 33px; background: #e8eff4; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 1000px) and (min-width: 761px) { .workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 10px; padding: 10px; } .parameters { padding: 16px; } .zoom-actions { display: none; } .drawing-toolbar { padding: 10px; } .drawing-hint span { margin: 0 3px; } }
@media (max-width: 760px) {
  .workspace { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 10px; gap: 12px; }
  .drawing-panel { flex: none; height: 65dvh; min-height: 430px; max-height: 760px; }
  .drawing-toolbar { padding: 10px; gap: 5px; flex-wrap: wrap; }
  h1 { font-size: 12px; }
  .view-actions { gap: 7px; font-size: 11px; }
  .quiet-button { padding: 6px 8px; font-size: 11px; }
  .drawing-hint { font-size: 9px; padding: 8px 3px; }
  .drawing-hint span { margin: 0 4px; }
  .notice { padding: 10px; font-size: 11px; }
  .parameters { overflow: visible; padding: 18px; }
  .intro { font-size: 11px; }
  .parameter-section { margin-top: 24px; }
  input[type="text"], select { font-size: 16px; min-height: 42px; }
  select { font-size: 14px; }
  .stepper button { width: 36px; }
  .platform-option { font-size: 13px; }
  footer { flex-direction: column; gap: 5px; padding: 12px 20px; }
}
