.sst { max-width: 640px; }
.sst-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sst-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.sst-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.sst-panel { display: flex; flex-direction: column; gap: 12px; }
.sst-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.sst-panel input, .sst-panel select, .sst-panel textarea {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; font-family: inherit;
}
.sst-panel textarea { resize: vertical; font-family: ui-monospace, monospace; }
.sst-panel input:focus, .sst-panel select:focus, .sst-panel textarea:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.sst-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sst-check-row { display: flex; flex-wrap: wrap; gap: 14px; }
.sst-check {
  flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 700;
}
.sst-check input[type="checkbox"] { width: auto; padding: 0; }

.sst-output-wrap { border: 1px solid #d9e0d4; border-radius: 6px; overflow: hidden; }
.sst-output-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; background: #f3f4f8; border-bottom: 1px solid #d9e0d4;
  font-size: 12.5px; font-weight: 700; color: #5b6b56; text-transform: uppercase; letter-spacing: .02em;
}
.sst-output {
  margin: 0; padding: 12px; background: #fff; font-family: ui-monospace, monospace; font-size: 13px;
  color: #27331f; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto;
}
.sst-copy-btn {
  padding: 5px 10px; font-size: 12px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; color: #19616a; cursor: pointer;
}
.sst-copy-btn:hover { background: #19616a; border-color: #19616a; color: #fff; }
.sst-copy-btn:focus { outline: 2px solid #19616a; outline-offset: 1px; }

.sst-code-group { display: flex; flex-direction: column; gap: 6px; }
.sst-code-label { font-size: 12.5px; font-weight: 700; color: #5b6b56; text-transform: uppercase; letter-spacing: .02em; }
.sst-code-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sst-code-btn {
  min-width: 34px; padding: 6px 8px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  cursor: pointer; font-family: ui-monospace, monospace; line-height: 1;
}
.sst-code-btn:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.sst-code-btn-format { background: #fff; color: #27331f; }
.sst-code-btn-format:hover { background: #f3f4f8; }

.sst-preset-btn {
  padding: 6px 12px; font-size: 12.5px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; color: #19616a; cursor: pointer;
}
.sst-preset-btn:hover { background: #19616a; border-color: #19616a; color: #fff; }
.sst-preset-btn:focus { outline: 2px solid #19616a; outline-offset: 1px; }

.sst-motd-preview-wrap { display: flex; flex-direction: column; gap: 6px; }
.sst-motd-preview {
  padding: 14px 16px; background: #2b2b2b; border-radius: 6px; font-family: ui-monospace, monospace; font-size: 14px;
  line-height: 1.5;
}
.sst-motd-line { white-space: pre-wrap; word-break: break-word; }
.sst-motd-obf { text-shadow: 0 0 6px currentColor; letter-spacing: .5px; opacity: .85; }

.sst-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.sst-note { margin-top: 16px; font-size: 13px; color: #5b6b56; }

@media (max-width: 480px) {
  .sst-row3 { grid-template-columns: 1fr; }
}
