/* Extracted from jobs-company/index.html <style> */
    /* Page-specific styles */
    .jobs-page {
      max-width: 900px;
      margin: 0 auto;
      padding: 20px;
    }

    #submit-confirm-modal .modal-header h3 {
      font-size: 1.05rem;
    }

    #submit-confirm-modal .modal-body p {
      font-size: 0.875rem;
      line-height: 1.5;
      margin: 0 0 8px 0;
    }

    #submit-confirm-modal .apply-company-fields {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #e0e0e0;
    }

    #submit-confirm-modal .apply-company-fields label {
      display: block;
      font-size: 0.8rem;
      margin-bottom: 4px;
      color: #444;
    }

    #submit-confirm-modal .apply-company-fields label .required {
      color: #dc3545;
      margin-left: 4px;
    }

    #submit-confirm-modal .apply-company-fields input {
      width: 100%;
      box-sizing: border-box;
      padding: 8px;
      margin-bottom: 4px;
      font-size: 0.875rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    #submit-confirm-modal .apply-company-fields input.apply-field-invalid {
      border-color: #dc3545;
    }

    #submit-confirm-modal .apply-company-fields .apply-field-error {
      min-height: 1.1em;
      font-size: 0.75rem;
      color: #dc3545;
      margin: 0 0 10px 0;
      line-height: 1.35;
    }

    .job-form-section {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 24px;
      margin-bottom: 24px;
    }

    .job-form-section h2 {
      margin-top: 0;
      margin-bottom: 20px;
      font-size: 1.25rem;
      border-bottom: 2px solid var(--color-primary);
      padding-bottom: 8px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 6px;
      color: #333;
    }

    .form-group label .required {
      color: #dc3545;
      margin-left: 4px;
    }

    .form-group .label-like {
      display: block;
      font-weight: 600;
      margin-bottom: 6px;
      color: #333;
    }

    .form-group .label-like .required {
      color: #dc3545;
      margin-left: 4px;
    }

    .input-with-suffix {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .input-with-suffix input[type="number"] {
      width: 120px;
      flex: 0 0 auto;
    }

    .input-suffix-unit {
      color: #666;
      font-weight: 600;
      white-space: nowrap;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group textarea,
    .form-group select {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
      box-sizing: border-box;
    }

    .form-group textarea {
      min-height: 120px;
      resize: vertical;
    }

    .form-hint {
      font-size: 0.85rem;
      color: #666;
      margin-top: 6px;
    }

    .job-company-name-change-link-wrap {
      margin-top: 4px;
    }

    .job-company-name-change-link {
      color: #2563eb;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .job-company-name-change-link:hover {
      color: #1d4ed8;
    }

    .checkbox-group {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .checkbox-option {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 500;
      color: #333;
    }

    .checkbox-option input[type="checkbox"] {
      width: auto;
      margin: 0;
    }

    .form-row {
      display: flex;
      gap: 16px;
    }

    .form-row .form-group {
      flex: 1;
    }

    .rate-range {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .rate-range input {
      width: 120px;
    }

    .rate-range span {
      color: #666;
    }

    /* Skill requirements editor */
    .skill-editor {
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 16px;
    }

    .skill-editor h3 {
      margin: 0 0 12px 0;
      font-size: 1rem;
      color: #333;
    }

    .skill-editor h3 .badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-left: 8px;
    }

    .skill-editor h3 .badge.required {
      background: #dc3545;
      color: white;
    }

    .skill-editor h3 .badge.preferred {
      background: #28a745;
      color: white;
    }

    .skill-list {
      min-height: 60px;
      background: #f8f9fa;
      border-radius: 6px;
      padding: 8px;
      margin-bottom: 12px;
    }

    .skill-list:empty::before {
      content: 'スキルを追加してください';
      color: #999;
      font-size: 0.875rem;
      display: block;
      text-align: center;
      padding: 16px;
    }

    .skill-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      margin-bottom: 8px;
    }

    .skill-item:last-child {
      margin-bottom: 0;
    }

    .skill-item .skill-info {
      flex: 1;
    }

    .skill-item .skill-name {
      font-weight: 600;
      color: #333;
    }

    .skill-item .skill-category {
      font-size: 0.75rem;
      color: #666;
    }

    .skill-item .skill-id {
      font-size: 0.75rem;
      color: #999;
      font-family: monospace;
    }

    .skill-item .skill-params {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .skill-item .skill-params label {
      font-size: 0.75rem;
      color: #666;
    }

    .skill-item .skill-params input,
    .skill-item .skill-params select {
      padding: 4px 8px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 0.875rem;
      width: 70px;
    }

    .skill-item .remove-btn {
      padding: 4px 8px;
      background: #dc3545;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .skill-search-container {
      position: relative;
    }

    .skill-search-input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 0.875rem;
    }

    .skill-search-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      max-height: 300px;
      overflow-y: auto;
      background: white;
      border: 1px solid #ccc;
      border-top: none;
      border-radius: 0 0 6px 6px;
      z-index: 100;
      display: none;
    }

    .skill-search-results.show {
      display: block;
    }

    .skill-search-item {
      padding: 10px 12px;
      cursor: pointer;
      border-bottom: 1px solid #eee;
    }

    .skill-search-item.is-empty {
      color: #999;
      cursor: default;
    }

    .skill-search-item:last-child {
      border-bottom: none;
    }

    .skill-search-item:hover {
      background: #f0f7ff;
    }

    .skill-search-item .item-name {
      font-weight: 600;
      color: #333;
    }

    .skill-search-item .item-category {
      font-size: 0.75rem;
      color: #666;
    }

    .skill-search-item .item-id {
      font-size: 0.75rem;
      color: #999;
      font-family: monospace;
    }

    /* Qualification editor */
    .qual-editor {
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 16px;
    }

    .qual-editor h3 {
      margin: 0 0 12px 0;
      font-size: 1rem;
    }

    .qual-list {
      min-height: 60px;
      background: #f8f9fa;
      border-radius: 6px;
      padding: 8px;
      margin-bottom: 12px;
    }

    .qual-list:empty::before {
      content: '資格を追加してください';
      color: #999;
      font-size: 0.875rem;
      display: block;
      text-align: center;
      padding: 16px;
    }

    .qual-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      margin-bottom: 8px;
    }

    .qual-item:last-child {
      margin-bottom: 0;
    }

    .qual-item .qual-info {
      flex: 1;
    }

    .qual-item .qual-name {
      font-weight: 600;
      color: #333;
    }

    .qual-item .qual-id {
      font-size: 0.75rem;
      color: #999;
      font-family: monospace;
    }

    .qual-item .qual-params select {
      padding: 4px 8px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 0.875rem;
    }

    /* Actions */
    .form-actions {
      display: flex;
      gap: 12px;
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid #e0e0e0;
    }

    .btn-primary {
      padding: 12px 24px;
      background: var(--color-primary);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
    }

    .btn-primary:hover:not(:disabled) {
      background: var(--color-primary-dark);
    }

    .btn-primary:disabled {
      background: #999;
      cursor: not-allowed;
    }

    .btn-secondary {
      padding: 12px 24px;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
    }

    .btn-secondary:disabled {
      background: #999;
      cursor: not-allowed;
    }

    /* Status */
    .job-status {
      margin-top: 16px;
      padding: 16px;
      border-radius: 6px;
      background: #f8f9fa;
    }

    .job-status.success {
      background: #e8f5e9;
      border: 1px solid #81c784;
    }

    .job-status.error {
      background: #ffebee;
      border: 1px solid #ef9a9a;
    }

    .job-status.warning {
      background: #fff8e1;
      border: 1px solid #ffcc80;
    }

    .job-status .status-title {
      font-weight: 600;
      margin-bottom: 8px;
    }

    .job-status .status-detail {
      font-size: 0.875rem;
      color: #666;
    }

    .job-status .status-detail code {
      background: #e0e0e0;
      padding: 2px 6px;
      border-radius: 4px;
      font-family: monospace;
    }

    /* Error display */
    .error-list {
      margin-top: 12px;
      padding: 12px;
      background: #fff3cd;
      border-radius: 6px;
      border: 1px solid #ffc107;
    }

    .error-list h4 {
      margin: 0 0 8px 0;
      color: #856404;
      font-size: 0.875rem;
    }

    .error-list ul {
      margin: 0;
      padding-left: 20px;
    }

    .error-list li {
      color: #856404;
      font-size: 0.875rem;
      margin-bottom: 4px;
    }

    /* Not logged in message */
    .login-required-message {
      text-align: center;
      padding: 40px;
      background: #f8f9fa;
      border-radius: 8px;
      color: #666;
    }

    .login-required-message h3 {
      margin-bottom: 12px;
      color: #333;
    }

    /* Job Listing Section (Phase5.3) */
    .job-list-section {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 24px;
      margin-bottom: 24px;
    }

    .job-list-section h2 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .job-create-choice-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .job-create-choice {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 116px;
      padding: 18px 44px 18px 18px;
      border: 1px solid #c7cee3;
      border-radius: 8px;
      background: #f6f8fd;
      color: #1f2937;
      text-align: left;
      cursor: pointer;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
      transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
    }

    .job-create-choice::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 18px;
      width: 10px;
      height: 10px;
      border-top: 2px solid var(--color-primary);
      border-right: 2px solid var(--color-primary);
      transform: translateY(-50%) rotate(45deg);
      transition: transform 0.15s ease;
    }

    .job-create-choice:hover,
    .job-create-choice:focus-visible {
      border-color: var(--color-primary);
      background: #fff;
      box-shadow: 0 10px 24px rgba(36, 39, 125, 0.18);
      transform: translateY(-1px);
      outline: none;
    }

    .job-create-choice:hover::after,
    .job-create-choice:focus-visible::after {
      transform: translateY(-50%) translateX(2px) rotate(45deg);
    }

    .job-create-choice-title {
      color: var(--color-primary);
      font-size: 1.05rem;
      font-weight: 700;
    }

    .job-create-choice-copy {
      color: #475569;
      font-size: 0.9rem;
      line-height: 1.6;
    }

    .job-import-panel {
      display: none;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid #e5e7eb;
    }

    .job-import-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid #e0e0e0;
    }

    .job-import-review-warnings {
      display: none;
      margin-top: 12px;
      padding: 14px 16px;
      border: 1px solid #f7c948;
      border-radius: 6px;
      background: #fffaf0;
      color: #5f4200;
    }

    .job-import-review-warnings h3 {
      margin: 0 0 8px;
      font-size: 1rem;
    }

    .job-import-review-warnings ul {
      margin: 0;
      padding-left: 20px;
    }

    .job-import-review-warnings li + li {
      margin-top: 8px;
    }

    .job-import-review-evidence {
      display: block;
      margin-top: 3px;
      color: #7c5d12;
      font-size: 0.88rem;
      line-height: 1.5;
    }

    @media (max-width: 640px) {
      .job-create-choice-grid {
        grid-template-columns: 1fr;
      }
    }

    .job-list-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      gap: 12px;
      flex-wrap: wrap;
    }

    .job-list-header-right {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .jobs-company-hide-closed-control {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      flex-shrink: 0;
    }

    .jobs-company-hide-closed-text {
      font-size: 0.8125rem;
      font-weight: 600;
      color: #475569;
      user-select: none;
    }

    .jobs-company-toggle {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: none;
      background: transparent;
      cursor: pointer;
      border-radius: 999px;
      flex-shrink: 0;
    }

    .jobs-company-toggle:focus-visible {
      outline: 2px solid rgba(37, 99, 235, 0.45);
      outline-offset: 3px;
    }

    .jobs-company-toggle-track {
      position: relative;
      display: block;
      width: 44px;
      height: 26px;
      border-radius: 999px;
      background: #cbd5e1;
      transition: background 0.2s ease;
    }

    .jobs-company-toggle[aria-checked='true'] .jobs-company-toggle-track {
      background: #22c55e;
    }

    .jobs-company-toggle-thumb {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
      transition: transform 0.2s ease;
    }

    .jobs-company-toggle[aria-checked='true'] .jobs-company-toggle-thumb {
      transform: translateX(18px);
    }

    .btn-new-job {
      padding: 8px 16px;
      background: var(--color-primary);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.875rem;
    }

    .job-list-loading {
      text-align: center;
      padding: 24px;
      color: #666;
    }

    .job-list-empty {
      text-align: center;
      padding: 24px;
      color: #999;
      background: #f8f9fa;
      border-radius: 6px;
    }

    .job-list-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .job-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      background: #f8f9fa;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
    }

    .job-card-info {
      flex: 1;
    }

    .job-card-title {
      font-weight: 600;
      color: #333;
      margin-bottom: 4px;
    }

    .job-card-meta {
      font-size: 0.75rem;
      color: #666;
    }

    .job-card-status {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-right: 8px;
    }

    .job-card-status.draft {
      background: #fff3cd;
      color: #856404;
    }

    .job-card-status.reviewing {
      background: #cce5ff;
      color: #004085;
    }

    .job-card-status.published {
      background: #d4edda;
      color: #155724;
    }

    .job-card-status.changes-requested {
      background: #f8d7da;
      color: #721c24;
    }

    .job-card-status.rejected {
      background: #e0e0e0;
      color: #666;
    }

    /* Phase5.7: Paused status */
    .job-card-status.paused {
      background: #ffc107;
      color: #856404;
    }

    /* Phase5.13: Pre-review draft status */
    .job-card-status.pre-review-draft {
      background: #fef3c7;
      color: #92400e;
    }

    .job-card-status.closed {
      background: #e9ecef;
      color: #495057;
    }

    /* Phase5.7: Action buttons in job cards */
    .btn-pause-job {
      padding: 6px 12px;
      background: #ffc107;
      color: #333;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-pause-job:hover {
      background: #e0a800;
    }

    .btn-resume-job {
      padding: 6px 12px;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-resume-job:hover {
      background: #218838;
    }

    /* Phase5.8: Edit-keep-public button */
    .btn-edit-keep-public {
      padding: 6px 12px;
      background: #17a2b8;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-edit-keep-public:hover {
      background: #138496;
    }

    /* Phase5.8: Edit-keep-public mode indicator */
    .form-mode-indicator.edit-keep-public {
      background: #d1ecf1;
      border-color: #17a2b8;
    }

    /* Phase5.11: Edit-with-pause button */
    .btn-edit-with-pause {
      padding: 6px 12px;
      background: #6f42c1;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-edit-with-pause:hover {
      background: #5a32a3;
    }

    /* Archive button */
    .btn-archive-job {
      padding: 6px 12px;
      background: #dc3545;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-archive-job:hover {
      background: #c82333;
    }

    /* Withdraw button */
    .btn-withdraw-job {
      padding: 6px 12px;
      background: #fd7e14;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-withdraw-job:hover {
      background: #e96b02;
    }

    /* Danger button for modal */
    .btn-modal-confirm.btn-danger {
      background: #dc3545;
    }

    .btn-modal-confirm.btn-danger:hover {
      background: #c82333;
    }

    /* Phase5.11: Edit-with-pause mode indicator */
    .form-mode-indicator.edit-with-pause {
      background: #e2d9f3;
      border-color: #6f42c1;
    }

    /* Phase5.6: Reason display in job cards */
    .job-card-reason {
      margin-top: 8px;
      padding: 8px 12px;
      background: #fff3cd;
      border: 1px solid #ffc107;
      border-radius: 4px;
      font-size: 0.875rem;
      color: #856404;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .job-card-reason.rejected {
      background: #f8d7da;
      border-color: #f5c6cb;
      color: #721c24;
    }

    .job-card-reason-label {
      font-weight: 600;
    }

    /* Phase5.6: Reason banner in edit mode */
    .reason-banner {
      padding: 12px 16px;
      background: #fff3cd;
      border: 1px solid #ffc107;
      border-radius: 6px;
      margin-bottom: 16px;
      color: #856404;
    }

    .reason-banner-label {
      font-weight: 600;
      margin-right: 8px;
    }

    /* 申請用メール確認バナー（/jobs-company/ 上部・コンパクト） */
    .company-email-verify-banner {
      margin-bottom: 12px;
      padding: 10px 12px;
      border-radius: 6px;
      border: 1px solid #dee2e6;
      background: #f8f9fa;
      color: #495057;
      font-size: 0.88rem;
      line-height: 1.45;
    }

    .company-email-verify-banner-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 12px;
      justify-content: space-between;
    }

    .company-email-verify-banner-msg {
      flex: 1 1 220px;
      min-width: 0;
    }

    .company-email-verify-banner-msg .mono-email {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 0.82rem;
      word-break: break-all;
    }

    .btn-company-email-verify-resend {
      padding: 6px 10px;
      font-size: 0.8rem;
      border-radius: 4px;
      border: 1px solid #adb5bd;
      background: #fff;
      cursor: pointer;
      color: #212529;
      white-space: nowrap;
    }

    .btn-company-email-verify-resend:hover:not(:disabled) {
      background: #e9ecef;
    }

    .company-email-verify-banner-msg .company-email-verify-banner-arrival-note {
      display: block;
      margin-top: 0.5rem;
      font-size: 0.8125rem;
      font-weight: normal;
      color: #5c636a;
      line-height: 1.45;
    }

    .btn-company-email-verify-resend:disabled {
      opacity: 0.65;
      cursor: default;
    }

    .job-card-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .btn-job-close {
      padding: 6px 12px;
      background: #6c757d;
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-job-close:hover {
      background: #5a6268;
    }

    .btn-job-duplicate {
      padding: 6px 12px;
      background: #eef2ff;
      color: #3730a3;
      border: 1px solid #c7d2fe;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-job-duplicate:hover {
      background: #e0e7ff;
    }

    .btn-edit-job {
      padding: 6px 12px;
      background: #6c757d;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
    }

    .btn-edit-job:hover {
      background: #5a6268;
    }

    /* Form mode indicator */
    .form-mode-indicator {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: #e3f2fd;
      border: 1px solid #90caf9;
      border-radius: 6px;
      margin-bottom: 16px;
    }

    .form-mode-indicator .mode-text {
      flex: 1;
      font-weight: 600;
    }

    /* Phase5.4: Job Preview Section */
    .job-preview-section {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 24px;
      margin-bottom: 24px;
    }

    .job-preview-section h2 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 1.25rem;
      border-bottom: 2px solid #17a2b8;
      padding-bottom: 8px;
      color: #17a2b8;
    }

    .preview-content {
      background: #f8f9fa;
      border-radius: 6px;
      padding: 20px;
    }
    .preview-surface {
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 16px;
    }
    .preview-surface + .preview-surface {
      margin-top: 16px;
    }
    .preview-public-embed--list .job-item,
    .preview-public-embed--detail .job-detail-card {
      border: none;
      background: transparent;
      padding: 0;
      box-shadow: none;
    }
    .preview-surface-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .preview-surface-title {
      margin: 0;
      font-size: 1rem;
      color: #0f172a;
    }
    .preview-surface-note {
      font-size: 0.8rem;
      color: #64748b;
    }

    .preview-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: #333;
      margin-bottom: 12px;
    }

    .preview-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 16px;
      font-size: 0.875rem;
      color: #666;
    }

    .preview-meta-item {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .preview-meta-label {
      font-weight: 600;
      color: #333;
    }

    .preview-description {
      white-space: pre-wrap;
      line-height: 1.6;
      color: #333;
      margin-bottom: 20px;
      padding: 12px;
      background: white;
      border-radius: 4px;
      border: 1px solid #e0e0e0;
    }

    .preview-skills-section {
      margin-bottom: 16px;
    }

    .preview-skills-section h4 {
      margin: 0 0 8px 0;
      font-size: 0.875rem;
      color: #333;
    }

    .preview-skill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .preview-feature-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }

    .preview-skill-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 16px;
      font-size: 0.75rem;
    }

    .preview-skill-tag.required {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }

    .preview-skill-tag.preferred {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }

    .preview-skill-detail {
      font-size: 0.7rem;
      opacity: 0.8;
    }

    .preview-qual-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 16px;
      font-size: 0.75rem;
      background: #e2e3e5;
      color: #383d41;
      border: 1px solid #d6d8db;
    }

    .preview-qual-tag.required {
      background: #fff3cd;
      color: #856404;
      border: 1px solid #ffeeba;
    }

    .preview-empty {
      text-align: center;
      padding: 24px;
      color: #999;
      font-style: italic;
    }


    .skillset-select-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .skillset-select-row select {
      flex: 1;
      min-width: 0;
    }

    .skillset-select-row .btn {
      flex-shrink: 0;
      white-space: nowrap;
    }

    .skillset-edit-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .skillset-edit-btn-label {
      line-height: 1.2;
    }

    .skillset-edit-btn-icon {
      flex-shrink: 0;
    }

    .skillset-summary {
      margin-top: 12px;
      padding: 12px;
      background: #f8f9fa;
      border: 1px solid #e9ecef;
      border-radius: 8px;
    }

    .skillset-summary-title {
      font-size: 0.875rem;
      font-weight: 600;
      color: #333;
      margin: 0 0 10px 0;
    }

    .skillset-summary-group {
      margin-bottom: 10px;
    }

    .skillset-summary-group:last-child {
      margin-bottom: 0;
    }

    .skillset-summary-group-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: #666;
      margin-bottom: 6px;
    }

    .skillset-summary-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .skillset-summary-empty {
      font-size: 0.85rem;
      color: #64748b;
      margin: 0;
    }

    .preview-skill-tag.inexperienced {
      background: #e2e3e5;
      color: #383d41;
      border: 1px solid #d6d8db;
    }
    .preview-list-card {
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 16px;
      background: #fff;
    }
    .preview-list-card .preview-title {
      font-size: 1.15rem;
      margin-bottom: 10px;
    }
    .preview-match-block {
      margin-top: 14px;
    }
    .preview-match-title {
      font-size: 0.85rem;
      font-weight: 700;
      color: #334155;
      margin-bottom: 6px;
    }
    .preview-match-note {
      font-size: 0.85rem;
      color: #64748b;
      margin-bottom: 8px;
    }
    .preview-section-block {
      margin-top: 16px;
    }
    .preview-section-block h4 {
      margin: 0 0 8px;
      color: #0f172a;
      font-size: 0.95rem;
    }

    .preview-note {
      margin-top: 10px;
      color: #475569;
      white-space: pre-wrap;
      line-height: 1.6;
    }

    /* Phase5.4: Job Diff Section */
    .job-diff-section {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 24px;
      margin-bottom: 24px;
    }

    .job-diff-section h2 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 1.25rem;
      border-bottom: 2px solid #fd7e14;
      padding-bottom: 8px;
      color: #fd7e14;
    }

    .diff-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 16px;
      padding: 12px;
      background: #fff8e1;
      border-radius: 6px;
      border: 1px solid #ffecb3;
    }

    .diff-summary-item {
      font-size: 0.875rem;
      padding: 4px 10px;
      border-radius: 4px;
      background: white;
    }

    .diff-summary-item.added {
      color: #155724;
      border: 1px solid #c3e6cb;
    }

    .diff-summary-item.removed {
      color: #721c24;
      border: 1px solid #f5c6cb;
    }

    .diff-summary-item.changed {
      color: #856404;
      border: 1px solid #ffeeba;
    }

    .diff-no-changes {
      text-align: center;
      padding: 16px;
      color: #28a745;
      background: #d4edda;
      border-radius: 6px;
    }

    .diff-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .diff-item {
      padding: 12px;
      background: #f8f9fa;
      border-radius: 6px;
      border-left: 4px solid #fd7e14;
    }

    .diff-item-label {
      font-weight: 600;
      font-size: 0.875rem;
      color: #333;
      margin-bottom: 8px;
    }

    .diff-item-values {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      font-size: 0.875rem;
    }

    .diff-old-value {
      padding: 4px 8px;
      background: #f8d7da;
      color: #721c24;
      border-radius: 4px;
      text-decoration: line-through;
    }

    .diff-arrow {
      color: #666;
    }

    .diff-new-value {
      padding: 4px 8px;
      background: #d4edda;
      color: #155724;
      border-radius: 4px;
    }

    .diff-skill-changes {
      margin-top: 8px;
    }

    .diff-skill-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 0;
      font-size: 0.8rem;
    }

    .diff-skill-item.added::before {
      content: '+';
      color: #28a745;
      font-weight: bold;
    }

    .diff-skill-item.removed::before {
      content: '−';
      color: #dc3545;
      font-weight: bold;
    }

    .diff-skill-item.changed::before {
      content: '△';
      color: #fd7e14;
      font-weight: bold;
    }

    .diff-description-preview {
      max-height: 60px;
      overflow: hidden;
      position: relative;
    }

    .diff-description-preview.expanded {
      max-height: none;
    }

    .diff-expand-btn {
      display: block;
      margin-top: 4px;
      padding: 2px 8px;
      background: none;
      border: none;
      color: var(--color-primary);
      cursor: pointer;
      font-size: 0.75rem;
    }

    /* Phase5.4: Confirm Modal */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }

    .modal-overlay.show {
      display: flex;
    }

    .modal-content {
      background: white;
      border-radius: 8px;
      padding: 24px;
      max-width: 500px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
    }

    .modal-header {
      margin-bottom: 16px;
    }

    .modal-header h3 {
      margin: 0;
      font-size: 1.25rem;
      color: #333;
    }

    .modal-body {
      margin-bottom: 20px;
    }

    .modal-body p {
      margin: 0 0 12px 0;
      color: #666;
    }


    .modal-actions {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .btn-modal-cancel {
      padding: 10px 20px;
      background: #6c757d;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.875rem;
    }

    .btn-modal-confirm {
      padding: 10px 20px;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
    }

    .btn-modal-confirm:disabled {
      background: #9aa0a6;
      cursor: not-allowed;
      opacity: 1;
    }

    /* UX改善: 必須漏れ項目の赤枠表示 */
    .field-error input,
    .field-error select,
    .field-error textarea {
      border-color: #dc3545 !important;
      box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
    }

    .field-error label {
      color: #dc3545;
    }

    .field-error-message {
      color: #dc3545;
      font-size: 0.875rem;
      margin-top: 4px;
    }

/* Extracted from jobs-company/index.html style attributes */
.csp-jobs-company-1 {
  display: none;
}
.csp-jobs-company-2 {
  align-items: center;
}
.csp-jobs-company-3 {
  flex: 1;
}
.csp-jobs-company-4 {
  margin-top: 16px;
}
.csp-jobs-company-5 {
  font-size:0.85rem;
  color:#555;
  margin-bottom:8px;
}
.csp-jobs-company-6 {
  margin-top: 8px;
  color: #666;
  font-size: 0.9em;
}
.csp-jobs-company-7 {
  font-size: 0.875rem;
  color: #666;
  margin-top: 8px;
}
.csp-jobs-company-8 {
  font-size: 0.875rem;
  color: #666;
  margin-top: 10px;
}
.csp-jobs-company-9 {
  margin-bottom: 10px;
}
.csp-jobs-company-10 {
  font-size: 0.875rem;
  color: #666;
}
