/* リセット・共通スタイル */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 11pt;
  height: 100%;
  color: #000;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* 全体レイアウト */
.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.left {
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 0;
  overflow-y: auto;
  width: 50%;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
}

.left::-webkit-scrollbar {
  width: 8px;
}

.left::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.left::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
  border: 2px solid #f0f0f0;
}

.right {
  /* Modern Background */
  background-color: #f0f4f8;
  background-image:
    radial-gradient(at 10% 10%, hsla(210, 100%, 96%, 1) 0px, transparent 50%),
    radial-gradient(at 90% 90%, hsla(180, 100%, 96%, 1) 0px, transparent 50%);
  overflow-x: auto;
  width: 50%;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

/* ズームコントロール */
.zoom-controls {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  user-select: none;
  align-self: center;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #2cddb4;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  line-height: 1;
}

.zoom-btn:hover {
  background: #20b2aa;
  transform: scale(1.1);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-level {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  min-width: 45px;
  text-align: center;
}

/* ヘッダー */
.header-left {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  border-bottom: 1px solid #eaeaea;
  padding: 16px 24px;
  margin-bottom: 30px;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-branding {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-home-link {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.brand-home-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(44, 221, 180, 0.28);
}

.brand-home-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 130;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.brand-home-link:hover .brand-home-tooltip,
.brand-home-link:focus-visible .brand-home-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.header-left h1 {
  padding: 0;
  margin: 0;
  line-height: 1.1;
}

.header-left .smart {
  color: #333;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 28px;
}

.header-left .dash {
  font-family: sans-serif;
  font-size: 28px;
  margin: 0 5px;
  color: #ccc;
}

.header-left .cv {
  color: #2cddb4;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 28px;
}

.header-left h2 {
  font-size: 13px;
  color: #64748b;
  padding: 0;
  margin: 0;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #9fe8d7;
  background: #effcf8;
  color: #0f766e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.05);
}

.back-link:hover {
  background: #dcf9f1;
  border-color: #67d8bd;
  color: #0b5f58;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 118, 110, 0.1);
}

.save-status-banner {
  margin: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(4px);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #334155;
  transition: all 0.3s ease;
}

.save-status-banner:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.save-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.save-status-label {
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.save-status-value {
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.save-status-banner[data-state="saved"] .save-status-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.save-status-banner[data-state="saving"] .save-status-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.save-status-banner[data-state="dirty"] .save-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.header-subtitle-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.access-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.access-state-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.access-state-label {
  display: none;
}

.access-state-value {
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.access-state-badge[data-role="owner"] {
  background: rgba(44, 221, 180, 0.1);
  color: #0b8e73;
  border-color: rgba(44, 221, 180, 0.2);
}
.access-state-badge[data-role="owner"]::before {
  content: '👑';
  font-size: 11px;
}

.access-state-badge[data-role="editor"] {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
}
.access-state-badge[data-role="editor"]::before {
  content: '✏️';
  font-size: 11px;
}

.access-state-badge[data-role="viewer"] {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.2);
}
.access-state-badge[data-role="viewer"]::before {
  content: '👁️';
  font-size: 11px;
}

/* 選択ガイドのテーブル */
.choice-box {
  border: none;
  margin: 0 auto;
  margin-top: 30px;
  text-align: center;
  font-size: 16px;
  color: #555;
  width: 90%;
  background-color: transparent;
}

.first-box,
.second-box {
  border: none;
  margin: 20px auto;
  width: 90%;
  padding: 15px;
  text-align: center;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #00baa3;
  background-color: #e0fbf7;
  box-shadow: 0 2px 4px rgba(0, 186, 163, 0.1);
}

/* アップロード */
.upload-wrapper {
  margin-bottom: 30px;
  margin-left: 0;
  text-align: center;
  padding: 0 40px;
}

.upload-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #4a5568;
  text-align: left;
}

.upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 30px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  height: auto;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: #f8fafc;
  box-sizing: border-box;
}

.upload-text {
  color: #718096;
  font-size: 0.9rem;
  margin-top: 10px;
}

.upload-area:hover {
  border-color: #2cddb4;
  background-color: #f0fdfa;
}

/* セクション見出し */
.section-title {
  margin-top: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #2cddb4;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #2d3748;
  letter-spacing: 0.05em;
  margin-left: 40px;
  margin-right: 40px;
}

/* フォーム関連 */
.form-group {
  margin: 30px 0 0 0;
  font-size: 16px;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 40px;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #4a5568;
}

input[type="text"],
textarea,
select {
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: #f7fafc;
  color: #2d3748;
  margin-bottom: 5px;
  width: 100%;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: #2cddb4;
  box-shadow: 0 0 0 3px rgba(44, 221, 180, 0.15);
  outline: none;
  background-color: #fff;
}

.simple-textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 20px;
  transition: all 0.2s;
  outline: none;
  margin-left: 40px;
  margin-right: 40px;
  width: calc(100% - 80px);
  box-sizing: border-box;
}

.simple-textarea:focus {
  border-color: #2cddb4;
  box-shadow: 0 0 0 3px rgba(44, 221, 180, 0.15);
}

#char-counter {
  margin-left: 40px;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

#career-container,
#license-container,
#lang-container {
  padding: 0 40px;
}

/* ボタン */
.btn-group {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  padding: 0 40px;
}

.btn-group button {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
  color: #fff;
}

#download-pdf {
  padding: 15px 40px !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(44, 221, 180, 0.3);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2cddb4 0%, #20b2aa 100%);
  color: #fff;
  border: none;
  transition: all 0.2s;
}

#download-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(44, 221, 180, 0.4);
}

/* 追加・削除ボタン */
#add-career-row,
#add-license-row,
#add-lang-row {
  background-color: #3182ce;
}

#add-career-row:hover,
#add-license-row:hover,
#add-lang-row:hover {
  background-color: #2b6cb0;
}

#remove-career-row,
#remove-license-row,
#remove-lang-row {
  background-color: #e53e3e;
}

#remove-career-row:hover,
#remove-license-row:hover,
#remove-lang-row:hover {
  background-color: #c53030;
}

/* プレビュー (A4固定) */
.resume-pages-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: max-content;
  margin: 0;
}

.resume-page {
  width: 210mm;
  height: 297mm;
  /* A4縦 */
  margin: 0 auto;
  padding: 10mm;
  box-sizing: border-box;
  background: #fff;

  /* Modern Shadow for "Paper" effect */
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.11),
    0 2px 2px rgba(0, 0, 0, 0.11),
    0 4px 4px rgba(0, 0, 0, 0.11),
    0 8px 8px rgba(0, 0, 0, 0.11),
    0 16px 16px rgba(0, 0, 0, 0.11),
    0 32px 32px rgba(0, 0, 0, 0.11);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.resume-page:hover {
  transform: translateY(-2px);
}

@media print {
  .right {
    background: none;
    padding: 0;
    display: block;
  }

  .resume-page {
    margin: 0;
    box-shadow: none;
    width: 100%;
    page-break-after: always;
  }

  .resume-page:last-child {
    page-break-after: auto;
  }
}

/* タイトル */
.preview-title {
  text-align: center;
  font-size: 16pt;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}

.top-right {
  text-align: right;
  margin-bottom: 10px;
}

/* セクションタイトル */
.preview-section-title {
  font-weight: bold;
  font-size: 12pt;
  margin: 10px 0 5px;
  text-decoration: underline;
}

/* 職務要約部分 */
.summary-block {
  width: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

#input-summary {
  overflow: hidden;
  resize: none;
}

/* 免許・資格テーブル */
.license-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0px;
}

.license-table th {
  border: 1px solid #000;
  padding: 2px;
  text-align: center;
  vertical-align: middle;
}

.license-table td {
  border: 1px solid #000;
  padding: 2px;
  text-align: center;
  vertical-align: middle;
}

/* 語学テーブル */
.lang-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0px;
}

.lang-table th {
  border: 1px solid #000;
  padding: 2px;
  text-align: center;
  vertical-align: middle;
  width: 15mm;
}

.lang-table td {
  border: 1px solid #000;
  padding: 2px;
  text-align: center;
  vertical-align: middle;
}

/* 追加ブロックの区切り線 */
#career-container .sub-section,
#license-container .sub-section,
#lang-container .sub-section {
  border-top: 1px solid #000;
  margin-top: 10px;
  padding-top: 10px;
  margin-bottom: 10px;
}

/* 「期間／業務内容」テーブル */
.career-format-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.career-format-table th,
.career-format-table td {
  border: 1px solid #000;
  padding: 8px;
  vertical-align: top;
  word-wrap: break-word;
}

/* ▼ ヘッダー行をグレーにする ▼ */
.career-format-table thead th {
  background-color: #D9D9D9;
}

/* 保存/再編集 */
.storage-controls {
  margin-top: 12px;
  padding: 0 40px 40px;
}

.storage-title-input {
  width: 100%;
  height: 40px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background-color: #fff;
}

.storage-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.overwrite-target-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.overwrite-target-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.overwrite-target-value {
  flex: 1;
  min-width: 180px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
}

.overwrite-target-change-btn {
  min-width: 84px;
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
}

.storage-btn {
  border: none;
  border-radius: 8px;
  height: 38px;
  min-width: 112px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.storage-btn-primary {
  background: #2cddb4;
  color: #fff;
}

.storage-btn-primary:hover {
  background: #20b2aa;
}

.storage-btn-secondary {
  background: #e8eef7;
  color: #2d3748;
}

.storage-btn-secondary:hover {
  background: #d8e3f2;
}

.storage-modal[hidden] {
  display: none;
}

.storage-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storage-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.storage-modal-panel {
  position: relative;
  width: min(860px, 92vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.storage-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.storage-modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.storage-close-btn {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #4b5563;
}

.storage-list {
  padding: 14px 16px 16px;
  overflow: auto;
}

.storage-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
}

.storage-item + .storage-item {
  margin-top: 10px;
}

.storage-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.storage-item-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

.share-link-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #30363d;
  border-radius: 10px;
  background: #161b22;
  padding: 4px;
}

.share-link-url {
  flex: 1;
  min-width: 0;
  color: #c9d1d9;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.share-link-copy-btn {
  border: 1px solid #30363d;
  border-radius: 8px;
  height: 30px;
  padding: 0 12px;
  background: #0d1117;
  color: #f0f6fc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.share-link-copy-btn:hover {
  background: #1f2937;
}

.share-link-copy-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.storage-item-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.share-inline-control {
  display: inline-flex;
  align-items: center;
  height: 32px;
  min-width: 360px;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.share-inline-url {
  width: 340px;
  max-width: 52vw;
  border: none;
  outline: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0 10px;
}

.share-inline-copy-btn {
  border: none;
  border-left: 1px solid #d1d5db;
  height: 100%;
  padding: 0 12px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.share-inline-copy-btn:hover {
  background: #f3f4f6;
}

.share-inline-copy-btn:disabled {
  color: #6b7280;
  cursor: default;
}

.share-manage-control {
  display: contents;
}

.share-manage-toggle-btn {
  align-self: flex-start;
}

.share-manage-panel {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-basis: 100%;
  width: 100%;
  order: 1000;
}

.share-manage-panel[hidden] {
  display: none;
}

.share-manage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-manage-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1f2937;
}

.share-manage-expiry {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  background: #fff;
}

.share-manage-fixed-expiry {
  font-size: 12px;
  color: #334155;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
}

.share-manage-status {
  font-size: 12px;
  color: #475569;
}

.storage-item-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 7px;
  height: 32px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.storage-item-btn:hover {
  background: #f3f4f6;
}

.storage-item-btn-danger {
  border-color: #f0b6b6;
  color: #b91c1c;
  background: #fff5f5;
}

.storage-item-btn-danger:hover {
  background: #ffe9e9;
}

.storage-empty {
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 900px) {
  .share-inline-control {
    min-width: 0;
    width: 100%;
  }

  .share-inline-url {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left,
  .right {
    width: 100%;
    max-height: none;
  }

  .left {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    overflow-y: visible;
  }

  .right {
    padding: 20px 12px 28px;
    overflow-x: auto;
    overflow-y: auto;
  }

  .zoom-controls {
    top: 8px;
  }
}

@media (max-width: 768px) {
  .header-left {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 12px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .form-row,
  .form-group,
  .upload-wrapper,
  .btn-group,
  .storage-controls,
  #career-container,
  #license-container,
  #lang-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title,
  #char-counter {
    margin-left: 16px;
    margin-right: 16px;
  }

  .simple-textarea {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

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

  .storage-btn {
    width: 100%;
  }
}
