:root {
  --ink: #172027;
  --muted: #77838a;
  --line: #e2e7ea;
  --surface: #ffffff;
  --background: #f5f7fa;
  --blue: #0070c0;
  --blue-soft: #e9f4fb;
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.save-toast {
  position: fixed;
  z-index: 300;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 150px;
  padding: 14px 18px;
  color: #1d4938;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cce7da;
  border-radius: 13px;
  box-shadow: 0 20px 55px rgba(26, 48, 61, 0.2);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  backdrop-filter: blur(18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.save-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.save-toast svg {
  width: 22px;
  height: 22px;
  stroke: #1f8b61;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-overlay {
  position: fixed;
  z-index: 420;
  inset: 0;
  display: grid;
  padding: 24px;
  background: rgba(18, 29, 38, 0.28);
  backdrop-filter: blur(4px);
  place-items: center;
}

.notice-dialog {
  width: min(100%, 360px);
  padding: 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e1e7ea;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(22, 37, 47, 0.16);
}

.notice-dialog-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  color: #bd3d2f;
  background: #fff2ef;
  border-radius: 50%;
  place-items: center;
}

.notice-dialog-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-dialog h2 {
  margin: 0;
  color: #24343b;
  font-size: 18px;
  font-weight: 750;
}

.notice-dialog p {
  margin: 9px 0 20px;
  color: #6d7b81;
  font-size: 13px;
  line-height: 1.6;
}

.notice-dialog .form-submit-button {
  width: 100%;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 224, 228, 0.8);
  backdrop-filter: blur(18px);
}

.profile-brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.profile-brand img {
  display: block;
  width: 48px;
  height: auto;
}

.profile-brand span {
  color: #1a2b34;
  font-size: 17px;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 15px;
  color: #4f636d;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.back-link:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bdddf2;
}

.profile-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 42px 28px 64px;
}

.profile-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0 4px 30px;
}

.profile-avatar-large {
  display: grid;
  flex: 0 0 auto;
  width: 94px;
  height: 94px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 750;
  background: linear-gradient(135deg, #0070c0, #7357d9);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 112, 192, 0.2);
  place-items: center;
}

.profile-summary-copy {
  min-width: 0;
}

.profile-name-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-name-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
}

.edit-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 13px;
  color: #65767e;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #d8dee2;
  border-radius: 10px;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.edit-button:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bdddf2;
}

.edit-button svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-summary-copy > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.profile-position-area {
  margin-top: 9px;
}

.profile-position-view {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
}

.profile-position-label {
  color: #75848b;
  font-size: 14px;
}

.profile-position-value {
  color: #344b54;
  font-size: 14px;
  font-weight: 600;
}

.position-edit-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 30px;
  padding: 0 9px;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #c7ddeb;
  border-radius: 8px;
}

.position-edit-button:hover {
  background: var(--blue-soft);
  border-color: #9bcbea;
}

.position-edit-button svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.position-form {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.position-form input {
  flex: 1 1 auto;
  min-width: 180px;
  height: 38px;
  padding: 0 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #d7dfe3;
  border-radius: 9px;
  outline: 0;
}

.position-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.position-form .form-cancel-button,
.position-form .form-submit-button {
  height: 38px;
  padding: 0 13px;
}

.profile-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 2px;
  color: #7b898f;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.profile-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.profile-tab:hover {
  color: #31454e;
}

.profile-tab[aria-selected="true"] {
  color: var(--blue);
}

.profile-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.profile-panel {
  min-height: 280px;
  margin-top: 26px;
  padding: 1px;
  overflow: visible;
  background: #edf0f2;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px 24px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.profile-grid > .profile-field-full {
  grid-column: 1 / -1;
}

.profile-grid dt {
  flex: 0 0 auto;
  margin-bottom: 5px;
  color: #94a0a5;
  font-size: 11px;
  font-weight: 550;
}

.profile-grid dd {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 22px;
  margin: 0;
  overflow: visible;
  color: #30464f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.profile-grid dd input,
.profile-grid dd select,
.profile-grid dd textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid #d7dfe3;
  border-radius: 9px;
  outline: 0;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.profile-grid dd input,
.profile-grid dd select {
  height: 42px;
  padding: 0 11px;
}

.profile-grid dd textarea {
  height: auto;
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

.profile-grid dd input:focus,
.profile-grid dd select:focus,
.profile-grid dd textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.profile-grid dd input[readonly] {
  color: #78888f;
  background: #f4f6f7;
}

.profile-grid dd input[type="file"] {
  height: 72px;
  padding: 10px;
  cursor: pointer;
}

.profile-grid .profile-field-date {
  position: relative;
  z-index: 1;
}

.profile-grid .profile-field-date.is-open {
  z-index: 45;
}

.profile-field-date dd {
  overflow: visible;
}

.date-picker {
  position: relative;
  width: 100%;
}

.date-picker-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.date-picker-trigger {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #d7dfe3;
  border-radius: 9px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.date-picker-trigger:hover,
.date-picker-trigger[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.date-picker-trigger svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-picker-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-picker-value.is-placeholder {
  color: #9aa7ac;
}

.date-picker-panel {
  position: absolute;
  z-index: 150;
  top: calc(100% + 7px);
  right: 0;
  width: min(344px, calc(100vw - 40px));
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e0e6e9;
  border-radius: 18px;
  box-shadow: none;
}

.date-picker-header {
  display: grid;
  grid-template-columns: 34px minmax(82px, 1fr) minmax(78px, 1fr) 34px;
  gap: 7px;
  align-items: center;
  margin-bottom: 13px;
}

.date-picker-arrow,
.date-picker-month,
.date-picker-year {
  height: 34px;
  color: #435860;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  background: #f7f9fa;
  border: 1px solid #e7ecee;
  border-radius: 9px;
}

.date-picker-arrow {
  padding: 0;
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.date-picker-arrow:hover {
  background: var(--blue-soft);
  border-color: #c6e2f4;
}

.date-picker-month,
.date-picker-year {
  padding: 0 9px;
  cursor: pointer;
}

.date-picker-weekdays,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.date-picker-weekdays {
  margin-bottom: 6px;
}

.date-picker-weekdays span {
  color: #a3adb1;
  font-size: 10px;
  font-weight: 550;
  text-align: center;
}

.date-picker-day {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #26363d;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  place-items: center;
  transition:
    color 130ms ease,
    background-color 130ms ease;
}

.date-picker-day:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.date-picker-day.is-outside {
  color: #c7ced2;
}

.date-picker-day.is-selected {
  color: #ffffff;
  background: var(--blue);
}

.profile-grid .region-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.profile-grid .region-selector select {
  width: 100%;
  min-width: 0;
  padding: 0 7px;
  font-size: 11px;
}

.profile-grid .profile-code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 550;
}

.profile-grid .profile-long-value {
  display: block;
  height: auto;
  min-height: 22px;
  overflow: visible;
  line-height: 1.65;
  white-space: normal;
}

.profile-field-photo dd {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.document-photo-placeholder {
  display: grid;
  width: 58px;
  height: 72px;
  color: #9aabb2;
  background: #f7f9fa;
  border: 1px dashed #cbd5d9;
  border-radius: 8px;
  place-items: center;
}

.document-photo-placeholder svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.document-photo {
  display: block;
  width: 58px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #d7e0e4;
  border-radius: 8px;
}

.basic-panel-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-height: 54px;
  padding: 0 0 18px;
  background: #ffffff;
}

#basic-panel {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e1e7ea;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(25, 48, 61, 0.04);
}

.basic-edit-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-panel-empty {
  min-height: 280px;
  background: #ffffff;
}

.profile-panel-education {
  padding: 22px 24px 26px;
  background: #ffffff;
}

.education-toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 40px;
}

.outline-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #bdddf2;
  border-radius: 10px;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.outline-action:hover {
  color: #005f9f;
  background: var(--blue-soft);
  border-color: #8ec8ed;
  transform: translateY(-1px);
}

.outline-action svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.education-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #16724b;
  font-size: 13px;
  line-height: 1.5;
  background: #edf8f3;
  border: 1px solid #cce9dc;
  border-radius: 10px;
}

.education-status.is-error {
  color: #bd3d2f;
  background: #fff4f4;
  border-color: #f1ccd0;
}

.education-form {
  margin-top: 16px;
  padding: 22px;
  background: #fafbfc;
  border: 1px solid #e5eaed;
  border-radius: 14px;
}

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

.education-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.education-form-grid label > span {
  color: #465b64;
  font-size: 12px;
  font-weight: 650;
}

.education-form-grid input,
.education-form-grid select,
.education-form-grid textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #d7dfe3;
  border-radius: 9px;
  outline: 0;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.education-form-grid input,
.education-form-grid select {
  height: 42px;
  padding: 0 11px;
}

.education-form-grid textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

.education-form-grid input:focus,
.education-form-grid select:focus,
.education-form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.education-file-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  min-width: 0;
}

.education-file-label {
  color: #465b64;
  font-size: 12px;
  font-weight: 650;
}

.education-file-upload {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 4px 5px 4px 13px;
  cursor: pointer;
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.education-file-upload:hover,
.education-file-upload:focus-visible,
.education-file-upload.is-dragging {
  background: #f8fbfd;
  border-color: var(--blue);
  outline: 0;
}

.education-file-upload-icon {
  display: grid;
  color: #9ca8ad;
  place-items: center;
}

.education-file-upload-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.education-file-upload-prompt {
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.education-file-upload-prompt.has-file {
  color: var(--blue);
  font-weight: 600;
}

.education-file-choose-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  background: var(--blue);
  border: 0;
  border-radius: 7px;
}

.education-file-choose-button:hover {
  background: #005f9f;
}

.education-file-field small {
  color: #8a979d;
  font-size: 11px;
}

.education-upload-preview {
  width: 100%;
}

.education-attachment {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px 6px 12px;
  background: #f8fafb;
  border: 1px solid #e1e7ea;
  border-radius: 9px;
}

.education-attachment-link {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.education-attachment-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.education-attachment-link svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.education-attachment-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.education-attachment-time {
  flex: 0 0 auto;
  color: #8b989d;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.education-attachment-remove {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #7b8b91;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 7px;
  place-items: center;
}

.education-attachment-remove:hover {
  color: #b63a2f;
  background: #fff1ef;
}

.education-attachment-remove:disabled {
  cursor: wait;
  opacity: 0.55;
}

.university-combobox-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.university-combobox {
  position: relative;
  width: 100%;
}

.university-search-input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #d7dfe3;
  border-radius: 9px;
  outline: 0;
}

.university-search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.university-result-list {
  position: absolute;
  z-index: 160;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 270px;
  padding: 7px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dce3e6;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(24, 45, 57, 0.13);
}

.university-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  color: #30464f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.university-option:hover {
  background: var(--blue-soft);
}

.university-option strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.university-option span {
  display: block;
  margin-top: 3px;
  color: #8b989d;
  font-size: 10px;
}

.university-empty {
  margin: 0;
  padding: 12px 10px;
  color: #8b989d;
  font-size: 12px;
  text-align: center;
}

.education-notes-field {
  grid-column: 1 / -1;
}

.education-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.form-cancel-button,
.form-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 17px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  border-radius: 10px;
}

.form-cancel-button {
  color: #61727a;
  background: #ffffff;
  border: 1px solid #d8dfe3;
}

.form-cancel-button:hover {
  color: #31454e;
  background: #f4f6f7;
}

.form-submit-button {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.form-submit-button:hover {
  background: #005f9f;
  border-color: #005f9f;
}

.form-submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.family-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e1e7ea;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(25, 48, 61, 0.04);
}

.family-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.family-card h3 {
  margin: 0;
  color: #20343c;
  font-size: 18px;
  font-weight: 750;
}

.family-card header p {
  margin: 5px 0 0;
  color: #89969c;
  font-size: 12px;
}

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

.family-card-grid {
  margin: 0;
}

.family-card-grid div {
  min-width: 0;
}

.family-card-grid dt,
.family-form-grid label > span {
  display: block;
  margin-bottom: 6px;
  color: #8b989d;
  font-size: 11px;
  font-weight: 550;
}

.family-card-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #30464f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.family-form {
  padding: 0;
}

.family-form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.family-form-grid .family-field-full {
  grid-column: 1 / -1;
}

.family-form-grid input,
.family-form-grid select,
.family-form-grid textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #d7dfe3;
  border-radius: 9px;
  outline: 0;
}

.family-form-grid input,
.family-form-grid select {
  height: 42px;
  padding: 0 11px;
}

.family-form-grid textarea {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

.family-form-grid input:focus,
.family-form-grid select:focus,
.family-form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.family-card-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf0f2;
}

.family-card-section h4 {
  margin: 0 0 7px;
  color: #8e9ba1;
  font-size: 11px;
  font-weight: 600;
}

.family-card-section p {
  min-height: 18px;
  margin: 0;
  color: #66777e;
  font-size: 12px;
  line-height: 1.65;
}

.education-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.education-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e1e7ea;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(25, 48, 61, 0.04);
}

.education-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.education-card-edit {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #c7ddeb;
  border-radius: 9px;
}

.education-card-edit:hover {
  background: var(--blue-soft);
  border-color: #9bcbea;
}

.education-card-edit svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.education-card h3 {
  margin: 0;
  color: #20343c;
  font-size: 17px;
  font-weight: 750;
}

.education-card header p {
  margin: 5px 0 0;
  color: #89969c;
  font-size: 12px;
}

.education-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}

.education-card-grid div {
  min-width: 0;
}

.education-card-grid dt {
  margin-bottom: 5px;
  color: #94a0a5;
  font-size: 11px;
}

.education-card-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #30464f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.education-file-link {
  display: inline-flex;
  max-width: 100%;
  margin-top: 16px;
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-overflow: ellipsis;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.education-notes {
  min-height: 20px;
  margin: 0;
  padding: 0;
  color: #66777e;
  font-size: 12px;
  line-height: 1.65;
}

.education-card-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf0f2;
}

.education-card-section h4 {
  margin: 0 0 8px;
  color: #8e9ba1;
  font-size: 11px;
  font-weight: 600;
}

.education-card-attachment-list {
  display: grid;
  gap: 7px;
}

.education-card-empty {
  min-height: 18px;
}

.education-existing-file {
  display: flex;
  grid-column: 1 / -1;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 11px;
  background: #f7f9fa;
  border: 1px solid #e3e8eb;
  border-radius: 9px;
}

.education-existing-file a {
  max-width: 70%;
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-overflow: ellipsis;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.education-existing-file label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #6f7e84;
  font-size: 12px;
  cursor: pointer;
}

.education-existing-file input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.profile-tab:focus-visible,
.edit-button:focus-visible,
.education-card-edit:focus-visible,
.back-link:focus-visible,
.outline-action:focus-visible,
.form-cancel-button:focus-visible,
.form-submit-button:focus-visible {
  outline: 2px solid rgba(0, 112, 192, 0.34);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .profile-header {
    height: 64px;
    padding: 0 18px;
  }

  .profile-brand img {
    width: 42px;
  }

  .profile-brand span {
    font-size: 15px;
  }

  .profile-page {
    padding: 28px 16px 40px;
  }

  .profile-summary {
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 24px;
  }

  .profile-avatar-large {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .profile-name-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .profile-name-row h1 {
    font-size: 27px;
  }

  .profile-position-view {
    flex-wrap: wrap;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .education-form-grid,
  .education-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-notes-field {
    grid-column: 1 / -1;
  }

}

@media (max-width: 460px) {
  .back-link {
    padding: 0 11px;
  }

  .profile-summary {
    display: block;
  }

  .profile-avatar-large {
    margin-bottom: 16px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid .profile-field-wide,
  .profile-grid .profile-field-full {
    grid-column: 1;
  }

  .profile-panel-education {
    padding-right: 16px;
    padding-left: 16px;
  }

  .education-form {
    padding: 16px;
  }

  .education-form-grid,
  .education-card-grid,
  .family-form-grid,
  .family-card-grid {
    grid-template-columns: 1fr;
  }

  .education-notes-field {
    grid-column: 1;
  }

  .education-form-actions {
    justify-content: stretch;
  }

  .form-cancel-button,
  .form-submit-button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
