.cbcc-account {
  --cbcc-blue: var(--brand, #14598a);
  --cbcc-blue-soft: #eef6fc;
  --cbcc-border: var(--line, #d9e1e7);
  --cbcc-paper: var(--paper, #fffdfa);
  color: var(--ink, #172536);
}

.cbcc-account *,
.cbcc-account *::before,
.cbcc-account *::after {
  box-sizing: border-box;
}

.cbcc-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.cbcc-account-intro,
.cbcc-section-heading,
.cbcc-entry-row,
.cbcc-account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cbcc-account-intro {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cbcc-border);
}

.cbcc-account-intro h2,
.cbcc-auth-card h3,
.cbcc-section-heading h3,
.cbcc-entry-row h4 {
  margin: 0;
}

.cbcc-account-intro > p,
.cbcc-auth-card > p,
.cbcc-entry-row p,
.cbcc-empty-state p,
.cbcc-edit-note {
  color: #536679;
}

.cbcc-account-kicker {
  margin: 0 0 4px;
  color: var(--cbcc-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.cbcc-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cbcc-auth-card,
.cbcc-edit-card,
.cbcc-own-entries {
  padding: 18px;
  border: 1px solid var(--cbcc-border);
  border-radius: 12px;
  background: var(--cbcc-paper);
}

.cbcc-auth-card--accent {
  background: var(--cbcc-blue-soft);
}

.cbcc-auth-card form,
.cbcc-edit-card form {
  margin-top: 16px;
}

.cbcc-field {
  margin: 0 0 13px;
}

.cbcc-field label,
.cbcc-field small {
  display: block;
}

.cbcc-field label {
  margin-bottom: 5px;
  font-weight: 700;
}

.cbcc-field small {
  margin-top: 5px;
  color: #64778a;
}

.cbcc-field input,
.cbcc-field select,
.cbcc-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.cbcc-field textarea {
  resize: vertical;
}

.cbcc-field input:focus,
.cbcc-field select:focus,
.cbcc-field textarea:focus {
  border-color: var(--cbcc-blue);
  outline: 3px solid rgba(20, 89, 138, .14);
}

.cbcc-check {
  display: block;
  margin: 2px 0 14px;
}

.cbcc-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--cbcc-blue);
  border-radius: 9px;
  background: var(--cbcc-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.cbcc-button:hover,
.cbcc-button:focus-visible {
  filter: brightness(.94);
}

.cbcc-text-link {
  display: inline-block;
  margin-left: 12px;
  font-weight: 700;
}

.cbcc-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
}

.cbcc-notice--success {
  border-color: #8bcaa8;
  background: #edf9f2;
  color: #17623a;
}

.cbcc-notice--error {
  border-color: #e7a8a8;
  background: #fff3f3;
  color: #8a2828;
}

.cbcc-own-entries,
.cbcc-edit-card {
  margin-top: 16px;
}

.cbcc-section-heading {
  margin-bottom: 12px;
}

.cbcc-section-heading > span,
.cbcc-status {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.cbcc-section-heading > span {
  min-width: 28px;
  padding: 4px 8px;
  background: var(--cbcc-blue-soft);
  color: var(--cbcc-blue);
  text-align: center;
}

.cbcc-entry-list {
  border-top: 1px solid var(--cbcc-border);
}

.cbcc-entry-row {
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--cbcc-border);
}

.cbcc-entry-row h4 {
  margin-top: 7px;
  font-size: 1.08rem;
}

.cbcc-entry-row p {
  margin: 5px 0;
}

.cbcc-entry-row small {
  color: #6a7987;
}

.cbcc-status {
  display: inline-block;
  padding: 3px 8px;
  background: #eef1f4;
  color: #536271;
}

.cbcc-status--publish {
  background: #e8f7ef;
  color: #17623a;
}

.cbcc-status--pending {
  background: #fff5dd;
  color: #7b5300;
}

.cbcc-status--review {
  margin-left: 5px;
  background: #eef6fc;
  color: #14598a;
}

.cbcc-entry-row__actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.cbcc-entry-row__actions a {
  font-weight: 800;
}

.cbcc-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.cbcc-field--wide {
  grid-column: 1 / -1;
}

.cbcc-empty-state {
  padding: 24px 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .cbcc-account-intro,
  .cbcc-entry-row,
  .cbcc-account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cbcc-account-intro {
    gap: 8px;
  }

  .cbcc-auth-grid,
  .cbcc-edit-grid {
    grid-template-columns: 1fr;
  }

  .cbcc-auth-card,
  .cbcc-edit-card,
  .cbcc-own-entries {
    padding: 14px;
    border-radius: 8px;
  }

  .cbcc-button {
    width: 100%;
  }

  .cbcc-text-link {
    margin: 10px 0 0;
    text-align: center;
  }

  .cbcc-entry-row__actions {
    justify-content: flex-start;
  }
}
