/* ============================================================================
 *  cv-access-style — extraido do index.html em 14/08/2026.
 *
 *  Nao e estilo novo: e o bloco <style id="cv-access-style"> que morava dentro do index.html,
 *  movido para fora SEM UMA LINHA ALTERADA (45,726 bytes). 
 *
 *  ⚠️ A TAG <link> FICOU NA MESMA POSICAO do <style> original. A cascata do CSS
 *  depende da ORDEM no documento: mover a tag muda qual regra vence, mesmo com
 *  o conteudo identico.
 *
 *  ⚠️ Se um dia entrar url(...) com caminho RELATIVO aqui, ele passa a resolver
 *  contra ESTE arquivo (assets/), e nao contra o documento — a mesma armadilha
 *  que o import() causou na primeira extracao de script. Medido em 14/08: os 13
 *  blocos <style> tinham ZERO url() relativo e ZERO @import.
 * ============================================================================ */

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .cv-toolbar-center {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }

  .cv-mode-switch {
    grid-column: 1;
    justify-self: start;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 42px;
    padding: 4px;
    border: 1px solid rgba(16, 38, 78, 0.16);
    border-radius: 11px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 8px 18px rgba(16, 28, 53, 0.10);
  }

  .cv-mode-option,
  .cv-mode-option:hover,
  .cv-mode-option:active,
  .cv-mode-option:focus {
    min-width: 92px;
    min-height: 32px;
    border: 0 !important;
    border-radius: 8px;
    padding: 7px 14px !important;
    background: transparent !important;
    color: #18335f !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 900;
    transform: none !important;
    opacity: 1 !important;
  }

  .cv-mode-option.is-active,
  .cv-mode-option[aria-pressed="true"] {
    background: linear-gradient(135deg, #102b57 0%, #173f75 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(16, 43, 87, 0.24) !important;
  }

  .cv-profile-area {
    position: relative;
    grid-column: 3;
    justify-self: end;
    display: grid;
    justify-items: end;
  }

.cv-profile-chip,
.cv-profile-chip:hover,
.cv-profile-chip:focus {
    position: relative;
    display: inline-grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 40px;
    max-width: 248px;
    min-width: 150px;
    border: 1px solid rgba(16, 38, 78, 0.16) !important;
    border-radius: 999px;
    padding: 5px 10px 5px 6px !important;
    background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.26), transparent 26%), linear-gradient(135deg, #082b70 0%, #0962a6 48%, #1e8fb0 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(8, 31, 63, 0.28) !important;
  transform: none !important;
  overflow: hidden;
  opacity: 1 !important;
}

.cv-profile-chip:hover {
  border-color: rgba(16, 43, 87, 0.32) !important;
  box-shadow: 0 10px 22px rgba(16, 28, 53, 0.16) !important;
}

.cv-profile-chip:hover,
.cv-profile-chip:focus-visible,
.cv-profile-chip:focus,
.cv-profile-chip:active {
  transform: translateY(-1px) !important;
  filter: saturate(1.05) !important;
  box-shadow: 0 14px 28px rgba(16, 28, 53, .28) !important;
  border-color: rgba(16, 43, 87, 0.32) !important;
}

.cv-profile-menu button:hover,
.cv-profile-menu button:focus,
.cv-profile-menu button:focus-visible,
.cv-profile-menu button:active {
  background: #edf4ff !important;
  color: #0d1f4c !important;
  outline: none !important;
  transform: none !important;
  box-shadow: none !important;
}

  .cv-profile-menu[hidden] {
    display: none !important;
  }

  .cv-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1180;
    width: 230px;
    display: grid;
    gap: 5px;
    padding: 8px;
    border: 1px solid rgba(16, 38, 78, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 18px 42px rgba(9, 23, 44, 0.20);
  }

  .cv-profile-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    border-left: 1px solid rgba(16, 38, 78, 0.12);
    border-top: 1px solid rgba(16, 38, 78, 0.12);
    background: #ffffff;
  }

  .cv-profile-menu button {
    position: relative;
    z-index: 1;
    min-height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0 !important;
    border-radius: 11px;
    padding: 8px 10px !important;
    background: transparent !important;
    color: #102b57 !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 950;
    text-align: left;
  }

  .cv-profile-menu-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #243b67 0%, #101c35 100%);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }

  .cv-profile-menu-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cv-profile-menu button:hover,
  .cv-profile-menu button:focus,
  .cv-profile-menu button:focus-visible,
  .cv-profile-menu button:active {
    background: #edf4ff !important;
    outline: none;
  }

  .cv-profile-menu .cv-profile-menu-danger {
    color: #7a2830 !important;
  }

  .cv-profile-menu .cv-profile-menu-icon-danger {
    background: linear-gradient(135deg, #934044 0%, #6f292c 100%);
  }

  .cv-tour-overlay[hidden] {
    display: none !important;
  }

  .cv-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 1380;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(9, 23, 44, 0.48);
    backdrop-filter: blur(5px);
  }

  .cv-tour-card {
    width: min(760px, calc(100vw - 30px));
    max-height: calc(100vh - 44px);
    overflow: auto;
    border: 1px solid rgba(10, 39, 82, 0.14);
    border-radius: 20px;
    padding: 20px;
    background: radial-gradient(circle at 10% 0%, rgba(31, 111, 143, 0.12), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0b1d3a;
    box-shadow: 0 24px 64px rgba(9, 23, 44, 0.28);
  }

  .cv-tour-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8e1ef;
  }

  .cv-tour-title {
    display: grid;
    gap: 4px;
    font-size: 18px;
    font-weight: 950;
    color: #0b1d3a;
  }

  .cv-tour-title small {
    color: #526783;
    font-size: 12px;
    font-weight: 850;
  }

  .cv-tour-close {
    border: 1px solid rgba(16, 38, 78, 0.20) !important;
    border-radius: 12px;
    background: #ffffff !important;
    color: #102b57 !important;
    padding: 8px 13px !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 900;
  }

  .cv-tour-intro {
    margin: 14px 0 12px;
    color: #253b5d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
  }

  .cv-tour-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cv-tour-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid #d9e4f2;
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
  }

  .cv-tour-step-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f6f8f 0%, #12335e 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
  }

  .cv-tour-step strong {
    display: block;
    margin-bottom: 3px;
    color: #102b57;
    font-size: 13px;
    font-weight: 950;
  }

  .cv-tour-step span {
    color: #526783;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
  }

  .cv-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d8e1ef;
  }

  .cv-tour-skip-toggle {
    max-width: 420px;
    margin: 0;
  }

  @media (max-width: 760px) {
    .cv-tour-steps {
      grid-template-columns: 1fr;
    }
  }

  .cv-profile-avatar,
  .cv-profile-preview-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #12325f 0%, #2d86a8 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  }

  .cv-profile-avatar img,
  .cv-profile-preview-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
    background: #12325f;
  }

  .cv-profile-chip .cv-profile-avatar {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    font-size: 9px;
    background: radial-gradient(circle at 35% 25%, #174dff 0%, #0b2caf 54%, #071e86 100%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.42),
      0 0 0 2px #ffffff,
      0 2px 6px rgba(16, 28, 53, 0.18);
  }

  .cv-profile-chip .cv-profile-avatar:not(:has(img)) {
    box-sizing: border-box;
    padding-top: 1px;
  }

  .cv-profile-chip .cv-profile-avatar img {
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 2px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center center;
    border-radius: 50%;
    background: transparent;
  }

  #cvProfilePhotoInput[hidden] {
    display: none !important;
  }

  .cv-profile-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 1px;
    min-width: 0;
    max-width: 204px;
    text-align: left;
    line-height: 1.05;
  }

  .cv-profile-name {
    grid-column: 1;
    align-self: center;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    font-size: 10.8px;
    font-weight: 950;
    line-height: 1.08;
  }

  .cv-profile-role {
    grid-column: 2;
    align-self: center;
    justify-self: end;
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    max-width: 54px;
    min-height: 13px;
    padding: 1px 4px 0;
    border-radius: 999px;
    background: #eef3fb;
    color: #637089;
    font-size: 8.2px;
    font-weight: 900;
    line-height: 1.04;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cv-access-overlay[hidden],
  .cv-history-panel[hidden] {
    display: none !important;
  }

  .cv-access-overlay {
    position: fixed;
    inset: 0;
    z-index: 1320;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(9, 23, 44, 0.46);
    backdrop-filter: blur(5px);
  }

  .cv-access-card {
    width: min(620px, calc(100vw - 30px));
    max-height: calc(100vh - 44px);
    overflow: auto;
    border: 1px solid rgba(10, 39, 82, 0.13);
    border-radius: 20px;
    padding: 20px;
    background: radial-gradient(circle at 15% 0%, rgba(28, 83, 164, 0.08), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0b1d3a;
    box-shadow: 0 22px 60px rgba(9, 23, 44, 0.24);
  }

  .cv-access-card[data-access-mode="login"] {
    width: min(480px, calc(100vw - 30px));
  }

  .cv-access-header,
  .cv-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8e1ef;
  }

  .cv-access-title,
  .cv-history-title {
    font-size: 17px;
    font-weight: 950;
    color: #0b1d3a;
  }

  .cv-access-close,
  .cv-history-close {
    border: 1px solid rgba(16, 38, 78, 0.20) !important;
    border-radius: 12px;
    background: #ffffff !important;
    color: #102b57 !important;
    padding: 8px 13px !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 900;
  }

  .cv-access-grid {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 16px;
  }

  .cv-access-card[data-access-mode="login"] .cv-access-grid {
    grid-template-columns: 1fr;
  }

  .cv-access-card[data-access-mode="login"] .cv-profile-preview,
  .cv-access-card[data-access-mode="login"] #cvProfileNameField,
  .cv-access-card[data-access-mode="login"] #cvProfileRoleField {
    display: none !important;
  }

  .cv-access-intro {
    margin-top: 12px;
    color: #526783;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
  }

  .cv-profile-preview {
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .cv-profile-preview-avatar {
    width: 76px;
    height: 76px;
    font-size: 18px;
  }

  .cv-access-photo-button,
  .cv-access-primary,
  .cv-access-secondary,
  .cv-history-primary,
  .cv-history-secondary,
  .cv-history-danger {
    border: 0 !important;
    border-radius: 999px;
    padding: 10px 15px !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(9, 23, 44, 0.14);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
  }

  .cv-access-photo-button,
  .cv-access-secondary,
  .cv-history-secondary {
    background: linear-gradient(135deg, #243b67 0%, #101c35 100%) !important;
  }

  .cv-history-new {
    background: linear-gradient(135deg, #243b67 0%, #101c35 100%) !important;
  }

  .cv-history-refresh {
    background: linear-gradient(135deg, #0f47a6 0%, #2f6edb 100%) !important;
  }

  .cv-access-primary,
  .cv-history-primary {
    background: linear-gradient(135deg, #2f9367 0%, #1f6947 100%) !important;
  }

  .cv-history-danger {
    background: linear-gradient(135deg, #934044 0%, #6f292c 100%) !important;
  }

  .cv-access-form {
    display: grid;
    gap: 10px;
  }

  .cv-access-field {
    display: grid;
    gap: 5px;
    color: #203756;
    font-size: 12px;
    font-weight: 900;
  }

  .cv-access-field input,
  .cv-access-field select {
    min-height: 40px;
    border: 1px solid #c9d5e6;
    border-radius: 12px;
    padding: 9px 12px;
    background: #ffffff;
    color: #061426;
    font: 800 13px Arial, sans-serif;
    outline: none;
  }

  .cv-access-role-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #c9d5e6;
    border-radius: 12px;
    padding: 9px 12px;
    background: #f7faff;
    color: #102b57;
    font: 950 13px Arial, sans-serif;
  }

  .cv-access-field input:focus,
  .cv-access-field select:focus {
    border-color: #1f5f93;
    box-shadow: 0 0 0 4px rgba(31, 95, 147, 0.12);
  }

  .cv-access-actions,
  .cv-history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }

  .cv-access-actions [hidden],
  .cv-access-field[hidden],
  .cv-profile-preview[hidden] {
    display: none !important;
  }

  .cv-access-status,
  .cv-history-status {
    min-height: 18px;
    color: #526783;
    font-size: 12px;
    font-weight: 800;
  }

  .selective-remove-overlay[hidden] {
    display: none !important;
  }

  .selective-remove-overlay {
    position: fixed;
    inset: 0;
    z-index: 1330;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(9, 23, 44, 0.46);
    backdrop-filter: blur(5px);
  }

  .selective-remove-card {
    width: min(560px, calc(100vw - 30px));
    max-height: calc(100vh - 44px);
    overflow: auto;
    border: 1px solid rgba(10, 39, 82, 0.13);
    border-radius: 20px;
    padding: 20px;
    background: radial-gradient(circle at 15% 0%, rgba(147, 64, 68, 0.08), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0b1d3a;
    box-shadow: 0 22px 60px rgba(9, 23, 44, 0.24);
  }

  .selective-remove-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8e1ef;
  }

  .selective-remove-title {
    font-size: 17px;
    font-weight: 950;
    color: #0b1d3a;
  }

  .selective-remove-close {
    border: 1px solid rgba(16, 38, 78, 0.20) !important;
    border-radius: 12px;
    background: #ffffff !important;
    color: #102b57 !important;
    padding: 8px 13px !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 900;
  }

  .selective-remove-intro {
    margin: 12px 0 0;
    color: #526783;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
  }

  .selective-remove-toolbar,
  .selective-remove-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .selective-remove-group .selective-remove-toolbar {
    margin-top: 0;
    margin-bottom: 9px;
  }

  .selective-remove-group {
    margin-top: 14px;
  }

  .selective-remove-group[hidden] {
    display: none !important;
  }

  .selective-remove-group-title {
    margin-bottom: 8px;
    color: #203756;
    font-size: 12px;
    font-weight: 950;
  }

  .selective-remove-block-select {
    width: min(100%, 280px);
    min-height: 42px;
    border: 1px solid #c9d5e6;
    border-radius: 14px;
    padding: 9px 12px;
    background: #ffffff;
    color: #102b57;
    font: 950 12px Arial, sans-serif;
    outline: none;
    box-shadow: 0 8px 18px rgba(9, 23, 44, 0.08);
  }

  .selective-remove-block-select:focus {
    border-color: #1f5f93;
    box-shadow: 0 0 0 4px rgba(31, 95, 147, 0.12);
  }

  .selective-remove-block-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    align-items: end;
  }

  .selective-remove-block-field {
    display: grid;
    gap: 6px;
    color: #203756;
    font-size: 11px;
    font-weight: 950;
  }

  .selective-remove-block-range[hidden],
  .selective-remove-block-field[hidden] {
    display: none !important;
  }

  .selective-remove-block-range {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c9d5e6;
    border-radius: 12px;
    padding: 9px 12px;
    background: #ffffff;
    color: #102b57;
    font: 950 13px Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 8px 18px rgba(9, 23, 44, 0.08);
  }

  .selective-remove-block-range:focus {
    border-color: #7a3db5;
    box-shadow: 0 0 0 4px rgba(122, 61, 181, 0.12);
  }

  .selective-remove-block-hint {
    margin: 9px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(122, 61, 181, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(122, 61, 181, 0.07), rgba(31, 95, 147, 0.05));
    color: #526783;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
  }

  .selective-remove-block-options {
    max-height: 190px;
    overflow: auto;
    padding-right: 2px;
  }

  .selective-remove-block-options::-webkit-scrollbar {
    width: 6px;
  }

  .selective-remove-block-options::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
  }

  .selective-remove-block-options::-webkit-scrollbar-thumb {
    background: rgba(18, 50, 96, 0.45);
    border-radius: 999px;
  }

  .selective-remove-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 9px;
  }

  .selective-remove-option {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d3ddea;
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fbff;
    color: #203756;
    cursor: pointer;
    user-select: none;
  }

  .selective-remove-option:hover {
    border-color: #b5c4d8;
    background: #ffffff;
  }

  .selective-remove-option input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    clip-path: inset(50%) !important;
  }

  .selective-remove-dot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #9fb0c9;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px #ffffff;
  }

  .selective-remove-option input[type="checkbox"]:checked + .selective-remove-dot {
    border-color: #934044;
    background: #934044;
  }

  .selective-remove-option input[type="checkbox"]:focus-visible + .selective-remove-dot {
    outline: 3px solid rgba(31, 95, 147, 0.18);
    outline-offset: 2px;
  }

  .selective-remove-label {
    font-size: 12px;
    font-weight: 950;
    line-height: 1.25;
  }

  .selective-remove-mark,
  .selective-remove-clear,
  .selective-remove-confirm,
  .selective-remove-cancel {
    border: 0 !important;
    border-radius: 999px;
    padding: 10px 15px !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(9, 23, 44, 0.14);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
  }

  .selective-remove-mark,
  .selective-remove-cancel {
    background: linear-gradient(135deg, #243b67 0%, #101c35 100%) !important;
  }

  .selective-remove-field-toolbar {
    width: fit-content;
    padding: 8px;
    border: 1px solid rgba(16, 43, 87, 0.10);
    border-radius: 18px;
    background: rgba(239, 245, 252, 0.82);
  }

  .selective-remove-clear {
    background: linear-gradient(135deg, #6d7890 0%, #3f4d65 100%) !important;
  }

  .selective-remove-confirm {
    background: linear-gradient(135deg, #b85b5b 0%, #7c3838 100%) !important;
  }

  .selective-remove-status {
    min-height: 18px;
    margin-top: 10px;
    color: #526783;
    font-size: 12px;
    font-weight: 850;
  }

  .cv-history-panel {
    position: fixed;
    top: var(--cv-history-top, 86px);
    bottom: var(--cv-history-bottom, 16px);
    right: 18px;
    z-index: 980;
    width: min(380px, calc(100vw - 30px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(10, 39, 82, 0.13);
    border-radius: 18px;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0b1d3a;
    box-shadow: 0 22px 60px rgba(9, 23, 44, 0.20);
  }

  #cvHistoryPanel .cv-history-header {
    position: relative;
    z-index: 2;
    padding: 14px 25px 12px;
    background: rgba(255, 255, 255, 0.98);
  }

  .cv-history-scroll {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 12px 14px 14px;
  }

  .cv-history-list {
    min-width: 0;
    display: grid;
    gap: 9px;
    max-height: min(30vh, 250px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .cv-history-section {
    min-width: 0;
    display: grid;
    gap: 7px;
  }

  .cv-history-model-section {
    width: 100%;
    min-width: 0;
    gap: 6px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .cv-history-model-toggle,
  .cv-history-model-toggle:hover,
  .cv-history-model-toggle:focus,
  .cv-history-model-toggle:active {
    width: 100% !important;
    min-height: 42px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 24px !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    padding: 6px 9px 6px 12px !important;
    border: 1px solid #c4d1e4 !important;
    border-radius: 8px !important;
    background: #e9eff8 !important;
    color: #10264e !important;
    box-shadow: 0 4px 10px rgba(16, 38, 78, 0.10) !important;
    transform: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .cv-history-model-toggle:hover,
  .cv-history-model-toggle:focus-visible {
    border-color: #9fb4d2 !important;
    background: #dfe9f6 !important;
    box-shadow: 0 7px 16px rgba(16, 38, 78, 0.16) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
  }

  .cv-history-model-section.is-open > .cv-history-model-toggle {
    border-color: #8ea9cd !important;
    background: #d8e6f7 !important;
    color: #0d315f !important;
    box-shadow: 0 6px 15px rgba(16, 55, 101, 0.16) !important;
  }

  .cv-history-model-section[data-history-model-group="automatic"] > .cv-history-model-toggle {
    border-color: #d0c4e2 !important;
    background: #f0ebf8 !important;
    color: #472d69 !important;
  }

  .cv-history-model-section[data-history-model-group="automatic"].is-open > .cv-history-model-toggle {
    border-color: #b9a4d6 !important;
    background: #e7ddf4 !important;
    color: #3e245f !important;
    box-shadow: 0 6px 15px rgba(82, 48, 126, 0.14) !important;
  }

  .cv-history-model-toggle-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cv-history-model-chevron {
    width: 17px;
    height: 17px;
    justify-self: center;
    transition: transform 0.18s ease;
  }

  .cv-history-model-section.is-open > .cv-history-model-toggle .cv-history-model-chevron {
    transform: rotate(180deg);
  }

  .cv-history-model-body {
    display: grid;
    grid-template-rows: 0fr;
    box-sizing: border-box;
    padding: 0 9px;
    overflow: hidden;
    border: 0 solid #d9e4f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: grid-template-rows 0.18s ease, opacity 0.14s ease, padding 0.18s ease, border-width 0.18s ease;
  }

  .cv-history-model-section.is-open > .cv-history-model-body {
    grid-template-rows: 1fr;
    padding: 9px;
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
  }

  .cv-history-model-content {
    min-height: 0;
    min-width: 0;
    max-height: min(34vh, 310px);
    display: grid;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--cv-scrollbar-thumb) var(--cv-scrollbar-track);
  }

  #cvHistoryPanel .cv-history-model-section .cv-history-list {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
    scrollbar-gutter: auto !important;
  }

  .cv-history-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
    color: #203756;
    font-size: 12px;
    font-weight: 950;
  }

  .cv-history-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef3fb;
    color: #1f5f93;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
  }

  .cv-history-model-section[data-history-model-group="manual"] .cv-history-count {
    background: #e3effd;
    color: #1d5f9f;
  }

  .cv-history-model-section[data-history-model-group="automatic"] .cv-history-count {
    background: #eee5f8;
    color: #6b3e93;
  }

  .cv-history-form {
    display: grid;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(16, 43, 87, 0.10);
    border-radius: 14px;
    background: rgba(239, 245, 252, 0.78);
  }

  .cv-history-field {
    display: grid;
    gap: 5px;
    color: #203756;
    font-size: 11px;
    font-weight: 950;
  }

  .cv-history-field input {
    min-height: 38px;
    border: 1px solid #c9d5e6;
    border-radius: 11px;
    padding: 8px 11px;
    background: #ffffff;
    color: #061426;
    font: 850 12px Arial, sans-serif;
    outline: none;
  }

  .cv-history-field input:focus {
    border-color: #1f5f93;
    box-shadow: 0 0 0 4px rgba(31, 95, 147, 0.12);
  }

  .cv-history-panel-note {
    color: #526783;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
  }

  .cv-history-search {
    display: grid;
    gap: 5px;
    color: #203756;
    font-size: 11px;
    font-weight: 950;
  }

  .cv-history-search input {
    min-height: 38px;
    border: 1px solid #c9d5e6;
    border-radius: 999px;
    padding: 8px 13px;
    background: #ffffff;
    color: #061426;
    font: 850 12px Arial, sans-serif;
    outline: none;
  }

  .cv-history-search input:focus {
    border-color: #1f5f93;
    box-shadow: 0 0 0 4px rgba(31, 95, 147, 0.12);
  }

  .cv-history-form .cv-history-actions {
    flex-wrap: nowrap;
    gap: 7px;
  }

  .cv-history-form .cv-history-primary,
  .cv-history-form .cv-history-secondary,
  .cv-history-form .cv-history-danger {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 10px !important;
    font-size: 11px;
  }

  .cv-history-empty {
    border: 1px dashed #c2cfe0;
    border-radius: 14px;
    padding: 12px;
    background: #fbfdff;
    color: #526783;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
  }

  .cv-history-item {
    min-width: 0;
    display: grid;
    gap: 6px;
    border: 1px solid #dce5f2;
    border-radius: 14px;
    padding: 10px;
    background: #ffffff;
  }

  .cv-history-item-title {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #0b1d3a;
    font-size: 13px;
    font-weight: 950;
  }

  .cv-history-item-title > span:first-child,
  .cv-history-item-meta,
  .cv-history-item-body {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cv-history-item.is-active {
    border-color: rgba(31, 95, 147, 0.40);
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
    box-shadow: 0 10px 22px rgba(31, 95, 147, 0.10);
  }

  .cv-history-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 7px;
    background: #eaf2ff;
    color: #1f5f93;
    font-size: 9px;
    font-weight: 950;
  }

  .cv-history-item-meta,
  .cv-history-item-body {
    color: #526783;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
  }

  .cv-history-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cv-history-item-actions button {
    min-height: 30px;
    border: 0 !important;
    border-radius: 999px;
    padding: 7px 11px !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 950;
    box-shadow: none !important;
  }

  .cv-history-insert {
    background: #2f9367 !important;
  }

  .cv-history-remove {
    background: #934044 !important;
  }

  .job-analysis-overlay[hidden] {
    display: none !important;
  }

  .job-analysis-overlay {
    position: fixed;
    top: var(--job-analysis-top, 86px);
    right: 18px;
    bottom: auto;
    left: auto;
    z-index: 920;
    display: block;
    width: min(392px, calc(100vw - 36px));
    max-height: calc(100vh - var(--job-analysis-top, 86px) - var(--job-analysis-bottom, 16px));
    background: transparent;
    pointer-events: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .job-analysis-panel {
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--job-analysis-top, 86px) - var(--job-analysis-bottom, 16px));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #7a3db2 rgba(122, 61, 178, 0.08);
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 100%);
    border: 1px solid rgba(75, 27, 122, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(20, 24, 40, 0.20);
    box-sizing: border-box;
    pointer-events: auto;
  }

  .job-analysis-panel::-webkit-scrollbar {
    width: 8px;
  }

  .job-analysis-panel::-webkit-scrollbar-track {
    background: rgba(122, 61, 178, 0.08);
    border-radius: 999px;
    margin: 12px 0;
  }

  .job-analysis-panel::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid rgba(247, 244, 255, 0.94);
    border-radius: 999px;
    background: linear-gradient(180deg, #9d63d2 0%, #6f35a6 100%);
  }

  .job-analysis-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ad74df 0%, #5f2b93 100%);
  }

  .job-analysis-panel::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  .job-analysis-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
    margin-bottom: 12px;
  }

  .job-analysis-title {
    margin: 0;
    color: #25113d;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 950;
  }

  .job-analysis-subtitle {
    margin: 5px 0 0;
    color: #5d5270;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 700;
  }

  .job-analysis-close {
    border: 1px solid rgba(75, 27, 122, 0.18) !important;
    border-radius: 10px;
    background: #ffffff !important;
    color: #30164f !important;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
  }

  .job-analysis-view-menu {
    grid-column: 1 / -1;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 248px);
    padding: 4px;
    border: 1px solid rgba(75, 27, 122, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  }

  .job-analysis-view-tab,
  .job-analysis-view-tab:hover,
  .job-analysis-view-tab:focus {
    min-height: 30px;
    border: 0 !important;
    border-radius: 10px;
    padding: 6px 10px !important;
    background: transparent !important;
    color: #30164f !important;
    box-shadow: none !important;
    font-size: 11px;
    font-weight: 950;
  }

  .job-analysis-view-tab.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4b1b7a 0%, #7334a7 100%) !important;
    box-shadow: 0 8px 16px rgba(75, 27, 122, 0.22) !important;
  }

  .job-analysis-actions,
  .job-analysis-footer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
  }

  .job-analysis-actions[hidden],
  .job-analysis-field[hidden] {
    display: none !important;
  }

  .job-analysis-file,
  .job-analysis-run,
  .job-analysis-clear {
    border: 0 !important;
    border-radius: 999px;
    min-height: 34px;
    padding: 8px 12px;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(52, 31, 89, 0.15);
  }

  .job-analysis-file {
    background: linear-gradient(135deg, #5d2b91 0%, #8653bd 100%) !important;
  }

  .job-analysis-run {
    background: linear-gradient(135deg, #193f83 0%, #2666bf 100%) !important;
  }

  .job-analysis-clear {
    background: linear-gradient(135deg, #7a3940 0%, #a8525b 100%) !important;
  }

  .job-analysis-field {
    display: block;
    margin-top: 12px;
    color: #33224f;
    font-size: 11px;
    font-weight: 950;
  }

  .job-analysis-textarea {
    width: 100%;
    min-height: 150px;
    margin-top: 8px;
    padding: 12px 13px;
    border: 1px solid rgba(75, 27, 122, 0.20);
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .job-analysis-status {
    min-height: 18px;
    color: #5d5270;
    font-size: 12px;
    font-weight: 800;
  }

  .job-analysis-result {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }

  .job-analysis-empty {
    border: 1px dashed rgba(75, 27, 122, 0.25);
    border-radius: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #665a78;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
  }

  .job-analysis-score {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--score-border, rgba(75, 27, 122, 0.14));
    box-shadow: 0 12px 28px var(--score-shadow, rgba(50, 29, 81, 0.08));
  }

  .job-analysis-score-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--score-start, #4b1b7a) 0%, var(--score-end, #8a4fc3) 100%);
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
  }

  .job-analysis-score-title {
    color: #24133d;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
  }

  .job-analysis-score-text {
    margin-top: 4px;
    color: #5d5270;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 750;
  }

  .job-analysis-section {
    margin-top: 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(75, 27, 122, 0.12);
  }

  .job-analysis-section h4 {
    margin: 0 0 10px;
    color: #24133d;
    font-size: 13px;
    font-weight: 950;
  }

  .job-analysis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .job-analysis-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #173b75;
    font-size: 11px;
    font-weight: 900;
  }

  .job-analysis-tag.is-gap {
    background: #fff0f5;
    color: #8f244a;
  }

  .job-analysis-list {
    margin: 0;
    padding-left: 18px;
    color: #3c314d;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 750;
  }

  .job-analysis-goal-head,
  .job-analysis-goal-main,
  .job-analysis-goal-meta,
  .job-analysis-action-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .job-analysis-goal-summary {
    margin: -2px 0 8px;
    color: #5d5270;
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 750;
  }

  .job-analysis-path,
  .job-analysis-action-plan {
    display: flex;
    flex-direction: column;
  }

  .job-analysis-goal,
  .job-analysis-action-item {
    padding: 10px 0;
    border-top: 1px solid rgba(75, 27, 122, 0.10);
  }

  .job-analysis-goal:first-child,
  .job-analysis-action-item:first-child {
    border-top: 0;
    padding-top: 2px;
  }

  .job-analysis-goal-label,
  .job-analysis-action-term {
    min-width: 0;
    color: #24133d;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 950;
  }

  .job-analysis-goal-points,
  .job-analysis-action-priority {
    flex: 0 0 auto;
    color: #8f244a;
    font-size: 10.5px;
    font-weight: 950;
    white-space: nowrap;
  }

  .job-analysis-progress {
    height: 6px;
    margin: 7px 0 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eaf1;
  }

  .job-analysis-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2666bf 0%, #15935a 100%);
  }

  .job-analysis-goal-detail,
  .job-analysis-action-copy,
  .job-analysis-action-section {
    min-width: 0;
    color: #5d5270;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 750;
  }

  .job-analysis-review-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 47px;
    margin-top: 2px;
    padding: 10px 1px 3px;
    border-top: 1px solid rgba(75, 27, 122, 0.10);
  }

  .job-analysis-review-button,
  .job-analysis-review-button:hover,
  .job-analysis-review-button:focus,
  .job-analysis-review-button:active {
    min-height: 34px;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 8px 13px !important;
    background: linear-gradient(135deg, #193f83 0%, #2666bf 100%) !important;
    color: #ffffff !important;
    transform: translateY(0) !important;
    box-shadow: 0 8px 18px rgba(38, 102, 191, 0.18) !important;
    filter: none !important;
    transition: none !important;
    font-size: 11px;
    font-weight: 950;
  }

  .job-analysis-review-action:hover .job-analysis-review-button,
  .job-analysis-review-action:focus-within .job-analysis-review-button {
    transform: translateY(0) !important;
    filter: none !important;
    background: linear-gradient(135deg, #173873 0%, #225aa8 100%) !important;
    box-shadow: 0 8px 18px rgba(38, 102, 191, 0.18) !important;
  }

  .job-analysis-coverage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 8px;
  }

  .job-analysis-stat {
    min-width: 0;
    padding: 2px 10px 8px;
    border-left: 1px solid rgba(75, 27, 122, 0.12);
  }

  .job-analysis-stat:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .job-analysis-stat strong {
    display: block;
    color: #24133d;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 950;
  }

  .job-analysis-stat span {
    display: block;
    margin-top: 3px;
    color: #5d5270;
    font-size: 10.5px;
    line-height: 1.3;
    font-weight: 800;
  }

  .job-analysis-action-section {
    margin-top: 3px;
    color: #173b75;
  }

  @media screen and (max-width: 520px) {
    .job-analysis-goal-meta {
      align-items: flex-start;
    }

    .job-analysis-goal-detail {
      padding-right: 4px;
    }

    .job-analysis-coverage {
      grid-template-columns: 1fr;
    }

    .job-analysis-stat,
    .job-analysis-stat:first-child {
      padding: 7px 0;
      border-left: 0;
      border-top: 1px solid rgba(75, 27, 122, 0.10);
    }

    .job-analysis-stat:first-child {
      border-top: 0;
      padding-top: 0;
    }
  }

  body.cv-job-analysis-open #sourcePage,
  body.cv-history-panel-open #sourcePage {
    transition: transform 0.22s ease;
  }

  @media screen and (min-width: 900px) and (max-width: 1119px) {
    .job-analysis-overlay {
      right: 12px;
      width: min(360px, calc(100vw - 24px));
    }

    body.cv-job-analysis-open #sourcePage,
    body.cv-history-panel-open #sourcePage {
      transform: translateX(-100px);
    }
  }

  @media screen and (min-width: 1120px) {
    body.cv-job-analysis-open #sourcePage,
    body.cv-history-panel-open #sourcePage {
      transform: translateX(calc(-1 * min(180px, 18vw)));
    }
  }

  @media screen and (min-width: 1280px) {
    body.cv-job-analysis-open #sourcePage,
    body.cv-history-panel-open #sourcePage {
      transform: translateX(-210px);
    }
  }

  @media screen and (max-width: 899px) {
    .job-analysis-overlay {
      right: 12px;
      bottom: var(--job-analysis-bottom, 12px);
      width: min(392px, calc(100vw - 24px));
    }
  }

  body.pdf-exporting.cv-job-analysis-open #sourcePage,
  body.pdf-exporting.cv-history-panel-open #sourcePage {
    transform: none !important;
  }

  @media print {
    body.cv-job-analysis-open #sourcePage,
    body.cv-history-panel-open #sourcePage {
      transform: none !important;
    }
  }

  body[data-cv-access-mode="history"] {
    background: #d8e9ff !important;
    transition: background-color 0.18s ease;
  }

  body[data-cv-access-mode="history"] .toolbar {
    background: linear-gradient(180deg, #f8fbff 0%, #dcecff 100%);
    border-bottom-color: #a7c9f6;
  }

  body[data-cv-access-mode="history"] .draft-reset-button[data-cv-history-locked="1"],
  body[data-cv-access-mode="history"] .draft-reset-button[data-cv-history-locked="1"]:hover,
  body[data-cv-access-mode="history"] .draft-reset-button[data-cv-history-locked="1"]:active,
  body[data-cv-access-mode="history"] .draft-reset-button[data-cv-history-locked="1"]:focus {
    background: linear-gradient(135deg, #8c96a8 0%, #687386 100%) !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    filter: none !important;
    transform: none !important;
    box-shadow: 0 8px 16px rgba(86, 99, 119, 0.18) !important;
  }

  body[data-cv-access-mode="history"] .draft-reset-button[data-cv-history-locked="1"]::before {
    color: #687386 !important;
    background: linear-gradient(135deg, #ffffff 0%, #edf1f6 100%) !important;
  }

  body.pdf-exporting .cv-mode-switch,
  body.pdf-exporting .cv-profile-area,
  body.pdf-exporting .cv-profile-chip,
  body.pdf-exporting .cv-profile-menu,
  body.pdf-exporting .cv-tour-overlay,
  body.pdf-exporting .cv-tour-button,
  body.pdf-exporting .cv-access-overlay,
  body.pdf-exporting .job-analysis-overlay,
  body.pdf-exporting .selective-remove-overlay,
  body.pdf-exporting .cv-history-panel,
  .print-pages .cv-mode-switch,
  .print-pages .cv-profile-area,
  .print-pages .cv-profile-chip,
  .print-pages .selective-remove-overlay {
    display: none !important;
  }

  @media (max-width: 760px) {
    .toolbar {
      grid-template-columns: 1fr;
      justify-items: center;
    }

    .cv-mode-switch,
    .cv-toolbar-center,
    .cv-profile-area,
    .cv-profile-chip {
      grid-column: 1;
    }

    .cv-mode-switch {
      justify-self: stretch;
    }

    .cv-profile-area,
    .cv-profile-chip {
      justify-self: stretch;
    }

    .cv-mode-switch {
      width: min(100%, 310px);
    }

    .cv-mode-option {
      min-width: 0;
    }

    .cv-profile-area,
    .cv-profile-chip {
      max-width: min(100%, 310px);
      width: min(100%, 310px);
    }

    .cv-profile-menu {
      left: 0;
      right: auto;
      width: min(100%, 310px);
    }

    .cv-access-grid {
      grid-template-columns: 1fr;
    }

    .cv-history-panel {
      left: 15px;
      right: 15px;
      width: auto;
    }
  }

  @media print {
    .cv-mode-switch,
    .cv-profile-area,
    .cv-profile-chip,
    .cv-profile-menu,
    .cv-tour-overlay,
    .cv-tour-button,
    .cv-access-overlay,
    .job-analysis-overlay,
    .selective-remove-overlay,
    .cv-history-panel {
      display: none !important;
    }
  }
