.profile-workspace-page,
.profiles-detail-page {
  --workspace-border: rgba(15, 41, 62, 0.08);
  --workspace-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(247, 250, 252, 0.98));
  --workspace-header: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.98));
  --workspace-shadow: 0 18px 36px rgba(15, 41, 62, 0.08);
  --workspace-soft-shadow: 0 10px 24px rgba(15, 41, 62, 0.05);
  --workspace-text: #16304e;
  --workspace-muted: #5d7188;
  width: min(calc(100vw - 2.75rem), 1280px);
  margin: 0 auto;
}

.profile-workspace-page--single {
  width: min(calc(100vw - 2.75rem), 1280px);
}

.profile-workspace-shell {
  width: 100%;
}

.profile-workspace-panel {
  border: 1px solid var(--workspace-border);
  border-radius: 30px;
  background: var(--workspace-surface);
  box-shadow: var(--workspace-shadow);
  overflow: hidden;
}

.profile-workspace-panel + .profile-workspace-panel,
.profile-workspace-panel + .learn-workspace-grid,
.learn-workspace-grid + .profile-workspace-panel {
  margin-top: 1rem;
}

.profile-workspace-panel > .card-header {
  margin: 0;
  padding: 1.1rem 1.25rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(15, 41, 62, 0.06);
  border-radius: 30px 30px 18px 18px;
  background: var(--workspace-header);
}

.profile-workspace-panel > .card-header h3,
.profile-workspace-panel > .card-header h4 {
  margin: 0;
  color: var(--workspace-text);
  font-size: clamp(1.3rem, 1.75vw, 1.72rem);
  line-height: 1.08;
}

.profile-workspace-panel > .card-header small {
  display: block;
  margin-top: 0.34rem;
  color: var(--workspace-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.profile-workspace-panel__body {
  padding: 1.15rem 1.25rem 1.2rem;
}

.profile-workspace-hero {
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem 1.1rem;
  border: 1px solid var(--workspace-border);
  border-radius: 30px;
  background: var(--workspace-surface);
  box-shadow: var(--workspace-shadow);
}

.profile-workspace-hero__eyebrow,
.profile-detail-card__eyebrow {
  margin: 0 0 0.3rem;
  color: #1b6f73;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-workspace-hero h1 {
  margin: 0;
  color: var(--workspace-text);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.06;
}

.profile-workspace-hero p {
  margin: 0.45rem 0 0;
  color: var(--workspace-muted);
  max-width: 60rem;
  line-height: 1.55;
}

.profile-workspace-page #msform,
.profile-workspace-page .multi_step_form,
.profile-workspace-page .profile-workspace-form {
  width: 100%;
}

.profile-workspace-page #msform {
  margin: 1.6rem auto 0 !important;
  text-align: left;
}

.profile-workspace-page #msform fieldset,
.profiles-detail-page #sumpage,
.profile-list-shell .card {
  margin: 0;
  border: 1px solid var(--workspace-border);
  border-radius: 30px;
  background: var(--workspace-surface);
  box-shadow: var(--workspace-shadow);
  overflow: hidden;
}

.profile-workspace-page #msform fieldset .card-header,
.profiles-detail-page #sumpage > .card-header {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.1rem 1.25rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(15, 41, 62, 0.06);
  border-radius: 30px 30px 18px 18px;
  background: var(--workspace-header);
}

.profile-workspace-page #msform fieldset .card-header h4,
.profile-workspace-page #msform fieldset .card-header h3,
.profiles-detail-page #sumpage > .card-header h4 {
  margin: 0;
  color: var(--workspace-text);
  font-size: clamp(1.3rem, 1.75vw, 1.72rem);
  line-height: 1.08;
  text-align: left;
}

.profile-workspace-page #msform fieldset .card-header small,
.profiles-detail-page #sumpage > .card-header small {
  display: block;
  margin-top: 0.34rem;
  color: var(--workspace-muted) !important;
  font-size: 0.94rem;
  line-height: 1.45;
  text-align: left;
}

.profile-workspace-page .fieldset-body {
  padding: 1.1rem 1.25rem 0;
}

.profile-workspace-page .fieldset-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.8rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(15, 41, 62, 0.08);
}

.profile-workspace-page .fieldset-footer--actions-only {
  justify-content: flex-end;
}

.profile-workspace-page .fieldset-note {
  margin: 0;
  color: var(--workspace-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.profile-workspace-page .fieldset-note .fa-star {
  display: none;
}

.profile-entry-eyebrow {
  margin: 0 0 0.35rem;
  color: #1b6f73;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: left;
  text-transform: uppercase;
}

.profile-entry-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.profile-entry-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 41, 62, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(244, 249, 252, 0.98));
  box-shadow: 0 10px 20px rgba(15, 41, 62, 0.04);
  color: var(--workspace-text);
  font-weight: 600;
}

.profile-entry-pill i {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #166f73;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.profile-token-page .fieldset-body,
.upload-entry-page .fieldset-body {
  display: flex;
  flex-direction: column;
}

.profile-token-page #userinformation,
.upload-entry-page #userinformation {
  width: 100%;
}

.profile-token-page #userinformation > .form-row,
.upload-entry-page #userinformation > .form-row {
  margin-left: 0;
  margin-right: 0;
}

.profile-token-page #userinformation > .form-row > [class*="col-"],
.upload-entry-page #userinformation > .form-row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.profile-token-page #userinformation > .form-row > .form-group.col-md-6:nth-child(odd),
.upload-entry-page #userinformation > .form-row > .form-group.col-md-6:nth-child(odd) {
  padding-right: 0.5rem;
}

.profile-token-page #userinformation > .form-row > .form-group.col-md-6:nth-child(even),
.upload-entry-page #userinformation > .form-row > .form-group.col-md-6:nth-child(even) {
  padding-left: 0.5rem;
}

.profile-token-page .fieldset-note,
.upload-entry-page .fieldset-note {
  max-width: 42rem;
}

.profile-token-page #msform fieldset .card-header > *,
.upload-entry-page #msform fieldset .card-header > * {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.profile-token-page #msform fieldset .card-header small,
.upload-entry-page #msform fieldset .card-header small {
  max-width: 56rem;
}

.profile-workspace-page .fieldset-actions {
  margin-left: auto;
  gap: 0.75rem;
}

.profile-workspace-page .fieldset-actions--single {
  justify-content: flex-end;
}

.profile-workspace-page .form-control,
.profile-workspace-page .select2-container--bootstrap-5 .select2-selection,
.profile-workspace-page .select2-container .select2-selection,
.profiles-detail-page .form-control,
.profiles-detail-page .select2-container--bootstrap-5 .select2-selection,
.profiles-detail-page .select2-container .select2-selection {
  min-height: 3rem;
  border-color: rgba(15, 41, 62, 0.09);
  border-radius: 18px !important;
  box-shadow: none;
}

.profile-workspace-page .select2-container,
.profile-workspace-page .select2-container--bootstrap-5,
.profiles-detail-page .select2-container,
.profiles-detail-page .select2-container--bootstrap-5 {
  width: 100% !important;
  display: block;
}

.profile-workspace-page input[type="file"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px dashed rgba(15, 118, 110, 0.24);
  border-radius: 18px;
  background: rgba(246, 252, 252, 0.9);
  color: var(--workspace-muted);
}

.profile-workspace-page input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(15, 41, 62, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--workspace-text);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.profile-workspace-page input[type="file"]:hover::file-selector-button,
.profile-workspace-page input[type="file"]:focus::file-selector-button {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(241, 250, 249, 0.98);
  color: #176f73;
}

.profile-workspace-page .action-button,
.profile-workspace-page .btn,
.profiles-detail-page .btn,
.profiles-index-page .btn,
.upload-profile-page .btn {
  border-radius: 999px;
}

.profile-workspace-page .action-button,
.profile-workspace-page .btn-primary,
.profiles-detail-page .btn-primary,
.profiles-index-page .btn-primary,
.upload-profile-page .btn-primary,
.profile-workspace-page .dropbtn,
.profiles-detail-page .dropbtn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #1b8a83, #1b6f73);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.profile-workspace-page .btn-secondary,
.profiles-detail-page .btn-secondary,
.profiles-index-page .btn-secondary,
.upload-profile-page .btn-secondary {
  border: 1px solid rgba(15, 41, 62, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--workspace-text);
}

.profiles-index-page .btn-success,
.profiles-detail-page .btn-success,
.profiles-detail-page .btn-outline-success,
.profiles-index-page .btn-outline-success {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(240, 251, 250, 0.96);
  color: #166f73;
}

.profiles-index-page .btn-danger,
.profiles-detail-page .btn-danger {
  border: 1px solid rgba(176, 65, 65, 0.18);
  background: rgba(255, 244, 244, 0.98);
  color: #b04141;
}

.profiles-index-page .btn:hover,
.profiles-detail-page .btn:hover,
.profile-workspace-page .btn:hover,
.upload-profile-page .btn:hover,
.profile-workspace-page .action-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .profile-token-page #userinformation > .form-row > .form-group.col-md-6:nth-child(odd),
  .upload-entry-page #userinformation > .form-row > .form-group.col-md-6:nth-child(odd),
  .profile-token-page #userinformation > .form-row > .form-group.col-md-6:nth-child(even),
  .upload-entry-page #userinformation > .form-row > .form-group.col-md-6:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }
}

.profile-list-shell .row,
.profile-list-shell .col-12 {
  margin: 0;
  padding: 0;
}

.profile-list-shell .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-list-shell .card-body {
  padding: 0 !important;
}

.profile-list-shell .card-footer {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(15, 41, 62, 0.06);
  background: rgba(248, 251, 253, 0.88);
}

.profile-list-shell table {
  margin: 0;
  width: 100%;
  table-layout: fixed;
}

.profile-list-shell th {
  border-top: 0;
  background: rgba(244, 249, 252, 0.98);
  color: var(--workspace-text);
  font-weight: 700;
}

.profile-list-shell td,
.profile-list-shell th {
  padding: 0.95rem 1rem;
  border-color: rgba(15, 41, 62, 0.08);
  vertical-align: middle;
}

.profile-list-shell .profile-list-cell--profile {
  max-width: 0;
  overflow: hidden;
  color: var(--workspace-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.profile-list-shell .profile-list-json {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-list-shell .profile-list-cell--name {
  color: var(--workspace-text);
  font-weight: 700;
}

.profile-list-shell .profile-list-cell--actions {
  text-align: center;
}

.profile-list-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.profile-action-btn {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid rgba(15, 41, 62, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--workspace-text);
  box-shadow: 0 8px 18px rgba(15, 41, 62, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

button.profile-action-btn {
  appearance: none;
  cursor: pointer;
}

.profile-action-btn:hover,
.profile-action-btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.profile-action-btn--edit {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(240, 251, 250, 0.98);
  color: #166f73;
}

.profile-action-btn--duplicate {
  border-color: rgba(116, 92, 196, 0.16);
  background: rgba(246, 243, 255, 0.98);
  color: #6553a9;
}

.profile-action-btn--download {
  border-color: rgba(41, 120, 173, 0.18);
  background: rgba(242, 248, 253, 0.98);
  color: #235d8d;
}

.profile-action-btn--delete {
  border-color: rgba(176, 65, 65, 0.18);
  background: rgba(255, 244, 244, 0.98);
  color: #b04141;
}

.profile-list-shell .pagination {
  gap: 0.45rem;
}

.profile-list-shell .pagination .page-link,
.profile-list-shell .pagination a,
.profile-list-shell .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(15, 41, 62, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--workspace-text);
}

.profile-detail-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.profile-detail-card__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.profile-detail-card__intro {
  min-width: 0;
}

.profiles-detail-page #sumpage .card-body {
  padding: 1.2rem 1.25rem;
}

.profiles-detail-page #sumpage {
  overflow: visible;
}

.profiles-detail-page .summary-table-wrap {
  overflow-x: auto;
}

.profiles-detail-page .duc-summary-table {
  width: 100%;
  margin: 0;
  background: transparent;
}

.profiles-detail-page .duc-summary-table td,
.profiles-detail-page .duc-summary-table th {
  border-color: rgba(15, 41, 62, 0.08);
  padding: 0.85rem 0.95rem;
  vertical-align: top;
}

.profiles-detail-page .duc-summary-table tbody thead td {
  background: rgba(244, 249, 252, 0.96);
}

.profiles-detail-page .duc-summary-table tbody thead h4 {
  margin: 0;
  color: var(--workspace-text);
  font-size: 1rem;
  text-align: left !important;
}

.profiles-detail-page .profile-summary-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.profiles-detail-page .profile-summary-section h4 {
  margin: 0;
  color: var(--workspace-text);
  font-size: 1rem;
}

.profiles-detail-page .profile-summary-edit {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(240, 251, 250, 0.98);
  color: #166f73;
  box-shadow: 0 8px 18px rgba(15, 41, 62, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.profiles-detail-page .profile-summary-edit:hover,
.profiles-detail-page .profile-summary-edit:focus {
  transform: translateY(-1px);
}

.profiles-detail-page .duc-summary-table td:first-child {
  width: 24%;
  color: var(--workspace-text);
  font-weight: 700;
}

.profile-detail-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.25rem 1.2rem;
}

.profile-detail-toolbar .dropdown {
  position: relative;
}

.profile-detail-toolbar .dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.learn-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.learn-workspace-page .profile-workspace-panel__body > p:last-child {
  margin-bottom: 0;
  color: var(--workspace-muted);
  line-height: 1.7;
}

.learn-faq-list {
  display: grid;
  gap: 0.85rem;
}

.learn-faq-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 41, 62, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(244, 249, 252, 0.98));
  box-shadow: 0 10px 20px rgba(15, 41, 62, 0.04);
}

.learn-faq-item strong,
.learn-faq-item h4 {
  display: block;
  margin: 0;
  color: var(--workspace-text);
  font-size: 0.96rem;
  line-height: 1.45;
}

.learn-faq-item p {
  margin: 0.45rem 0 0;
  color: var(--workspace-muted);
  line-height: 1.62;
}

.learn-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-library-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(15, 41, 62, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(244, 249, 252, 0.98));
  box-shadow: 0 10px 20px rgba(15, 41, 62, 0.04);
  overflow: hidden;
}

.doc-library-card .card_image {
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: rgba(239, 246, 249, 0.96);
}

.doc-library-card .card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-library-card .card_content {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  padding: 0.95rem;
}

.doc-library-card .card_content a,
.doc-library-card .card_content .card_btn {
  width: 100%;
}

.card_btn {
  width: 100%;
  min-height: 3rem;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #1b8a83, #1b6f73);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

.profile-workspace-page .dropdown-content,
.profiles-detail-page .dropdown-content,
.upload-profile-page .dropdown-content {
  display: none;
  top: calc(100% + 0.55rem);
  right: 0;
  left: auto;
  min-width: 14rem;
  padding: 0.4rem;
  border: 1px solid rgba(15, 41, 62, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--workspace-soft-shadow);
  overflow: hidden;
  z-index: 20;
}

.profile-workspace-page .dropdown-content a,
.profiles-detail-page .dropdown-content a,
.upload-profile-page .dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  color: var(--workspace-text);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-workspace-page .dropdown-content a i,
.profiles-detail-page .dropdown-content a i,
.upload-profile-page .dropdown-content a i {
  width: 1rem;
  text-align: center;
  color: #176f73;
  flex: 0 0 auto;
}

.profile-workspace-page .dropdown-content a:hover,
.profile-workspace-page .dropdown-content a:focus,
.profiles-detail-page .dropdown-content a:hover,
.profiles-detail-page .dropdown-content a:focus,
.upload-profile-page .dropdown-content a:hover,
.upload-profile-page .dropdown-content a:focus {
  background: rgba(223, 245, 243, 0.9);
  color: #176f73;
  transform: translateX(1px);
}

.profile-workspace-page .dropdown:hover .dropdown-content,
.profile-workspace-page .dropdown:focus-within .dropdown-content,
.profiles-detail-page .dropdown:hover .dropdown-content,
.profiles-detail-page .dropdown:focus-within .dropdown-content,
.upload-profile-page .dropdown:hover .dropdown-content,
.upload-profile-page .dropdown:focus-within .dropdown-content {
  display: block;
}

.profile-workspace-page .dropdown:hover .dropbtn,
.profile-workspace-page .dropdown:focus-within .dropbtn,
.profiles-detail-page .dropdown:hover .dropbtn,
.profiles-detail-page .dropdown:focus-within .dropbtn,
.upload-profile-page .dropdown:hover .dropbtn,
.upload-profile-page .dropdown:focus-within .dropbtn {
  background: linear-gradient(135deg, #176f73, #155d61);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.2);
}

.profiles-detail-page .modal-content,
.profiles-index-page .modal-content,
.upload-profile-page .modal-content1 {
  border: 1px solid rgba(15, 41, 62, 0.08);
  border-radius: 28px;
  background: var(--workspace-surface);
  box-shadow: 0 18px 40px rgba(15, 41, 62, 0.12);
  overflow: hidden;
}

.upload-profile-page .modal-content1,
.upload-profile-page .modal-footer,
.upload-profile-page .modal-footer .dropdown {
  overflow: visible;
}

.upload-profile-page .modal-footer .dropdown-content {
  top: auto;
  bottom: calc(100% + 0.55rem);
}

.profiles-detail-page .modal-header,
.profiles-index-page .modal-header,
.upload-profile-page .modal-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(15, 41, 62, 0.06);
  background: var(--workspace-header);
}

.profiles-detail-page .modal-footer,
.profiles-index-page .modal-footer,
.upload-profile-page .modal-footer {
  border-top: 1px solid rgba(15, 41, 62, 0.06);
  background: rgba(248, 251, 253, 0.9);
}

.profiles-detail-page .modal,
.profiles-index-page .modal {
  z-index: 1080 !important;
}

.profiles-detail-page .modal-dialog,
.profiles-index-page .modal-dialog {
  margin: 1.75rem auto;
}

.profiles-detail-page .modal-dialog.modal-xl {
  max-width: min(94vw, 1140px);
}

.profiles-detail-page .modal-body,
.profiles-index-page .modal-body {
  padding: 1.1rem 1.2rem;
}

.profiles-detail-page .modal-body .mform .form-group,
.profiles-index-page .modal-body .mform .form-group {
  margin-bottom: 1rem;
}

@media (min-width: 1200px) {
  .profile-workspace-page--single {
    width: min(calc(100vw - 2.75rem), 1280px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-workspace-page--single .profile-workspace-shell,
  .profile-workspace-page--single .multi_step_form,
  .profile-workspace-page--single .profile-workspace-form,
  .profile-workspace-page--single #msform {
    width: 100%;
    max-width: none;
  }

  .profile-workspace-page--single #msform fieldset {
    padding: 0 1.05rem 1.05rem;
    border-radius: 28px;
  }

  .profile-workspace-page--single #msform fieldset .card-header {
    margin: 0 -1.05rem;
    padding: 0.95rem 1.05rem 0.88rem;
    border-radius: 28px 28px 16px 16px;
  }

  .profile-workspace-page--single #msform fieldset .card-header > *,
  .profile-workspace-page--single .fieldset-body > *,
  .profile-workspace-page--single .fieldset-footer {
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-workspace-page--single .fieldset-body {
    padding: 0.95rem 1.05rem 0;
  }

  .profile-workspace-page--single .fieldset-footer {
    box-sizing: border-box;
    padding: 0.72rem 1.05rem 1rem;
  }

  .profile-workspace-page--single #msform fieldset .card-header h3,
  .profile-workspace-page--single #msform fieldset .card-header h4 {
    font-size: clamp(1.28rem, 1.4vw, 1.62rem);
  }

  .profile-workspace-page--single #msform fieldset .card-header small {
    max-width: 72ch;
    font-size: 0.9rem;
    line-height: 1.36;
  }

  .profile-workspace-page--single #msform label {
    font-size: 0.9rem !important;
  }

  .profile-workspace-page--single .form-control,
  .profile-workspace-page--single .select2-container--bootstrap-5 .select2-selection,
  .profile-workspace-page--single .select2-container .select2-selection {
    min-height: 2.95rem;
    font-size: 0.94rem;
  }

  .profile-workspace-page--single .fieldset-note {
    max-width: 28rem;
    font-size: 0.84rem;
  }

  .profile-token-page #msform,
  .upload-entry-page #msform {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    margin: 1.6rem auto 0 !important;
  }

  .profile-token-page #msform fieldset,
  .upload-entry-page #msform fieldset {
    margin-left: auto;
    margin-right: auto;
  }

  .profile-token-page #msform fieldset .card-header > *,
  .upload-entry-page #msform fieldset .card-header > * {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .profile-token-page #msform fieldset .card-header small,
  .upload-entry-page #msform fieldset .card-header small {
    max-width: 56rem;
  }
}

@media (max-width: 991.98px) {
  .profile-workspace-page,
  .profiles-detail-page,
  .profile-workspace-page--single {
    width: 100%;
  }

  .learn-workspace-grid {
    grid-template-columns: 1fr;
  }

  .profile-detail-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .profiles-detail-page #sumpage .card-body,
  .profile-detail-toolbar,
  .profile-workspace-page .fieldset-body,
  .profile-workspace-page .fieldset-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .profile-workspace-page #msform fieldset .card-header,
  .profiles-detail-page #sumpage > .card-header,
  .profile-workspace-hero,
  .profile-workspace-panel > .card-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .profile-workspace-panel__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .profile-list-shell table,
  .profile-list-shell thead,
  .profile-list-shell tbody,
  .profile-list-shell tr,
  .profile-list-shell td,
  .profile-list-shell th {
    display: block;
    width: 100%;
  }

  .profile-list-shell thead {
    display: none;
  }

  .profile-list-shell tbody {
    display: grid;
    gap: 0.9rem;
  }

  .profile-list-shell .row_item {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(15, 41, 62, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(244, 249, 252, 0.98));
    box-shadow: 0 10px 22px rgba(15, 41, 62, 0.05);
  }

  .profile-list-shell td,
  .profile-list-shell th {
    padding: 0;
    border: 0;
  }

  .profile-list-shell .profile-list-cell {
    display: grid;
    grid-template-columns: minmax(0, 5.6rem) minmax(0, 1fr);
    gap: 0.2rem 0.85rem;
    align-items: start;
    text-align: left !important;
  }

  .profile-list-shell .profile-list-cell + .profile-list-cell {
    margin-top: 0.75rem;
  }

  .profile-list-shell .profile-list-cell::before {
    content: attr(data-label);
    color: #1b6f73;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .profile-list-shell .profile-list-cell--actions {
    grid-template-columns: 1fr;
  }

  .profile-list-shell .profile-list-cell--actions::before {
    margin-bottom: 0.2rem;
  }

  .profile-list-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .profile-entry-intro {
    grid-template-columns: 1fr;
  }

  .profile-workspace-hero h1 {
    font-size: 1.38rem;
  }

  .profile-workspace-page .fieldset-actions,
  .profile-workspace-page .fieldset-actions--single {
    width: 100%;
    justify-content: stretch;
  }

  .profile-workspace-page .fieldset-actions > * {
    width: 100%;
  }

  .learn-library-grid {
    grid-template-columns: 1fr;
  }

  .profile-list-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-action-btn {
    width: 100%;
    height: 2.7rem;
  }

  .profiles-detail-page .duc-summary-table td:first-child {
    width: 34%;
  }
}

@media (min-width: 1600px) {
  .profile-workspace-page--single {
    width: min(calc(100vw - 3.5rem), 1320px);
  }

  .profile-workspace-page--single #msform fieldset .card-header > *,
  .profile-workspace-page--single .fieldset-body > *,
  .profile-workspace-page--single .fieldset-footer {
    width: min(100%, 1180px);
  }
}
