:root {
  --account-ink: #17120f;
  --account-muted: #746c65;
  --account-line: #e8dfd7;
  --account-paper: #fffdf9;
  --account-wash: #f6f0e9;
  --account-accent: var(--shows-primary);
  --account-accent-dark: var(--shows-primary-hover);
  --account-radius: 18px;
}

.account-about-shell {
  color: var(--account-ink);
  padding: 30px 0 56px;
}

.account-about-staff-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--account-line);
  background: var(--account-paper);
}

.account-about-staff-brand img {
  display: block;
  width: auto;
  height: 38px;
}

.account-about-standalone .wrapper {
  margin-left: 0;
  padding-top: 0;
}

.account-about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-about-card {
  background: var(--account-paper);
  border: 1px solid var(--account-line);
  border-radius: var(--account-radius);
  box-shadow: 0 12px 34px rgba(57, 36, 20, 0.07);
}

.account-about-summary {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.account-about-cover {
  height: 94px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.34) 0 4px, transparent 5px),
    linear-gradient(125deg, var(--shows-primary-surface-deep), var(--shows-primary-surface) 62%, var(--shows-primary-surface-strong));
}

.account-about-person {
  padding: 0 24px 24px;
}

.account-about-avatar {
  width: 104px;
  height: 104px;
  margin-top: -52px;
  border: 6px solid var(--account-paper);
  border-radius: 50%;
  background: var(--account-paper);
}

.account-about-name {
  margin: 16px 0 2px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.account-about-email,
.account-about-meta,
.account-about-empty {
  color: var(--account-muted);
  font-size: 14px;
}

.account-about-role {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--shows-primary-soft);
  color: var(--account-accent-dark);
  font-size: 13px;
  font-weight: 500;
}

.account-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.account-about-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--account-line);
  border-radius: 11px;
  background: #fff;
  color: var(--account-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.account-about-btn:hover,
.account-about-btn:focus-visible {
  border-color: var(--shows-primary-border);
  color: var(--account-ink);
  transform: translateY(-1px);
}

.account-about-btn--primary {
  border-color: var(--account-accent);
  background: var(--account-accent);
  color: #fff;
}

.account-about-btn--primary:hover,
.account-about-btn--primary:focus-visible {
  border-color: var(--account-accent-dark);
  background: var(--account-accent-dark);
  color: #fff;
}

.account-about-content {
  display: grid;
  gap: 20px;
}

.account-about-section {
  padding: 24px;
}

.account-about-section-title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 600;
}

.account-about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.account-about-fact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 500;
}

.account-about-fact-value {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.account-about-bio {
  margin: 0;
  color: #403934;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

.account-about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-about-socials a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  color: var(--account-ink);
  font-size: 17px;
}

.account-about-certificate {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, .55fr);
  gap: 20px;
  align-items: center;
}

.account-about-certificate-preview {
  display: block;
  position: relative;
  aspect-ratio: 842 / 595;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 13px;
  background: #fff;
}

.account-about-certificate-preview iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1123px;
  height: 794px;
  border: 0;
  pointer-events: none;
  transform-origin: 0 0;
}

.account-about-certificate-meta {
  display: grid;
  gap: 16px;
}

.account-about-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.account-about-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
}

.account-about-field input,
.account-about-field textarea,
.account-about-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d8cec5;
  border-radius: 10px;
  background: #fff;
  color: var(--account-ink);
  font-size: 16px;
}

.account-about-field textarea {
  min-height: 118px;
  resize: vertical;
}

.account-about-field input:focus,
.account-about-field textarea:focus,
.account-about-field select:focus {
  border-color: var(--account-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shows-primary) 12%, transparent);
  outline: 0;
}

.account-about-upload {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-about-upload-preview {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--account-wash);
}

.account-about-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #badfc8;
  border-radius: 11px;
  background: #effaf3;
  color: #205d35;
  font-size: 14px;
}

.account-about-notice--error {
  border-color: #efc1b5;
  background: #fff1ed;
  color: #8c2f18;
}

/* Edit profile modal: grouped sections in a body that scrolls between a fixed header and footer. */
.account-about-modal .modal-body {
  display: grid;
  gap: 24px;
  padding: 20px 24px;
}

.account-about-modal .modal-footer {
  gap: 8px;
  padding: 14px 24px;
}

.account-about-form-section {
  display: grid;
  gap: 14px;
}

.account-about-form-section + .account-about-form-section {
  padding-top: 20px;
  border-top: 1px solid #ece4dc;
}

.account-about-form-title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.account-about-hint {
  margin: 6px 0 0;
  color: #6b625a;
  font-size: 13px;
  line-height: 18px;
}

.account-about-field input[readonly] {
  background: #f6f2ee;
  color: #4a433d;
  cursor: default;
}

/* The shared phone field uses .form-control, whose site-wide !important rules differ from this form. */
.account-about-field .shows-phone-input {
  gap: 8px;
}

.account-about-field .shows-phone-input .form-control {
  min-height: 46px;
  border: 1px solid #d8cec5 !important;
  border-radius: 10px !important;
}

.night-mode .account-about-form-section + .account-about-form-section {
  border-color: #3e3936;
}

.night-mode .account-about-hint {
  color: #b9b0a8;
}

.night-mode .account-about-field input[readonly] {
  background: #26241f;
  color: #cfc7bf;
}

.night-mode .account-about-field .shows-phone-input .form-control {
  border-color: #3e3936 !important;
}

.night-mode .account-about-card,
.night-mode .account-about-staff-header,
.night-mode .account-about-person,
.night-mode .account-about-field input,
.night-mode .account-about-field textarea,
.night-mode .account-about-field select,
.night-mode .account-about-btn {
  background: #1c1b1f;
  color: #f7f1eb;
}

.night-mode .account-about-card,
.night-mode .account-about-field input,
.night-mode .account-about-field textarea,
.night-mode .account-about-field select,
.night-mode .account-about-btn,
.night-mode .account-about-socials a {
  border-color: #3e3936;
}

.night-mode .account-about-bio,
.night-mode .account-about-fact-value,
.night-mode .account-about-socials a {
  color: #ece5df;
}

@media (max-width: 991px) {
  .account-about-grid { grid-template-columns: 1fr; }
  .account-about-summary { position: static; }
}

@media (max-width: 680px) {
  .account-about-staff-header { min-height: 64px; padding: 10px 16px; }
  .account-about-staff-brand img { height: 34px; }
  .account-about-shell { padding: 18px 0 36px; }
  .account-about-section { padding: 18px; }
  .account-about-facts,
  .account-about-form-grid,
  .account-about-certificate { grid-template-columns: 1fr; }
  .account-about-field--wide { grid-column: auto; }
  .account-about-actions .account-about-btn { flex: 1 1 auto; }
  .account-about-modal .modal-body { padding: 16px; }
  .account-about-modal .modal-footer { padding: 12px 16px; }
  .account-about-modal .modal-footer .account-about-btn { flex: 1 1 0; justify-content: center; }
}
