.sms-templates { max-width: 1200px; min-width: 0; }
.sms-templates header, .sms-templates .sms-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; padding: 0; min-height: 0; }
.sms-templates h3 { font-size: 22px; margin: 16px 0 8px; }
.sms-templates h4 { margin: 16px 0 8px; }
.sms-templates p { margin: 10px 0; }
.sms-templates form { display: grid; gap: 16px; padding: 18px 0; }
.sms-templates label { display: grid; gap: 6px; min-width: 0; }
.sms-templates input, .sms-templates select, .sms-templates textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #cbd6d0; border-radius: 4px; background: white; color: #19332a; font: inherit; }
.sms-templates textarea { min-height: 92px; resize: vertical; }
.sms-templates details { border-block: 1px solid #dce5e0; padding: 16px 0; }
.sms-templates .sms-scenes { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 16px; padding: 16px 0; }
.sms-templates .sms-scenes form { padding: 0; margin: 0; align-content: start; gap: 10px; }
.sms-templates table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sms-templates td, .sms-templates th { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e4e9e6; vertical-align: top; }
.sms-templates td:nth-child(2) { min-width: 180px; max-width: 360px; overflow-wrap: anywhere; }
.sms-templates .sms-table { overflow: auto; max-width: 100%; }
.sms-templates [data-status] { min-height: 24px; overflow-wrap: anywhere; color: #36584b; }
.sms-templates .sms-detail { padding: 18px 0; border-bottom: 1px solid #dce5e0; }
.sms-templates pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.sms-templates button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; border: 1px solid #cbd6d0; border-radius: 4px; background: #fff; color: #19332a; font: inherit; cursor: pointer; }
.sms-templates button.primary { background: #176b4e; color: white; border-color: #176b4e; }
.sms-templates button:disabled { opacity: .5; cursor: not-allowed; }
.sms-templates .danger { color: #b42332; }
.sms-templates summary { cursor: pointer; font-weight: 600; }
#phone-auth { display: grid; gap: 12px; min-width: 0; }
#phone-auth[hidden], #phone-auth [hidden] { display: none !important; }
#phone-auth select { width: 100%; padding: 10px; border: 1px solid #ccd8d1; border-radius: 4px; background: white; color: #19332a; font: inherit; }
#phone-auth [data-code-fields] { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
#phone-auth [data-status] { grid-column: 1/-1; font-size: 13px; min-height: 18px; margin: 0; overflow-wrap: anywhere; }
#phone-auth [data-send] { width: 104px; height: 44px; white-space: nowrap; font-size: 13px; padding: 8px; }
