.sms-command-dialog {
  box-sizing: border-box;
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line, #cddddd);
  border-radius: 8px;
  background: var(--panel, #fff);
  color: var(--ink, #17252c);
  overflow: auto;
  font: inherit;
  letter-spacing: 0;
}
.sms-command-dialog::backdrop { background: rgb(0 0 0 / 48%); }
.sms-command-header { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line, #cddddd); background: var(--panel, #fff); }
.sms-command-header h2 { font-size: 18px; margin: 0 0 6px; }
.sms-command-header p { font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.sms-command-header > div { min-width: 0; }
.sms-command-header > button { flex-shrink: 0; }
.sms-command-body { padding: 16px; }
.sms-command-dialog h3 { margin: 16px 0 12px; font-size: 15px; }
.sms-command-templates { display: flex; gap: 8px; flex-wrap: wrap; }
.sms-command-templates [aria-pressed="true"] { outline: 2px solid var(--blue, #007ac0); outline-offset: 1px; }
.sms-command-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sms-command-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.sms-command-field input, .sms-command-field select { box-sizing: border-box; width: 100%; min-width: 0; height: 38px; }
.sms-command-field small { line-height: 1.5; }
.sms-command-preview { border-top: 1px solid var(--line, #cddddd); margin-top: 16px; }
.sms-command-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; padding: 12px; background: var(--bg, #f3f8f8); border: 1px solid var(--line, #cddddd); border-radius: 4px; }
.sms-command-confirm { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 14px; }
.sms-command-confirm input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; }
.sms-command-dialog [role="status"] { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 0; font-size: 14px; line-height: 1.6; }
.sms-command-error { color: var(--red, #c32b2b); }
.sms-command-dialog .btn { white-space: normal; overflow-wrap: anywhere; }
.sms-command-dialog [hidden] { display: none !important; }
@media (max-width: 480px) {
  .sms-command-fields { grid-template-columns: minmax(0, 1fr); }
  .sms-command-header, .sms-command-body { padding: 12px; }
}
