
:root {
  color: #172033;
  background: #f4f6f9;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin: 0 0 20px;
  font-size: 26px;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.section {
  margin-bottom: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
}

.device-line,
.status-line,
.send-status {
  margin: 8px 0 0;
}

code {
  word-break: break-all;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.polyphone-panel {
  display: grid;
  gap: 10px;
  margin: -2px 0 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dbe1ea;
  border-radius: 6px;
}

.polyphone-panel:empty {
  display: none;
}

.polyphone-title {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.polyphone-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 10px;
}

.polyphone-char {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font: inherit;
}

input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  line-height: 1.6;
}

fieldset {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #dbe1ea;
  border-radius: 6px;
}

legend {
  font-weight: 700;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #2563eb;
  font: inherit;
  font-weight: 700;
}

.link-button {
  width: auto;
  min-height: 0;
  padding: 0;
  color: #2563eb;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.link-button:hover {
  text-decoration: underline;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .button-row {
    grid-template-columns: 1fr;
  }
}

button:disabled {
  opacity: 0.55;
}

.ok {
  color: #047857;
}

.warn {
  color: #b42318;
}
