:root {
  font-family: Inter, "Microsoft YaHei UI", system-ui, sans-serif;
  color: #18322d;
  background: #f4f7f4;
  line-height: 1.55;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.top { background: var(--account-top); color: white; }
.top-inner, main { max-width: 72rem; margin-inline: auto; padding: 1.1rem 1.35rem; }
.top-inner, .row { display: flex; align-items: center; gap: .75rem; }
.top-inner, .heading { justify-content: space-between; }
.top .quiet { color: white; border-color: var(--account-border); }
h1, h2, h3 { line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 1.45rem; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; }
h3 { margin-block-start: .7rem; font-size: 1.05rem; }
main { padding-block: 1.65rem 3rem; }
.panel { background: white; border: 1px solid #dbe6de; border-radius: .8rem; padding: 1.25rem; }
.connect { max-width: 34rem; }
.panel p, #status { color: #4d655b; overflow-wrap: anywhere; }
#status { min-height: 1.55em; margin: .6rem 0; }
#status[data-error="true"] { color: #972f24; }
label { font-size: .93rem; font-weight: 600; display: block; margin: 0 0 .28rem; }
input, button {
  min-height: 2.55rem;
  border-radius: .45rem;
  border: 1px solid #92a99c;
  padding: .44rem .65rem;
  font: inherit;
}
input { width: 100%; min-width: 0; color: inherit; }
button {
  background: #175445;
  border-color: #175445;
  color: white;
  cursor: pointer;
  flex: none;
  font-weight: 600;
}
button.quiet { background: transparent; border-color: #a7beb0; color: #265a48; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #236a8d; outline-offset: 3px; }
a { color: #185947; }
nav { display: flex; gap: 1.2rem; flex-wrap: wrap; padding-block: .4rem 1.05rem; }
.columns { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr); gap: 1rem; margin-top: 1rem; }
#settings-form { margin-top: 1rem; }
#settings-form input { margin-block-end: .8rem; }
ul, ol { list-style: none; margin: .8rem 0; padding: 0; }
li { padding: .68rem 0; border-top: 1px solid #e2ebe4; overflow-wrap: anywhere; }
li p { margin: .3rem 0 0; white-space: pre-wrap; }
.entry-button { text-align: start; color: #165747; background: none; border: 0; padding: 0; min-height: 1.8rem; }
#library-preview { margin-top: 1.1rem; border-top: 1px solid #dbe6de; }
@media (width < 45rem) {
  .columns { grid-template-columns: 1fr; }
  .top-inner, main { padding-inline: 1rem; }
}

.top { --account-top: #15392f; --account-action: #175445; --account-border: #90b5a5; }
.account-session-actions { flex-wrap: wrap; }
.account-session-actions a { color: inherit; }
.account-card { display: block; padding-block: .3rem 1.1rem; }
.account-heading, .account-editor-actions { flex-wrap: wrap; }
.account-identity { flex: 1; min-width: 8rem; }
.account-identity h2 { font-size: 1.4rem; }
.account-avatar {
  display: grid; place-items: center; width: 72px; height: 72px; flex: none;
  border-radius: 50%; overflow: hidden; background: var(--account-action);
  font-size: 1.7rem; font-weight: 700;
}
.account-avatar[data-color="1"] { background: color-mix(in srgb, var(--account-action), var(--account-border) 22%); }
.account-avatar[data-color="2"] { background: color-mix(in srgb, var(--account-action), var(--account-top) 55%); }
.account-avatar[data-color="3"] { background: color-mix(in srgb, var(--account-top), var(--account-border) 33%); }
.account-avatar span, .account-avatar img { grid-area: 1/1; }
.account-avatar:has(img:not([hidden])) span { visibility: hidden; }
#account-avatar-filename { overflow-wrap: anywhere; min-width: 0; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
#account-editor { max-width: 33rem; margin-block-start: 1rem; }
#account-editor fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#account-nickname { color: var(--account-top); }
#account-nickname-error, #account-profile-message { overflow-wrap: anywhere; }
#account-nickname-error:empty, #account-profile-message:empty { display: none; }
.account-editor-actions { margin-block-start: .65rem; }
