.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 43%) 1fr;
  height: calc(100vh - 72px - var(--app-notice-height));
}

.editor-panel {
  background: var(--surface);
  border-right: 1px solid var(--line);
  min-width: 0;
  overflow-y: auto;
  padding: 34px clamp(24px, 3.2vw, 54px) 56px;
}

.editor-heading { align-items: end; display: flex; justify-content: space-between; }
.eyebrow { color: var(--blue); font-size: 9px !important; font-weight: 800; letter-spacing: .18em; margin: 0 0 6px !important; }
.editor-heading h1 { font-size: clamp(23px, 2vw, 30px); letter-spacing: -.03em; margin: 0 0 7px; }
.editor-heading p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.completion-label { color: var(--blue); font-size: 10px; font-weight: 800; white-space: nowrap; }
.completion-track { background: #edf1f5; border-radius: 4px; height: 4px; margin: 20px 0 28px; overflow: hidden; }
.completion-track span { background: var(--blue); display: block; height: 100%; transition: width .25s ease; width: 0; }
.draft-controls {
  background: var(--soft-surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 10px;
  margin: -10px 0 22px;
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.draft-controls .secondary-button { min-height: 36px; }
.draft-primary-row { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.draft-action-group { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; min-width: 0; }
.draft-controls.is-sample-mode .draft-action-group { justify-content: flex-start; }
.draft-controls.is-sample-mode .draft-primary-row,
.draft-controls.is-error .draft-primary-row { align-items: flex-start; grid-template-columns: 1fr; }
.draft-normal-actions,
.draft-sample-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.draft-controls.is-sample-mode .draft-sample-actions { justify-content: flex-start; }
.draft-sample-actions[hidden],
.draft-normal-actions[hidden] { display: none; }
.draft-message { align-items: center; color: var(--muted); display: inline-flex; font-size: 10px; font-weight: 700; gap: 7px; min-width: 0; }
.draft-message::before { background: #8b96a5; border-radius: 50%; content: ''; flex: 0 0 auto; height: 7px; width: 7px; }
.draft-message.is-success { color: var(--green); }
.draft-message.is-success::before { background: var(--green); }
.draft-message.is-saving { color: var(--blue); }
.draft-message.is-saving::before { background: var(--blue); }
.draft-message.is-error { color: var(--danger); }
.draft-message.is-error::before { background: var(--danger); }
.draft-sample-actions .secondary-button,
.draft-sample-actions .primary-button { min-height: 32px; white-space: nowrap; }

.form-section { border-bottom: 1px solid var(--soft-line); }
.form-section:first-of-type { border-top: 1px solid var(--soft-line); }
.form-section summary { align-items: center; cursor: pointer; display: grid; gap: 13px; grid-template-columns: 29px 1fr 18px; list-style: none; padding: 20px 2px; }
.form-section summary::-webkit-details-marker { display: none; }
.form-section summary strong { display: block; font-size: 13px; }
.form-section summary small { color: var(--muted); display: block; font-size: 9px; margin-top: 3px; }
.form-section summary svg { fill: none; height: 17px; stroke: #8b95a5; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transition: transform .2s; width: 17px; }
.form-section[open] summary svg { transform: rotate(180deg); }
.section-number { align-items: center; background: var(--blue-soft); border-radius: 7px; color: var(--blue); display: flex; font-size: 9px; font-weight: 800; height: 29px; justify-content: center; }
.section-content { display: grid; gap: 15px; padding: 2px 2px 24px 44px; }

.photo-and-name { display: grid; gap: 18px; grid-template-columns: 94px 1fr; }
.photo-control { align-items: center; display: flex; flex-direction: column; gap: 7px; }
.photo-thumbnail { align-items: center; background: #f1f4f7; border: 1px dashed #bcc6d2; border-radius: 6px; color: #8b96a5; display: flex; font-size: 9px; height: 114px; justify-content: center; overflow: hidden; width: 88px; }
.photo-thumbnail img { height: 100%; object-fit: cover; width: 100%; }
.upload-button { border: 1px solid #ccd4de; border-radius: 6px; color: #425068; cursor: pointer; font-size: 9px; font-weight: 700; padding: 6px 9px; }
.text-button { background: none; border: 0; color: var(--muted); font-size: 9px; padding: 1px; }
.field-stack { display: grid; gap: 13px; }
.field-grid { display: grid; gap: 13px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.three-columns { grid-template-columns: 1.2fr .8fr 1.2fr; }
.postal-grid { grid-template-columns: .8fr 1.6fr; }
.residence-fields-section { display: grid; gap: 10px; padding-top: 3px; }
.residence-fields-title { color: #526076; font-size: 10px; font-weight: 750; margin: 0; }
.residence-fields-grid { min-width: 0; }
.residence-fields-section .field-help { margin: -4px 0 0; }

.input-field { display: block; min-width: 0; }
.input-field > span { color: #526076; display: block; font-size: 9px; font-weight: 750; margin: 0 0 6px 1px; }
.input-field input,
.input-field select,
.input-field textarea {
  background: #fff;
  border: 1px solid #cfd7e1;
  border-radius: 7px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
  padding: 10px 11px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.input-field input,
.input-field select { height: 39px; }
.input-field textarea { line-height: 1.65; resize: vertical; }
.input-field input::placeholder,
.input-field textarea::placeholder { color: #a4adba; }
.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus { border-color: #6b91ec; box-shadow: 0 0 0 3px rgba(36, 87, 214, .09); }
.field-help { color: var(--muted); display: block; font-size: 8px; margin-top: 4px; }

#japaneseWorkspace .draft-format-guide-toggle { background: transparent; border-color: transparent; color: #68758a; font-size: 10px; font-weight: 700; min-height: 44px; min-width: 44px; padding: 6px 9px; white-space: nowrap; }
#japaneseWorkspace .draft-format-guide-toggle:hover { background: #eef3fb; color: #2457a2; }
#japaneseWorkspace .draft-format-guide-toggle:focus-visible { outline: 2px solid #2457a2; outline-offset: 2px; }
#japaneseWorkspace .draft-format-guide-panel { background: #f8faff; border: 1px solid #d7e0f2; border-radius: 7px; color: #34435a; font-size: 11px; line-height: 1.6; max-height: min(244px, calc(100dvh - 220px)); min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; padding: 10px 12px; }
#japaneseWorkspace .draft-format-guide-panel[hidden] { display: none !important; }
#japaneseWorkspace .draft-format-guide-panel ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
#japaneseWorkspace .draft-format-guide-panel li { min-width: 0; }
#japaneseWorkspace .draft-format-guide-panel code { background: #eef2f8; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
#japaneseWorkspace .draft-format-guide-panel p { margin: 0 0 7px; }
#japaneseWorkspace .draft-format-guide-panel p:last-child { margin: 7px 0 0; }

.list-heading { align-items: center; display: flex; justify-content: space-between; }
.list-heading strong { font-size: 11px; }
.list-heading.has-divider { border-top: 1px dashed #dfe4ea; margin-top: 8px; padding-top: 20px; }
.small-add-button { background: var(--blue-soft); border: 0; border-radius: 6px; color: var(--blue); font-size: 9px; font-weight: 750; padding: 6px 9px; }
.profile-links-editor { display: grid; gap: 9px; }
.profile-link-editor-row { align-items: end; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto 28px; }
.profile-link-recognition { align-items: center; color: var(--muted); display: inline-flex; font-size: 9px; gap: 4px; margin-bottom: 10px; white-space: nowrap; }
.profile-link-recognition .profile-link-icon { fill: currentColor; height: 13px; width: 13px; }
.remove-profile-link-button { background: #f7f8fa; border: 1px solid #d9dfe6; border-radius: 6px; color: #7c8795; font-size: 16px; height: 30px; line-height: 1; margin-bottom: 3px; width: 28px; }
.repeating-list { display: grid; gap: 9px; }
.repeating-row { align-items: end; display: grid; gap: 8px; grid-template-columns: 120px 1fr 28px; }
.credential-link-field { display: none; }
.repeating-row.has-credential-link .credential-link-field { display: block; grid-column: 1 / 3; grid-row: 2; }
.repeating-row.has-credential-link .remove-row-button { grid-column: 3; grid-row: 1; }
.compact-field > span { font-size: 8px; }
.compact-field input { font-size: 11px; height: 36px; padding: 8px 9px; }
.remove-row-button { background: #f7f8fa; border: 1px solid #d9dfe6; border-radius: 6px; color: #7c8795; height: 30px; margin-bottom: 3px; width: 28px; }
.empty-list { background: var(--soft-surface); border: 1px dashed #d7dde5; border-radius: 7px; color: var(--muted); font-size: 9px; padding: 14px; text-align: center; }

.career-list { display: grid; gap: 14px; }
.career-editor-item { background: #fbfcfd; border: 1px solid #dce2e8; border-radius: 9px; display: grid; gap: 13px; padding: 15px; }
.career-item-header { align-items: center; border-bottom: 1px solid #e6eaef; display: flex; justify-content: space-between; padding-bottom: 11px; }
.career-item-header strong { font-size: 11px; }
.career-item-actions { align-items: center; display: flex; }
.remove-career-button { background: none; border: 0; color: var(--danger); font-size: 9px; min-height: 36px; min-width: 44px; padding: 0 8px; }
.career-detail-list { display: grid; gap: 10px; }
.career-detail-editor-item { background: #fff; border: 1px solid #e2e7ed; border-radius: 7px; display: grid; gap: 10px; padding: 12px; }
.career-detail-item-header { align-items: center; display: flex; justify-content: space-between; }
.career-detail-item-header strong { align-items: baseline; display: flex; font-size: 10px; gap: 7px; }
.career-detail-number { color: var(--muted); font-size: 8px; font-weight: 650; }
.remove-career-detail-button { background: none; border: 0; color: var(--danger); font-size: 9px; min-height: 36px; min-width: 44px; padding: 0 8px; }
.career-detail-add-button { justify-self: start; min-height: 36px; }

.editor-footer { display: grid; gap: 24px; padding-top: 32px; }
.editor-footer-actions { align-items: center; border-bottom: 1px solid var(--soft-line); display: flex; min-height: 44px; padding-bottom: 24px; }
.editor-footer--legal { padding-top: 8px; }
.editor-legal { display: grid; gap: 5px; justify-items: center; text-align: center; }
.editor-legal p { color: #8a94a3; font-size: 10px; line-height: 1.55; margin: 0; max-width: 460px; }
.editor-copyright { font-size: 11px !important; }
.editor-copyright a { color: #627187; font-weight: 700; }
.editor-copyright a:hover { color: var(--blue); }
.editor-copyright a:focus-visible { outline: 3px solid rgba(36, 87, 214, .28); outline-offset: 2px; }
.x-contact-link { align-items: center; display: inline-flex; gap: 4px; white-space: nowrap; }
.x-contact-icon { fill: currentColor; flex: 0 0 auto; height: 1em; width: 1em; }

.preview-panel { background: #e9edf2; display: grid; grid-template-rows: 49px minmax(0, 1fr); min-width: 0; overflow: hidden; position: relative; }
.preview-panel.has-page-break-panel { grid-template-rows: 49px auto minmax(0, 1fr); }
.preview-toolbar { align-items: center; background: #f8fafc; border-bottom: 1px solid #dce2e8; display: flex; justify-content: space-between; padding: 0 20px; position: relative; }
.preview-toolbar > div { align-items: center; display: flex; }
.preview-toolbar strong { font-size: 10px; }
.preview-toolbar > div > span:last-child { color: var(--muted); font-size: 9px; margin-left: 9px; }
.page-break-toolbar-actions { flex: 0 0 auto; gap: 6px; margin-left: auto; }
.page-break-menu, .page-break-all-positions { background: #fff; border: 1px solid #d7dde5; border-radius: 6px; color: #2457d6; cursor: pointer; display: inline-flex; font: inherit; font-size: 10px; font-weight: 700; min-height: 32px; padding: 0 10px; }
.page-break-menu[aria-pressed="true"] { background: #eaf1ff; border-color: #8ba9e8; }
.page-break-all-positions { pointer-events: auto; }
.page-break-menu:focus-visible, .page-break-all-positions:focus-visible, .page-break-panel-toggle:focus-visible, .page-break-boundary:focus-visible, .page-break-row:focus-visible, .page-break-undo:focus-visible { outline: 3px solid rgba(36, 87, 214, .3); outline-offset: 2px; }
.page-break-feedback { align-items: center; background: #172033; border-radius: 7px; box-shadow: 0 8px 22px rgba(23, 32, 51, .22); color: #fff; display: flex; font-size: 10px; gap: 7px; left: 50%; max-width: min(360px, calc(100vw - 28px)); padding: 8px 10px; position: fixed; top: 16px; transform: translateX(-50%); z-index: 100; }
.page-break-undo { background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; min-height: 28px; padding: 0 4px; text-decoration: underline; white-space: nowrap; }
.page-break-panel { background: #fff; border: 1px solid #d7dde5; border-radius: 9px; box-shadow: 0 12px 32px rgba(23, 32, 51, .16); display: grid; gap: 2px; justify-self: end; margin: 8px 20px 0; max-height: min(360px, calc(100vh - 150px)); overflow-y: auto; padding: 8px; width: min(330px, calc(100% - 40px)); z-index: 42; }
.preview-panel > .page-break-panel { display: grid; }
.preview-panel > .page-break-panel { grid-row: 2; }
.preview-panel > .preview-scroll { grid-row: 2; min-height: 0; }
.preview-panel.has-page-break-panel > .preview-scroll { grid-row: 3; }
.page-break-panel[hidden] { display: none !important; }
.page-break-panel-toggle { background: #fff; border: 1px solid #d7dde5; border-radius: 6px; color: #2457d6; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; min-height: 32px; padding: 0 10px; }
.page-break-panel-toggle[hidden] { display: none !important; }
.page-break-panel strong { font-size: 10px; padding: 6px 8px; }
.page-break-row { align-items: center; background: transparent; border: 0; border-radius: 7px; cursor: pointer; display: grid; gap: 8px; grid-template-columns: 1fr auto; min-height: 44px; padding: 7px 8px; text-align: left; width: 100%; }
.page-break-row:hover { background: #eef4ff; }
.page-break-row b { display: block; font-size: 10px; }
.page-break-row small { color: var(--muted); display: block; font-size: 9px; margin-top: 2px; }
.page-break-switch { background: #dce2e8; border-radius: 999px; height: 20px; padding: 2px; width: 36px; }
.page-break-switch::after { background: #fff; border-radius: 50%; content: ''; display: block; height: 16px; transition: transform .16s; width: 16px; }
.page-break-row[aria-pressed="true"] .page-break-switch { background: var(--blue); }
.page-break-row[aria-pressed="true"] .page-break-switch::after { transform: translateX(16px); }
.page-break-live { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.document-page [data-section-key], .document-page [data-record-id] { position: relative; }
.page-break-overlay { inset: 0; pointer-events: none; position: fixed; z-index: 9; }
.page-break-overlay.is-editing { z-index: 41; }
.page-break-overlay[hidden] { display: none; }
.page-break-visual-boundary { height: 1px; pointer-events: none; position: fixed; }
.page-break-rail { inset: 0; pointer-events: none; position: fixed; }
.page-break-boundary-line { border-top: 1px dotted rgba(36, 87, 214, .55); display: block; inset: 0; position: absolute; }
.page-break-visual-boundary.is-set .page-break-boundary-line { border-top-color: var(--blue); border-top-style: dashed; }
.page-break-boundary, .page-break-passive-marker { align-items: center; box-sizing: border-box; font: inherit; pointer-events: auto; position: absolute; }
.page-break-boundary { background: transparent; border: 0; border-radius: 7px; clip-path: inset(var(--page-break-hit-top, 0px) 0 var(--page-break-hit-bottom, 0px)); color: var(--blue); cursor: pointer; display: inline-flex; height: 30px; justify-content: center; left: var(--page-break-marker-left); padding: 4px; top: -15px; width: 30px; }
.page-break-boundary:hover, .page-break-boundary:focus-visible { background: rgba(234, 241, 255, .92); }
.page-break-sign { align-items: center; background: #fff; border: 1px solid currentColor; border-radius: 50%; display: inline-flex; height: 22px; justify-content: center; width: 22px; }
.page-break-visual-boundary.is-set .page-break-sign { background: var(--blue); color: #fff; }
.page-break-sign svg { height: 13px; stroke: currentColor; stroke-width: 2.4; width: 13px; }
.page-break-visual-boundary.is-marker-crowded .page-break-sign, .page-break-visual-boundary.is-viewport-clamped .page-break-sign { height: 16px; width: 16px; }
.page-break-visual-boundary.is-marker-crowded .page-break-sign svg, .page-break-visual-boundary.is-viewport-clamped .page-break-sign svg { height: 10px; width: 10px; }
.page-break-cluster { align-items: center; background: #172033; border: 1px solid #fff; border-radius: 999px; color: #fff; display: inline-flex; font-size: 9px; font-weight: 700; height: 16px; justify-content: center; min-width: 16px; padding: 0 3px; pointer-events: none; position: absolute; }
.page-break-visual-boundary.is-marker-clustered .page-break-sign { box-shadow: 0 0 0 2px rgba(23, 32, 51, .16); }
.page-break-passive-marker { background: #fff; border: 1px solid #5479bf; border-radius: 50%; color: #5479bf; display: inline-flex; font-size: 16px; height: 18px; justify-content: center; left: calc(var(--page-break-marker-left) + 6px); line-height: 1; opacity: .8; top: -9px; width: 18px; }
.page-break-visual-boundary.is-marker-crowded .page-break-passive-marker, .page-break-visual-boundary.is-viewport-clamped .page-break-passive-marker { font-size: 14px; height: 16px; left: calc(var(--page-break-marker-left) + 7px); top: -8px; width: 16px; }
.page-break-tooltip { background: #172033; border-radius: 4px; bottom: calc(100% + 5px); color: #fff; font-size: 9px; font-weight: 650; left: 50%; opacity: 0; padding: 5px 6px; pointer-events: none; position: absolute; transform: translateX(-50%); white-space: nowrap; }
.page-break-boundary:hover .page-break-tooltip, .page-break-boundary:focus-visible .page-break-tooltip { opacity: 1; }
.page-break-target-highlight { outline: 2px solid rgba(36, 87, 214, .55); outline-offset: 1px; }
.has-manual-page-break { break-before: page; page-break-before: always; }
.preview-dot { background: var(--green); border-radius: 50%; height: 6px; margin-right: 7px !important; width: 6px; }
.zoom-controls { background: #fff; border: 1px solid #d7dde5; border-radius: 6px; overflow: hidden; }
.zoom-controls button { background: #fff; border: 0; color: #536075; height: 26px; width: 28px; }
.zoom-controls span { border-left: 1px solid #e2e6eb; border-right: 1px solid #e2e6eb; color: #647084; font-size: 8px; margin: 0 !important; min-width: 44px; text-align: center; }
.preview-scroll { overflow: auto; padding: 30px 34px 64px; }
.document-preview {
  margin: 0 auto;
  min-width: 100%;
  padding-right: var(--page-break-preview-gutter, 96px);
  transform-origin: top left;
  transition: transform .2s ease;
  width: max-content;
}
.document-preview > .document-page { margin-left: 0; margin-right: 0; }

dialog { background: transparent; border: 0; padding: 0; }
dialog::backdrop { background: rgba(12, 20, 35, .52); backdrop-filter: blur(2px); }
.dialog-content { background: #fff; border-radius: 12px; box-shadow: 0 24px 80px rgba(12, 20, 35, .25); max-width: 390px; padding: 28px; text-align: center; }
.dialog-icon { align-items: center; background: #fff1f1; border-radius: 50%; color: var(--danger); display: flex; font-size: 18px; font-weight: 800; height: 44px; justify-content: center; margin: 0 auto 15px; width: 44px; }
.dialog-content h2 { font-size: 17px; margin: 0 0 9px; }
.dialog-content p { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0; }
.dialog-actions { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; margin-top: 22px; }

#privacySecurityDialog { max-height: none; max-width: none; }
.privacy-security-content {
  max-height: calc(100vh - 36px);
  max-width: min(600px, calc(100vw - 32px));
  overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  text-align: left;
  width: 600px;
}
.privacy-security-heading { align-items: flex-start; display: grid; gap: 15px; grid-template-columns: auto 1fr; }
.privacy-security-heading h2 { font-size: 20px; margin: 1px 0 7px; }
.privacy-security-heading p,
.privacy-security-section p { color: var(--muted); font-size: 11px; line-height: 1.75; margin: 0; text-align: left; }
.privacy-security-icon { align-items: center; background: #eaf8f3; border-radius: 10px; color: var(--green); display: flex; height: 42px; justify-content: center; width: 42px; }
.privacy-security-icon svg { fill: currentColor; height: 23px; width: 23px; }
.privacy-security-section { border-top: 1px solid var(--soft-line); margin-top: 20px; padding-top: 17px; }
.privacy-security-section h3 { font-size: 12px; margin: 0 0 6px; }
.privacy-security-warning { background: #fff9ea; border: 1px solid #f0dfac; border-radius: 8px; padding: 13px 14px; }
.privacy-security-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.privacy-security-links a { color: var(--blue); font-size: 10px; font-weight: 700; }
.privacy-security-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.privacy-security-actions .primary-button { min-width: 112px; }

@keyframes pulse { 50% { opacity: .35; } }

/* Shared list controls; editor adapters supply existing forms unchanged. */
.sortable-list-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sortable-tool, .sortable-action { background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 11px; min-height: 36px; padding: 6px 9px; }
.sortable-row { min-width: 0; }
.sortable-row-heading { align-items: center; background: var(--soft-surface); border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 3px; grid-template-columns: 36px 36px auto minmax(0, 1fr) 36px; margin-bottom: 8px; min-width: 0; padding: 3px; }
.sortable-handle, .sortable-toggle { background: transparent; border: 0; border-radius: 5px; color: var(--muted); font-size: 18px; height: 36px; padding: 0; width: 36px; }
.sortable-handle { cursor: grab; touch-action: none; }
.sortable-position { color: var(--muted); font-size: 10px; padding: 0 4px; }
.sortable-summary { color: var(--ink); font-size: 12px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sortable-actions { position: relative; }
.sortable-actions > summary { align-items: center; border-radius: 5px; color: var(--muted); cursor: pointer; display: flex; font-size: 20px; height: 36px; justify-content: center; list-style: none; padding: 0; width: 36px; }
.sortable-actions > summary::-webkit-details-marker { display: none; }
.sortable-action-buttons { background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 4px 14px #23395622; display: grid; gap: 6px; padding: 8px; position: absolute; right: 0; top: 40px; width: 180px; z-index: 4; }
.sortable-action-buttons > * { margin: 0; max-width: 100%; min-height: 36px; width: 100%; }
.sortable-row.is-collapsed > .sortable-row-heading { margin-bottom: 0; }
.sortable-row-moved > .sortable-row-heading { outline: 2px solid var(--blue); outline-offset: 1px; }
.sortable-list-tools button:disabled, .sortable-row-heading button:disabled { cursor: default; opacity: .45; }
.sortable-list-tools button:focus-visible, .sortable-row-heading button:focus-visible, .sortable-actions > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 820px) {
  .sortable-row-heading { grid-template-columns: 44px 44px auto minmax(0, 1fr) 44px; }
  .sortable-handle, .sortable-toggle, .sortable-actions > summary { height: 44px; width: 44px; }
  .sortable-tool, .sortable-action-buttons > * { min-height: 44px; }
  .sortable-action-buttons { top: 48px; }
}
@media print {
  .sortable-list-tools, .sortable-row-heading { display: none !important; }
}

/* Drag geometry comes from unchanged row boxes, never these animated headings. */
.sortable-drag-panel { overflow-anchor: none; }
.sortable-drag-list { user-select: none; }
.sortable-drag-heading { transition: transform 140ms ease; }
.sortable-drag-source { visibility: hidden; }
.sortable-placeholder, .sortable-drag-float { box-sizing: border-box; border-radius: 7px; pointer-events: none; position: fixed; z-index: 1000; }
.sortable-placeholder { background: #2457d615; border: 2px dashed var(--blue); }
.sortable-placeholder.is-outside { opacity: .35; }
.sortable-drag-float { align-items: center; background: var(--soft-surface); border: 1px solid var(--blue); box-shadow: 0 8px 20px #23395633; color: var(--ink); display: flex; font-size: 12px; font-weight: 700; overflow: hidden; padding: 8px 14px; text-overflow: ellipsis; white-space: nowrap; animation: sortable-lift 120ms ease; }
.sortable-drag-float.is-landing { box-shadow: 0 2px 6px #23395622; transition: left 160ms ease, top 160ms ease, width 160ms ease, height 160ms ease, box-shadow 160ms ease; }
@keyframes sortable-lift { from { opacity: .65; transform: scale(.99); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .sortable-drag-heading, .sortable-drag-float, .sortable-drag-float.is-landing { animation: none; transition: none; }
}
@media print {
  .sortable-placeholder, .sortable-drag-float, .sortable-anchor-space { display: none !important; }
}

/* The existing fields remain unchanged inside the shared list body. */
.sortable-row.repeating-row, .sortable-row.profile-link-editor-row { display: block; }
.sortable-simple-fields { display: grid; gap: 10px; grid-template-columns: 112px minmax(0, 1fr); }
.sortable-simple-fields.has-credential-link { grid-template-columns: 112px minmax(0, 1fr); }
.sortable-simple-fields .credential-link-field { grid-column: 1 / -1; }
.sortable-link-fields { align-items: end; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
.sortable-existing-body { min-width: 0; }
.sortable-existing-body > .input-field, .sortable-existing-body > .field-grid { margin-bottom: 12px; }
.sortable-row-heading { display: flex; gap: 0; padding: 4px; }
.sortable-handle, .sortable-actions > summary { flex: 0 0 44px; height: 44px; width: 44px; }
.sortable-toggle { align-items: center; display: flex; flex: 1; gap: 8px; height: auto; min-height: 44px; min-width: 0; padding: 6px 4px; text-align: left; width: auto; }
.sortable-chevron { color: var(--muted); flex: 0 0 16px; font-size: 20px; text-align: center; }
.sortable-title { display: grid; gap: 2px; min-width: 0; }
.sortable-meta { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sortable-meta:empty { display: none; }
.sortable-toggle .sortable-summary { font-size: 12px; }
.sortable-list-tools { align-items: center; gap: 8px; }
.sortable-fold-all { background: transparent; border-color: transparent; color: var(--muted); padding-left: 4px; }
.sortable-tool { min-height: 44px; }
.sortable-sort { margin-left: auto; }
.sortable-sort-help { color: var(--muted); flex: 1 0 100%; font-size: 10px; line-height: 1.6; }
.career-editor-item.sortable-row, .career-detail-editor-item.sortable-row { display: block; }
.career-detail-list { border-left: 2px solid var(--line); padding-left: 10px; }
.sortable-row .career-detail-add-button { margin-top: 12px; }
@media (max-width: 820px) {
  .sortable-link-fields { grid-template-columns: 1fr; }
  .sortable-action-buttons > *, .sortable-actions > summary, .sortable-handle { min-height: 44px; }
  .sortable-existing-body input, .sortable-existing-body textarea { font-size: 16px; }
}

.sortable-tool { align-items: center; display: inline-flex; gap: 6px; }
.sortable-tool svg, .sortable-chevron svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 16px; }

@media (max-width: 520px) { .sortable-simple-fields, .sortable-simple-fields.has-credential-link { grid-template-columns: 1fr; } }

.sortable-row.repeating-row.has-credential-link .credential-link-field { grid-column: 1 / -1; grid-row: auto; }
.sortable-row.repeating-row .sortable-action-buttons > button { grid-column: auto; grid-row: auto; }

@media (max-width: 820px), (max-width: 900px) and (max-height: 500px) {
  .sortable-simple-fields, .sortable-simple-fields.has-credential-link { grid-template-columns: minmax(160px, .7fr) minmax(0, 1fr); }
}
@media (max-width: 520px) { .sortable-simple-fields, .sortable-simple-fields.has-credential-link { grid-template-columns: minmax(0, 1fr); } }
