#account-content {
  padding-block: clamp(30px, 5vw, 65px);
}

.account-panel {
  min-width: 0;
  padding: clamp(16px, 2.3vw, 24px);
}

.account-panel + .account-panel {
  margin-top: 16px;
}

.account-panel h2 {
  font-size: clamp(21px, 2.2vw, 26px);
}

.account-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(102px, 100%), 1fr));
  gap: 12px 16px;
  margin: 0;
}

.account-fact {
  min-width: 0;
}

.account-fact dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.account-fact dd {
  margin: 0;
  color: var(--ink);
  font-weight: 670;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.account-warning {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #ecd5ac;
  border-radius: 9px;
  color: #775013;
  background: #fff7e6;
}

.account-profile-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  margin: 14px 0;
}

.account-profile-facts > :has(> #account-email) {
  grid-column: 1 / -1;
}

.account-details > summary,
.account-billing-details > summary {
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 650;
}

.account-current-plan {
  margin-inline-start: 6px;
  vertical-align: 1px;
}

.account-status,
.account-cycle {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ebf0f9;
  color: #374d70;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.account-status-positive {
  background: #e5f5ee;
  color: #236348;
}

.account-status-attention {
  background: #fff1d7;
  color: #775013;
}

.account-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.account-usage-progress {
  display: block;
  width: 100%;
  height: 11px;
  margin-bottom: 16px;
  accent-color: var(--blue);
}

.account-usage-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-month-field {
  display: grid;
  min-width: min(183px, 100%);
  gap: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 630;
}

.account-month-field select {
  width: 100%;
}

.account-billing-summary {
  padding: 13px 15px;
  border: 1px solid #dce7fb;
  border-radius: 10px;
  background: #f2f6fe;
}

.account-billing-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-muted {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.account-billing-details {
  margin-top: 12px;
}

.account-bill-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.account-bill-row {
  display: grid;
  grid-template-columns: minmax(155px, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 12px 18px;
  padding: 13px 3px;
  border-bottom: 1px solid var(--line);
}

.account-bill-task {
  display: grid;
  min-width: 0;
  gap: 4px;
  overflow-wrap: anywhere;
}

.account-bill-task h3 {
  font-size: 16px;
  line-height: 1.4;
}

.account-bill-time,
.account-billing-empty {
  font-size: 14px;
}

.account-bill-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-billing-empty {
  margin-top: 12px;
}

.account-billing-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 700px) {
  #account-content .view-heading {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .account-bill-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .account-usage-facts,
  .account-bill-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
