:root {
  --green: #4a7c59;
  --green-dark: #2a5f3f;
  --sage: #e5eae4;
  --rust: #7a3030;
  --ink: #20242e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sage);
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(32, 36, 46, .18);
}

.app-main {
  max-width: 48rem;
  margin: 3rem auto;
  padding: 0 1rem;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--green);
  border-radius: .4rem;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  padding: .4rem .7rem;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.burger span {
  display: block;
  height: 2px;
  background: currentColor;
}

.account-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  width: min(22rem, 90vw);
  height: 100vh;
  overflow-y: auto;
  padding: 1rem;
  border-left: 1px solid rgba(32, 36, 46, .18);
  background: #fff;
  box-shadow: -8px 0 30px rgba(32, 36, 46, .16);
}

.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.account-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.account-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0 0 1rem;
}

.account-facts dt {
  color: #555;
  font-weight: 600;
}

.account-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-button {
  border: 1px solid var(--green);
  border-radius: .4rem;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: .5rem .8rem;
}

.account-button--danger {
  border-color: var(--rust);
  background: var(--rust);
}

.account-error {
  margin-top: 1rem;
  color: var(--rust);
}
