.st-side { overflow-y: auto; }
.st-head { display: flex; align-items: center; gap: 10px; margin: 0 6px 24px; color: #1662dd; }
.st-head .hb-word { color: #1d1d21; }
.st-nav a, .st-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #3b4150; font-size: 14px; font-weight: 500; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; width: 100%; margin: 0; }
.st-nav a:hover, .st-nav button:hover { background: #f3f5f8; }
.st-nav a.active { background: #e6f0ff; color: #1662dd; }
.st-bottom { margin-top: auto; border-top: 1px solid #e4e6eb; padding-top: 10px; }
.st-main { margin-left: 220px; padding: 32px 40px 56px; max-width: 920px; }
.st svg { flex: none; }
.st h1 { font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.st .st-lead { color: #6b7280; font-size: 14px; margin: 0 0 22px; }
.st-card { border: 1px solid #e4e6eb; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.06); padding: 16px 18px; margin-bottom: 14px; }
.st-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-row.sp { justify-content: space-between; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f3f5f8; border: 1px solid #e4e6eb; font-size: 12px; font-weight: 500; color: #3b4150; }
.st-chip.lead { background: #e6f0ff; border-color: #c9dcff; color: #1662dd; }
.st-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #cfd4dc; background: #fff; color: #1d1d21; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; margin: 0; width: auto; }
.st-btn:hover { background: #f3f5f8; }
.st-btn.primary { background: #1662dd; border-color: #1662dd; color: #fff; }
.st-btn.primary:hover { background: #1254bd; }
.st-btn.danger { border-color: #f1b4b4; color: #b42318; }
.st-btn.danger:hover, .st-btn.danger.armed { background: #b42318; color: #fff; border-color: #b42318; }
.st-btn:disabled { opacity: .6; cursor: default; }
.st-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid transparent; background: none; color: #4b5563; cursor: pointer; margin: 0; }
.st-icon:hover { background: #eef0f4; }
.st-icon.danger:hover, .st-icon.danger.armed { background: #b42318; color: #fff; }
.st-icon.armed { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; font-size: 13px; font-family: inherit; }
.st-field { position: relative; display: flex; align-items: center; color: #6b7280; }
.st-field svg { position: absolute; left: 10px; pointer-events: none; }
.st-field input, .st-field select { height: 36px; padding: 0 10px 0 34px; border: 1px solid #cfd4dc; border-radius: 8px; font-size: 14px; background: #fff; color: #1d1d21; font-family: inherit; margin: 0; }
.st-field input:focus, .st-field select:focus, .st-edit input:focus, .st-edit select:focus { outline: none; border-color: #1662dd; box-shadow: 0 0 0 3px rgba(22,98,221,.18); }
.st-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-form .grow { flex: 1; min-width: 180px; }
.st-form .grow input { width: 100%; }
.st-key { padding: 14px 16px; }
.st-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; word-break: break-word; }
.st-val { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.st-val code { background: #f3f5f8; border-radius: 6px; padding: 5px 9px; font-size: 13px; word-break: break-all; }
.st-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: #6b7280; }
.st-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef0f4; color: #4b5563; }
.st-badge.green { background: #e3f6ec; color: #067647; }
.st-badge.amber { background: #fff1d6; color: #9a5b00; }
.st-badge.red { background: #fde4e4; color: #b42318; }
.st-badge.blue { background: #e6f0ff; color: #1662dd; }
.st-actions { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.st-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.st-edit input, .st-edit select { height: 32px; padding: 0 8px; border: 1px solid #cfd4dc; border-radius: 8px; font-size: 13px; font-family: inherit; margin: 0; width: auto; }
.st-msg { font-size: 13px; margin: 10px 0; min-height: 18px; display: flex; align-items: center; gap: 6px; }
.st-msg.ok { color: #067647; }
.st-msg.err { color: #b42318; }
.st-empty { text-align: center; color: #6b7280; padding: 32px 12px; font-size: 14px; }
.st-empty svg { color: #9aa3b2; margin-bottom: 8px; }
.st-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.st-mode { text-align: left; padding: 18px; border: 2px solid #e4e6eb; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; color: #1d1d21; margin: 0; width: auto; display: block; }
.st-mode:hover { border-color: #c5ccd8; }
.st-mode.sel { border-color: #1662dd; background: #f3f8ff; }
.st-mode .t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: #1662dd; }
.st-mode p { margin: 8px 0 0; font-size: 13px; color: #6b7280; }
.st-warn { display: flex; gap: 14px; border-color: #f6d79a; background: #fffaf0; }
.st-warn > svg { color: #b7791f; margin-top: 2px; }
.st-warn p { margin: 0 0 14px; font-size: 14px; color: #3b4150; }
.st-new { border-color: #a6e0c0; background: #f2fbf6; }

@media (max-width: 800px) {
  .st-side { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px; }
  .st-head { margin: 0 4px 2px; }
  .st-nav { flex-direction: row; overflow-x: auto; }
  .st-nav a, .st-nav button { width: auto; padding: 9px 12px; }
  .st-nav .lbl { display: none; }
  .st-bottom { margin-top: 0; border-top: 0; padding-top: 0; }
  .st-main { margin-left: 0; padding: 20px 16px 40px; }
}
