/* Web 串口助手(wst-) —— 本工具自己的样式, 共用表单套件见 ../shared/kit.css */

.wst-grid .wst-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wst-grid aside { min-width: 0; }

.wst-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 14px; margin-bottom: 12px; }
.wst-opts .tk-label { margin: 0; }
.wst-opts .tk-select { margin-top: 4px; }
.wst-opts .tk-input { margin-top: 4px; }

.wst-rx { height: 18rem; overflow: auto; padding: 10px 12px; border-radius: 8px; background: #020617; color: #6ee7b7; font-size: 12px; line-height: 1.6; }
.wst-line { white-space: pre-wrap; word-break: break-all; }
.wst-tx { color: #93c5fd; }

.wst-presets { display: flex; flex-direction: column; gap: 6px; }
.wst-preset { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--cv-line); border-radius: 8px; background: var(--cv-canvas); }
.wst-preset-data { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wst-preset-fmt { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; font-weight: 600; }
.wst-preset-del { color: var(--no); }
.wst-preset-edit { display: flex; gap: 6px; }
.wst-preset-edit .tk-input { flex: 1 1 auto; min-width: 0; }

@media (min-width: 1280px) {
  .wst-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
}
