/* Settings window (built by settings.js into #settings-slot). Shared tokens and .card/.btn/.seg come from style.css. */
.st-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 28px 32px; max-width: 1312px; }
.st-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 92px; align-self: start; }
.st-navlink { display: block; text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; }
.st-navlink[aria-current] { background: var(--surface); color: var(--ink); border-color: var(--line); }
.st-sections { max-width: 1040px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.st-sec { scroll-margin-top: 84px; }
.st-sec h2 { margin: 0; font-size: 20px; }
.st-sec h3 { margin: 22px 0 6px; font-size: 16px; }
.st-lead { color: var(--ink-2); margin: 4px 0 14px; font-size: 14px; }
.st-sec label { display: block; }
.st-sec .small { color: var(--ink-2); font-size: 13px; margin: 6px 0; }
.st-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.st-sec input[type="radio"], .st-sec input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

/* option cards */
.st-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.st-opt { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--surface); }
.st-opt:has(input:checked) { border-color: var(--ink); }
.st-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-opt b { display: block; }
.st-opt small { color: var(--ink-2); font-size: 13px; }
.st-sw { display: block; height: 54px; border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--line); }
.st-sw-light { background: #F6F6F3; }
.st-sw-dark { background: #141414; }
.st-sw-device { background: linear-gradient(90deg, #F6F6F3 50%, #141414 50%); }
.st-sec [role="radiogroup"][aria-label="Units"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }

/* maps table */
.st-scroll { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.st-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.st-table tbody th { font-weight: 400; }
.st-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.st-seg { display: inline-flex; }
.st-seg label { position: relative; display: block; cursor: pointer; }
.st-seg span { display: block; padding: 7px 12px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.st-seg input:checked + span { background: var(--ink); color: var(--surface); }
.st-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }

/* switch */
.st-tg { position: relative; display: inline-block; width: 34px; height: 20px; vertical-align: middle; cursor: pointer; }
.st-tg-track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); }
.st-tg-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); }
.st-switch:checked + .st-tg-track { background: var(--ink); }
.st-switch:checked + .st-tg-track::after { left: auto; right: 3px; }
.st-switch:focus-visible + .st-tg-track { outline: 3px solid var(--focus); outline-offset: 2px; }

/* use in your AI */
.st-copyrow { display: flex; gap: 10px; align-items: stretch; }
.st-copyrow > input, .st-copyrow > pre { flex: 1 1 auto; min-width: 0; margin: 0; }
.st-addr, .st-copyrow pre { font: 13px ui-monospace, Menlo, Consolas, monospace; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.st-copyrow pre { overflow-x: auto; }
.st-copy { align-self: flex-start; flex: none; width: auto; min-width: 88px; }
.st-apps { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.st-app { border: 1px solid var(--line); border-radius: 12px; }
.st-app > :not(summary) { margin-left: 16px; margin-right: 16px; }
.st-app > :last-child { margin-bottom: 14px; }
.st-app summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; min-height: 48px; padding: 0 16px; align-items: center; list-style: none; border-radius: 12px; }
.st-app summary::-webkit-details-marker { display: none; }
.st-app summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.st-app[open] summary::after { transform: rotate(-135deg); }
.st-app summary small { color: var(--ink-2); font-size: 13px; }
.st-app > * + * { margin-top: 8px; }
.st-link { display: block; color: var(--ink); text-decoration: underline; }
.st-tools div { margin: 0 0 8px; }
.st-tools dt { font-weight: 600; }
.st-tools dd { margin: 0; color: var(--ink-2); }
.st-facts { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 820px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .st-nav { position: static; flex-direction: row; overflow-x: auto; }
  .st-navlink { white-space: nowrap; }
  .st-opts, .st-sec [role="radiogroup"][aria-label="Units"] { grid-template-columns: 1fr; max-width: none; }
  .st-copyrow { flex-direction: column; }
  .st-copy { align-self: flex-start; }
}
