html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="light"] body {
  --base: #eef0fa;
  --nav: #dde3f7;
  --button: #c9d5fa;
  --accent: #1b3275;
  --ink: #091642;
  --surface: #f6f7fc;
  --line: #c4cce2;
  --muted: #4d5979;
  --shade: #e5e9f7;
}
html[data-theme="light"] .thread {
  background:
    linear-gradient(120deg, #eef0faee, #dee1f4e8),
    url("assets/field.jpg") center/cover;
}
html[data-theme="light"] .bubble {
  background: var(--surface);
}
html[data-theme="light"] .out .bubble {
  background: var(--button);
  border-color: #b4c2e7;
}
html[data-theme="light"] .brand-stage::before {
  opacity: 0.2;
}
html[data-theme="light"] dialog {
  box-shadow: 0 14px 55px #09164235;
}
.theme-choice {
  border: 0;
  margin: 12px 0;
  padding: 0;
  display: flex;
  gap: 5px;
}
.theme-choice legend {
  margin: 0 0 7px;
  font-size: 14px;
}
.theme-choice label {
  position: relative;
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.theme-choice input {
  position: absolute;
  opacity: 0;
}
.theme-choice span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
}
.theme-choice input:checked + span {
  background: var(--button);
  color: var(--ink);
  border-color: var(--accent);
}
.theme-choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-row > span {
  flex: 1;
}
.account-row > svg:last-child {
  width: 15px;
  color: var(--muted);
}
.account-row small,
.sms-meter {
  color: var(--muted);
  font-size: 12px;
}
.sms-meter {
  margin: 5px 2px;
}
.sms-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sms-tab {
  font: inherit;
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--accent);
  border: 1px solid var(--line);
  margin: 3px 0;
}
.sms-tab:hover,
.sms-tab[aria-pressed="true"] {
  background: var(--button);
  color: var(--ink);
}
.setting-detail {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.setting-detail summary {
  cursor: pointer;
  font-weight: 600;
}
.setting-detail code {
  user-select: all;
  overflow-wrap: anywhere;
  color: var(--accent);
}
.setting-detail p {
  margin: 8px 0;
}
html[data-theme="light"] .primary,
html[data-theme="light"] .send {
  color: var(--surface);
}
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  color-scheme: light;
}
