main.settings { max-width: 760px; }
h1 { margin: 4px 0 0; font-size: 24px; }
h2 { margin: 0; font-size: 17px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.sim strong { color: #ffd88a; }

.accounts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.accounts > li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.accounts > li:first-child { padding-top: 0; }
.accounts > li:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.acc-name { font-size: 17px; font-weight: 600; }
.acc-meta { font-size: 14px; color: var(--muted); font-family: var(--mono); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8b909a; }
.st-connected .dot { background: #36ad69; }
.st-connecting .dot { background: #f2b544; }
.st-error .dot, .st-disconnected .dot { background: #f4906f; }
.acc-detail { font-size: 14px; color: #f4a58a; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-actions button, .rename button {
  height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--field); color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.acc-actions button:hover { border-color: #4a5261; }
.acc-actions button.danger { color: #f4a58a; }
.acc-actions button.danger-solid { background: #8e2a22; border-color: #8e2a22; color: #fff; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.confirm-text { font-size: 14px; color: #f4a58a; align-self: center; }
.rename { display: flex; gap: 8px; align-items: center; }
.rename input { height: 40px; font-size: 16px; }

form { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.hint { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
input[type=password] {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line); color: var(--text); font: 500 18px var(--mono);
}
.field input:not([type]), .field input[type=password] { font-size: 16px; }
fieldset.access { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
fieldset.access legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
fieldset.access input { position: static; opacity: 1; pointer-events: auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); cursor: pointer; font-size: 15px; color: var(--text); }
.opt:has(input:checked) { border-color: var(--accent); }
.opt .muted { font-size: 14px; }
.err { margin: 0; color: #f4a58a; }
button.primary {
  align-self: flex-start; height: 52px; padding: 0 24px; border: 0; border-radius: 11px;
  background: var(--accent); color: #15130d; font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}

@media (max-width: 640px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  button.primary { align-self: stretch; }
}
/* undo the segmented-control styling that styles.css gives fieldset labels */
fieldset.access label.opt, fieldset.access label.opt:first-of-type, fieldset.access label.opt:last-of-type {
  display: flex; height: auto; place-items: initial; border-radius: 10px; border: 1px solid var(--line); font-weight: 400;
}
fieldset.access label.opt:has(input:checked) { border-color: var(--accent); }
.program { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.program-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.program select { width: auto; height: 40px; font-size: 14px; font-family: inherit; padding-left: 12px; background-position: calc(100% - 16px) 17px, calc(100% - 10px) 17px; }
.program button.small { height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
