:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --paper: #f8eedf;
  --ink: #31271f;
  --muted: #6e5e50;
  --line: #ded0bd;
  --accent: #7f4229;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.45; }
.frame { width: min(100% - 2.75rem, 30rem); margin-inline: auto; }
.masthead { display: grid; grid-template-columns: 1fr 4.1rem 1fr; align-items: center; min-height: 5.25rem; }
.brand { grid-column: 2; display: block; line-height: 0; }
.brand img { width: 100%; height: auto; mix-blend-mode: darken; filter: brightness(1.12); }
.masthead button { grid-column: 3; justify-self: end; color: var(--muted); }
main.frame { padding: .65rem 0 3rem; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.125rem; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
p { margin: .5rem 0 1rem; color: var(--muted); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .48rem .72rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: transparent; font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #f1e4d2; }
button:disabled { opacity: .6; cursor: wait; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff9ef; }
.primary:hover { background: #67331e; }
.plain { border-color: transparent; }
.danger, .notice.error { color: #8a341e; }
.actions, .inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; }
.inline-form { margin-block: .8rem 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
input { width: min(100%, 15rem); min-height: 2.75rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .4rem; background: #fffaf2; color: var(--ink); font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.section-title { display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; margin-bottom: .15rem; }
.add { width: 2.75rem; padding: 0; font-size: 1.45rem; font-weight: 450; color: var(--accent); border-color: transparent; }
.account { border-bottom: 1px solid var(--line); }
.account summary { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto .5rem; align-items: center; gap: .6rem; min-height: 3.15rem; cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account summary::after { content: ''; width: .35rem; height: .35rem; border: solid var(--muted); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.account[open] summary::after { transform: rotate(225deg); }
.account-icon { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: .45rem; background: #eddfcb; color: var(--accent); font-size: .81rem; font-weight: 650; }
.account-label { font-weight: 550; overflow-wrap: anywhere; }
.account .actions { margin: .15rem 0 .75rem 2.4rem; }
.status { color: var(--muted); font-size: .875rem; text-align: right; }
.status.connected { color: #3c5335; }
.empty { margin-top: .75rem; }
.notice, .handoff { padding: .8rem .9rem; margin: .75rem 0 1rem; border-left: 2px solid var(--line); background: #f2e6d5; }
.notice.error { border-color: #ad6148; }
.passkey { margin-top: 1rem; }
.passkey button { color: var(--accent); padding-inline: 0; }
.loading { margin: 3rem; }
