.tb-account {
  box-sizing: border-box;
  width: min(560px, calc(100% - 36px));
  margin: 48px auto 80px;
  padding: clamp(22px, 5vw, 48px);
  color: var(--ink, #241b18);
  background: #fffaf1;
  border: 1px solid #e4d8ca;
  border-radius: 24px;
  box-shadow: 0 8px 0 #e9ded2;
}
.tb-account-wide {
  width: min(1040px, calc(100% - 36px));
}
.tb-account h1 {
  margin: 0;
  line-height: 1.06;
  font-size: clamp(2.05rem, 5vw, 3.5rem);
  letter-spacing: -.035em;
}
.tb-account h2, .tb-account h3 { margin: 0; }
.tb-account header p, .tb-account p {
  line-height: 1.55;
  margin: .4rem 0 0;
  color: #695b50;
}
.tb-account > header { margin-bottom: 24px; }
.tb-account-body, .tb-auth-form { display: grid; gap: 16px; }
.tb-auth-form[hidden] { display: none; }
.tb-account label { display: grid; font-weight: 650; gap: 7px; }
.tb-account input, .tb-account select {
  box-sizing: border-box;
  min-height: 46px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #cebcaa;
  background: white;
  border-radius: 12px;
  font: inherit;
  color: inherit;
  padding: 10px 12px;
}
.tb-account select { max-width: 420px; }
.tb-account button, .tb-account select { cursor: pointer; }
.tb-account a:focus-visible, .tb-account button:focus-visible, .tb-account input:focus-visible, .tb-account select:focus-visible {
  outline: 2px solid #7e402c;
  outline-offset: 3px;
}
.tb-account .tb-primary, .tb-account .tb-secondary, .tb-account .tb-plain {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  padding: 9px 15px;
  border-radius: 10px;
  min-height: 42px;
  text-align: center;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, #241b18);
  text-decoration: none;
}
.tb-account .tb-primary {
  color: #32211d;
  background: #ffad91;
  border-color: #e29b80;
  box-shadow: 0 2px 0 #e29b80;
}
.tb-account .tb-primary:hover { background: #fba486; }
.tb-account .tb-secondary {
  background: #fffdf7;
  border-color: #d3c4b3;
}
.tb-account .tb-secondary:hover { background: #f4eee2; }
.tb-account .tb-plain { background: none; text-decoration: underline; color: #853f34; }
.tb-account button:disabled { cursor: progress; opacity: .58; }
.tb-account-links, .tb-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.tb-account-links { justify-content: space-between; margin: 18px 0 0; gap: 12px; }
.tb-account-links a, .tb-account small a { color: #694031; text-underline-offset: 2px; }
.tb-account [data-auth-extra]:not(:empty) { margin-top: 18px; }
.tb-account .tb-panel, .tb-account .tb-projects {
  border: 1px solid #e2d8c6;
  background: #fffdf7;
  padding: clamp(16px, 3vw, 24px);
  border-radius: 16px;
}
.tb-account .tb-panel.is-soft { background: #edf2e4; }
.tb-panel .tb-action-row, .tb-projects > .tb-action-row, .tb-panel > label { margin-top: 14px; }
.tb-account .tb-notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f1eadb;
  color: #564131;
}
.tb-account .tb-notice.is-error { background: #f8ded6; color: #802e21; }
.tb-account .tb-notice.is-success { background: #e9f0de; color: #315332; }
.tb-account .tb-notice[hidden] { display: none; }
.tb-project-list { display: grid; gap: 11px; }
.tb-projects .tb-project-list { margin-top: 18px; }
.tb-project {
  display: grid;
  grid-template-columns: 56px minmax(120px,1fr);

  gap: 13px;
  align-items: center;
  border: 1px solid #e8ddcf;
  border-radius: 14px;
  padding: 13px;
}
.tb-project-stamp {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #f1dfc7;
  color: #7a4239;
  font-size: 1.6rem;
}
.tb-project-info h3, .tb-project-info p { overflow-wrap: anywhere; }
.tb-account .tb-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eddc;
  font-weight: 650;
  font-size: .8rem;
  color: #4f5942;
}
.tb-account .tb-muted { font-size: .91rem; margin-top: 10px; }
@media (max-width: 760px) {
  .tb-account { margin: 25px auto 55px; }
  .tb-project { grid-template-columns: 48px minmax(0, 1fr); }
  .tb-project > .tb-action-row { grid-column: 1 / -1; }
  .tb-project-stamp { width: 44px; height: 44px; }
}
.tb-project > .tb-action-row { grid-column: 1 / -1; }
