.resume-upload-container{width:100%;max-width:760px;margin:35px auto;padding:16px;box-sizing:border-box}
.resume-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:34px;box-shadow:0 12px 35px rgba(16,24,40,.08);text-align:center}
.resume-card h1{margin:0 0 10px;font-size:30px;color:#101828}
.resume-card>p{color:#667085;margin:0 0 25px}
.upload-drop-zone{border:2px dashed #98a2b3;border-radius:14px;padding:28px 16px;background:#f9fafb;cursor:pointer;transition:.2s}
.upload-drop-zone:hover,.upload-drop-zone.dragover{border-color:#175cd3;background:#eff6ff}
.upload-drop-zone input{max-width:100%;margin-bottom:14px}
.upload-icon{font-size:38px}
.upload-inner h3{margin:8px 0}
.upload-inner p{margin:5px 0;color:#667085}
.resume-upload-small{font-size:12px!important}
#selectedFile,#resumeUploadStatus{margin-top:14px;color:#475467;overflow-wrap:anywhere}
#resumeUploadStatus:empty{display:none}
.upload-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}
.feature-box{padding:12px;background:#f8fafc;border:1px solid #eaecf0;border-radius:9px;font-size:14px}
#analyzeResume,.resume-primary-button{background:#175cd3;color:#fff;border:0;border-radius:9px;padding:13px 22px;font-weight:600;cursor:pointer}
#analyzeResume{width:100%;font-size:16px}
#analyzeResume:disabled,.resume-primary-button:disabled{opacity:.6;cursor:wait}

/* Upload process explanation */
.resume-upload-process{text-align:left;margin-top:25px;padding:16px 18px;background:#f8fafc;border:1px solid #eaecf0;border-radius:10px;font-size:13px;color:#475467;line-height:1.6}
.resume-upload-process p{margin:0 0 8px}
.resume-upload-process ol{margin:8px 0 12px;padding-left:22px}
.resume-upload-process li{margin:5px 0}

/* Upload status messages */
#resumeUploadStatus{font-size:13px;line-height:1.6}
#resumeUploadStatus.error{color:#b42318}
#resumeUploadStatus.success{color:#027a48}
#resumeUploadStatus.warning{color:#93370d}

/* Resume application layout */
.resume-app{display:flex;align-items:flex-start;gap:22px;width:100%;max-width:1500px;padding:12px;margin:0 auto;box-sizing:border-box;color:#101828}
.builder-panel{width:46%;min-width:0}
.preview-panel{width:54%;min-width:0;position:sticky;top:15px;align-self:flex-start}
.resume-editor-heading,.resume-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.resume-editor-heading h2,.resume-preview-toolbar h3{margin:0 0 5px;font-size:22px}
.resume-editor-heading p,.resume-preview-toolbar p{margin:0;color:#667085;font-size:13px}
.resume-ai-status,.resume-readonly-label{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#ecfdf3;color:#027a48;font-size:11px;font-weight:700;white-space:nowrap}
.resume-readonly-label{background:#eff6ff;color:#175cd3}
.resume-editor-note{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;padding:12px 14px;border-radius:10px;margin-bottom:16px;font-size:13px}

/* Processing notices */
.resume-processing-notice{padding:14px 16px;margin:0 0 18px;border-radius:10px;font-size:13px;line-height:1.6}
.resume-processing-notice p{margin:6px 0 0}
.resume-processing-warning{background:#fffaeb;border:1px solid #fedf89;color:#93370d}
.resume-processing-success{background:#ecfdf3;border:1px solid #abefc6;color:#027a48}
.resume-processing-error{background:#fef3f2;border:1px solid #fecdca;color:#b42318}
.resume-processing-error p{overflow-wrap:anywhere}
.resume-processing-error strong{font-weight:700}
.resume-status-warning{background:#fffaeb!important;color:#93370d!important}
.resume-status-success{background:#ecfdf3;color:#027a48}

/* Builder cards */
.resume-app .card{background:#fff;border:1px solid #eaecf0;border-radius:13px;padding:18px;margin:0 0 15px;box-shadow:0 2px 8px rgba(16,24,40,.035)}
.resume-app .card h3{font-size:17px;margin:0 0 15px;color:#101828}
.resume-app label{display:block;font-size:12px;font-weight:600;color:#475467;margin-bottom:10px}
.resume-app input,.resume-app textarea{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:10px 11px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:#101828;font:inherit;font-size:14px}
.resume-app textarea{resize:vertical;min-height:85px;line-height:1.5}
.resume-app input:focus,.resume-app textarea:focus{outline:2px solid #bfdbfe;border-color:#175cd3}
.resume-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.resume-repeat-card{padding:14px;margin:0 0 12px;border:1px solid #eaecf0;border-radius:9px;background:#fcfcfd}
.resume-repeat-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.resume-repeat-row input{margin:0}
.resume-repeat-row .removeBlock{flex:0 0 34px;height:34px;padding:0;font-size:20px}
.resume-secondary-button{background:#fff;border:1px solid #d0d5dd;color:#344054;border-radius:8px;padding:9px 13px;font-weight:600;cursor:pointer}
.resume-secondary-button:hover{background:#f9fafb}
.resume-remove-button{font-size:12px;margin-top:4px}
.resume-save-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 0 25px}
#resumeSaveStatus{font-size:13px;color:#027a48}
#resumeSaveStatus.error{color:#b42318}

/* Resume preview */
.resume-preview-toolbar{margin-bottom:12px}
.resume-preview-card{background:#fff;border-radius:14px;padding:38px 42px;box-shadow:0 5px 22px rgba(16,24,40,.09);border:1px solid #eaecf0;min-height:500px;overflow-wrap:anywhere}
.resume-preview-card,.resume-preview-card *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}
.resume-preview-card h1{margin:0 0 5px;font-size:29px;line-height:1.2;color:#101828;letter-spacing:.3px}
.resume-preview-card .preview-title{font-size:15px;color:#475467;font-weight:600;margin-bottom:10px}
.resume-preview-card .preview-contact{font-size:11px;color:#667085;line-height:1.7;margin:12px 0 20px}
.resume-preview-card h2{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:#175cd3;margin:23px 0 9px;padding-bottom:6px;border-bottom:1px solid #d0d5dd}
.resume-preview-card p{font-size:12px;line-height:1.65;color:#344054;margin:5px 0}
.resume-preview-card ul{padding-left:18px;margin:7px 0 12px}
.resume-preview-card li{font-size:12px;line-height:1.6;color:#344054;margin:3px 0}
.resume-preview-entry{margin:0 0 13px;break-inside:avoid}
.resume-preview-entry strong{font-size:12px;color:#101828}
.resume-preview-meta{font-size:11px!important;color:#667085!important}
.resume-preview-skills{display:flex;flex-wrap:wrap;gap:6px}
.resume-preview-skill{display:inline-block;background:#f2f4f7;color:#344054;border-radius:5px;padding:5px 8px;font-size:11px}
.resume-preview-disclaimer{font-size:11px;color:#667085;margin:10px 2px}
.resume-preview-loading{color:#667085}

/* Photo preview */
.resume-field-help{font-size:11px;color:#667085;margin:8px 0 0}
.resume-photo-preview{margin-top:10px}
.resume-photo-thumb{width:76px;height:76px;object-fit:cover;border-radius:10px;border:1px solid #d0d5dd}
.resume-preview-photo{display:block;width:92px;height:92px;object-fit:cover;border-radius:50%;margin:0 0 15px;border:2px solid #eaecf0}

/* Responsive layout */
@media(max-width:1000px){
    .resume-app{flex-direction:column}
    .builder-panel,.preview-panel{width:100%}
    .preview-panel{position:static}
    .resume-preview-card{padding:25px}
}

@media(max-width:600px){
    .resume-card{padding:22px 16px}
    .upload-features{grid-template-columns:1fr}
    .resume-form-grid{grid-template-columns:1fr}
    .resume-editor-heading,.resume-preview-toolbar{align-items:flex-start;flex-direction:column}
    .resume-preview-card{padding:20px}
    .resume-preview-card h1{font-size:24px}
    .resume-upload-process{padding:13px}
}

/* ------------------------------------------------------------------
   Resume template gallery
   ------------------------------------------------------------------ */
.resume-template-gallery{
    margin:0 0 18px;
    padding:16px;
    background:#fff;
    border:1px solid #eaecf0;
    border-radius:13px;
    box-shadow:0 2px 8px rgba(16,24,40,.035);
}
.resume-template-gallery-heading h3{
    margin:0 0 5px;
    color:#101828;
    font-size:17px;
}
.resume-template-gallery-heading p{
    margin:0 0 14px;
    color:#667085;
    font-size:12px;
    line-height:1.5;
}
.resume-template-options{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
.resume-template-option{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:9px;
    min-width:0;
    padding:10px;
    text-align:left;
    color:#344054;
    background:#fff;
    border:1px solid #d0d5dd;
    border-radius:10px;
    cursor:pointer;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.resume-template-option:hover{
    border-color:#84adff;
    box-shadow:0 3px 12px rgba(23,92,211,.10);
}
.resume-template-option.is-selected{
    border:2px solid #175cd3;
    padding:9px;
    background:#f8fbff;
    box-shadow:0 0 0 2px rgba(23,92,211,.07);
}
.resume-template-option:focus-visible{
    outline:3px solid rgba(23,92,211,.25);
    outline-offset:2px;
}
.resume-template-thumbnail{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:0.76;
    max-height:180px;
    overflow:hidden;
    padding:15px 13px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #e4e7ec;
    box-shadow:0 2px 5px rgba(16,24,40,.07);
}
.resume-template-thumbnail span{display:block}
.resume-thumb-name{
    width:66%;
    height:7px;
    margin:5px auto 5px;
    background:#344054;
    border-radius:2px;
}
.resume-thumb-subtitle{
    width:42%;
    height:3px;
    margin:0 auto 6px;
    background:#98a2b3;
    border-radius:2px;
}
.resume-thumb-contact{
    width:82%;
    height:3px;
    margin:0 auto 12px;
    background:#d0d5dd;
    border-radius:2px;
}
.resume-thumb-section{
    height:7px;
    margin:9px 0 6px;
    background:#e9eef5;
    border-left:3px solid #7890aa;
}
.resume-thumb-line{
    width:100%;
    height:3px;
    margin:5px 0;
    background:#d9dee7;
    border-radius:2px;
}
.resume-thumb-line.short{width:65%}
.resume-template-thumbnail-white-blue .resume-thumb-name{
    width:61%;
    margin-left:0;
    margin-right:auto;
    background:#26384b;
}
.resume-template-thumbnail-white-blue .resume-thumb-subtitle{
    width:42%;
    margin-left:0;
    margin-right:auto;
}
.resume-template-thumbnail-white-blue .resume-thumb-contact{
    width:72%;
    margin-left:0;
    margin-right:auto;
}
.resume-template-thumbnail-white-blue .resume-thumb-section{
    background:#eaf0f6;
    border-left-color:#6f879f;
}
.resume-thumb-photo{
    position:absolute;
    top:12px;
    right:12px;
    width:29px;
    height:35px;
    background:#e6ebf1;
    border:1px solid #b8c4d1;
    border-radius:2px;
}
.resume-thumb-skills{
    display:grid!important;
    grid-template-columns:repeat(3,1fr);
    gap:4px;
    margin-top:5px;
}
.resume-thumb-skills i{
    display:block;
    height:13px;
    background:#eef2f6;
    border:1px solid #e0e6ed;
}
.resume-template-option-info{display:flex;flex-direction:column;gap:3px}
.resume-template-option-info strong{font-size:12px;line-height:1.35;color:#101828}
.resume-template-option-info small{font-size:10px;line-height:1.4;color:#667085}
.resume-template-selected-indicator{
    display:none;
    align-self:flex-start;
    padding:3px 7px;
    color:#175cd3;
    background:#eff6ff;
    border-radius:20px;
    font-size:10px;
    font-weight:700;
}
.resume-template-option.is-selected .resume-template-selected-indicator{display:inline-flex}

/* White & Blue Minimalist PDF-inspired preview.
   The JavaScript renderer should add .resume-template-white-blue to
   #resumePreview when this template is selected. */
.resume-preview-card.resume-template-white-blue{
    position:relative;
    padding:36px 42px;
    color:#263445;
    background:#fff;
    border-color:#e1e6ec;
    border-radius:3px;
    box-shadow:0 5px 22px rgba(16,24,40,.09);
    font-family:Arial,Helvetica,sans-serif;
}
.resume-template-white-blue .wb-header{
    position:relative;
    min-height:92px;
    padding:4px 112px 15px 0;
    margin:0 0 18px;
    text-align:center;
    border-bottom:1px solid #dce3ea;
}
.resume-template-white-blue .wb-header-copy{width:100%}
.resume-template-white-blue .wb-name{
    margin:0 0 6px;
    color:#26384b;
    font-size:25px;
    line-height:1.2;
    font-weight:700;
    letter-spacing:1.1px;
    text-transform:uppercase;
}
.resume-template-white-blue .wb-title{
    margin:0 0 8px;
    color:#596b7d;
    font-size:13px;
    font-weight:600;
}
.resume-template-white-blue .wb-contact{
    margin:0;
    color:#667789;
    font-size:9px;
    line-height:1.6;
}
.resume-template-white-blue .wb-photo{
    position:absolute;
    top:0;
    right:0;
    width:88px;
    height:96px;
    object-fit:cover;
    object-position:center;
    border:1px solid #d4dce5;
    border-radius:2px;
}
.resume-template-white-blue .wb-section{margin:17px 0 0;break-inside:avoid}
.resume-template-white-blue .wb-section-title{
    margin:0 0 9px;
    padding:6px 9px;
    color:#34495e;
    background:#eaf0f5;
    border-left:3px solid #8095aa;
    font-size:11px;
    line-height:1.3;
    font-weight:700;
    letter-spacing:.8px;
    text-transform:uppercase;
}
.resume-template-white-blue .wb-summary{
    margin:0;
    color:#435365;
    font-size:10px;
    line-height:1.65;
}
.resume-template-white-blue .wb-entry{margin:0 0 12px;break-inside:avoid}
.resume-template-white-blue .wb-entry-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin:0 0 3px;
}
.resume-template-white-blue .wb-entry-heading strong{
    color:#293b4e;
    font-size:10px;
    line-height:1.4;
}
.resume-template-white-blue .wb-date{
    flex:0 0 auto;
    color:#68798a;
    font-size:9px;
    text-align:right;
}
.resume-template-white-blue .wb-entry-subtitle{
    margin:0 0 4px;
    color:#607184;
    font-size:9px;
    font-weight:600;
}
.resume-template-white-blue .wb-entry-description{
    margin:0;
    color:#435365;
    font-size:9px;
    line-height:1.55;
}
.resume-template-white-blue .wb-entry-description ul{margin:4px 0 0;padding-left:16px}
.resume-template-white-blue .wb-entry-description li{
    margin:2px 0;
    color:#435365;
    font-size:9px;
    line-height:1.5;
}
.resume-template-white-blue .wb-skills{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px 14px;
    margin:0;
    padding:0;
    list-style:none;
}
.resume-template-white-blue .wb-skills li{
    margin:0;
    padding:3px 0;
    color:#435365;
    font-size:9px;
    line-height:1.4;
    border-bottom:1px solid #edf0f3;
}
.resume-template-white-blue .wb-plain-list{
    margin:0;
    padding-left:15px;
}
.resume-template-white-blue .wb-plain-list li{
    margin:3px 0;
    color:#435365;
    font-size:9px;
    line-height:1.5;
}
.resume-template-white-blue .wb-reference-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.resume-template-white-blue .wb-reference{
    padding:7px;
    background:#f8fafc;
    border:1px solid #e8edf2;
}
.resume-template-white-blue .wb-reference strong{
    display:block;
    color:#293b4e;
    font-size:9px;
}
.resume-template-white-blue .wb-reference span{
    display:block;
    color:#667789;
    font-size:8px;
    line-height:1.5;
}

/* Responsive layout */
@media(max-width:1000px){
    .resume-app{flex-direction:column}
    .builder-panel,.preview-panel{width:100%}
    .preview-panel{position:static}
    .resume-preview-card{padding:25px}
}
@media(max-width:600px){
    .resume-card{padding:22px 16px}
    .upload-features{grid-template-columns:1fr}
    .resume-form-grid{grid-template-columns:1fr}
    .resume-editor-heading,.resume-preview-toolbar{align-items:flex-start;flex-direction:column}
    .resume-preview-card{padding:20px}
    .resume-preview-card h1{font-size:24px}
    .resume-upload-process{padding:13px}
    .resume-template-gallery{padding:12px}
    .resume-template-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .resume-template-option{padding:7px}
    .resume-template-option.is-selected{padding:6px}
    .resume-template-thumbnail{padding:10px 8px;max-height:145px}
    .resume-template-option-info strong{font-size:11px}
    .resume-template-option-info small{font-size:9px}
    .resume-preview-card.resume-template-white-blue{padding:20px 16px}
    .resume-template-white-blue .wb-header{padding-right:78px;min-height:76px}
    .resume-template-white-blue .wb-photo{width:62px;height:72px}
    .resume-template-white-blue .wb-name{font-size:19px}
    .resume-template-white-blue .wb-skills{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ------------------------------------------------------------------
   ATS JOB DESCRIPTION REVIEWER
   ------------------------------------------------------------------ */

.resume-ats-panel {
    margin: 0 0 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dbe3ed;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(16,24,40,.04);
}

.resume-ats-panel h3 {
    margin: 0 0 10px;
    color: #101828;
    font-size: 19px;
}

.resume-ats-panel p {
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.resume-ats-panel label {
    display: block;
    margin: 14px 0 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.resume-ats-panel input,
.resume-ats-panel textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font: inherit;
    font-size: 13px;
}

.resume-ats-panel textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.6;
}

.resume-ats-panel input:focus,
.resume-ats-panel textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: #175cd3;
}

.resume-ats-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 7px 0 0;
    padding: 10px 15px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.resume-ats-panel button:hover {
    background: #f9fafb;
}

.resume-ats-panel button:disabled {
    opacity: .55;
    cursor: wait;
}

.resume-ats-panel button.resume-ats-primary {
    background: #175cd3;
    border-color: #175cd3;
    color: #fff;
}

.resume-ats-panel button.resume-ats-primary:hover {
    background: #1849a9;
}

.resume-ats-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    line-height: 1.5;
}

.resume-ats-status:empty {
    display: none;
}

.resume-ats-status.error {
    background: #fef3f2;
    color: #b42318;
}

.resume-ats-status.success {
    background: #ecfdf3;
    color: #027a48;
}

.resume-ats-results {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eaecf0;
}

.resume-ats-score-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 10px;
}

.resume-ats-score {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border: 5px solid #175cd3;
    border-radius: 50%;
    color: #175cd3;
    font-size: 23px;
    font-weight: 800;
}

.resume-ats-score-info {
    min-width: 0;
}

.resume-ats-score-info strong {
    display: block;
    margin-bottom: 4px;
    color: #101828;
    font-size: 15px;
}

.resume-ats-score-info span {
    color: #667085;
    font-size: 12px;
}

.resume-ats-category-scores {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 15px 0;
}

.resume-ats-category {
    padding: 11px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}

.resume-ats-category-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #475467;
    font-size: 11px;
    font-weight: 600;
}

.resume-ats-progress {
    height: 7px;
    overflow: hidden;
    background: #e4e7ec;
    border-radius: 20px;
}

.resume-ats-progress span {
    display: block;
    height: 100%;
    background: #175cd3;
    border-radius: 20px;
}

.resume-ats-section {
    margin: 17px 0;
}

.resume-ats-section h4 {
    margin: 0 0 9px;
    color: #344054;
    font-size: 13px;
}

.resume-ats-section ul {
    margin: 0;
    padding-left: 20px;
}

.resume-ats-section li {
    margin: 6px 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.resume-ats-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.resume-ats-keyword {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #eff6ff;
    color: #175cd3;
    font-size: 11px;
    font-weight: 600;
}

.resume-ats-keyword.missing {
    background: #fff4ed;
    color: #c4320a;
}

.resume-ats-final-assessment {
    margin-top: 16px;
    padding: 13px;
    background: #f8fafc;
    border-left: 3px solid #175cd3;
    border-radius: 6px;
    color: #475467;
    font-size: 12px;
    line-height: 1.7;
}

.resume-ats-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.resume-ats-actions button {
    margin: 0;
}

.resume-ats-character-count {
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
    text-align: right;
}

.resume-ats-optimized-label {
    margin: 12px 0;
    padding: 10px 12px;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 8px;
    color: #027a48;
    font-size: 12px;
    font-weight: 600;
}

/* Mobile ATS layout */
@media(max-width:600px) {
    .resume-ats-panel {
        padding: 15px;
    }

    .resume-ats-score-card {
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .resume-ats-score {
        flex-basis: 65px;
        width: 65px;
        height: 65px;
        font-size: 20px;
    }

    .resume-ats-category-scores {
        grid-template-columns: 1fr;
    }

    .resume-ats-actions {
        flex-direction: column;
    }

    .resume-ats-actions button {
        width: 100%;
        margin: 0;
    }
}

/* =========================================================
   ATS REVIEWER - PROFESSIONAL DASHBOARD
   ========================================================= */

#resumeReviewerPanel,
.resume-reviewer-panel {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0 0 30px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.resume-reviewer-panel * {
    box-sizing: border-box;
    font-family: inherit;
}

.resume-reviewer-heading {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4e7ec;
}

.resume-reviewer-heading h2 {
    margin: 0 0 8px;
    color: inherit;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
}

.resume-reviewer-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   JOB DESCRIPTION FORM
   --------------------------------------------------------- */

.resume-reviewer-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.resume-reviewer-field {
    width: 100%;
}

.resume-reviewer-field label {
    display: block;
    margin-bottom: 8px;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.resume-reviewer-field input,
.resume-reviewer-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #ffffff;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.resume-reviewer-field input:focus,
.resume-reviewer-field textarea:focus {
    border-color: #175cd3;
    box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.10);
}

.resume-reviewer-field textarea {
    min-height: 180px;
    resize: vertical;
}

.resume-reviewer-character-count {
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    text-align: right;
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.resume-reviewer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid #175cd3;
    border-radius: 8px;
    background: #175cd3;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.resume-reviewer-button:hover {
    background: #1849a9;
    border-color: #1849a9;
    color: #ffffff;
}

.resume-reviewer-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.resume-reviewer-button.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.resume-reviewer-optimize-button {
    background: #15803d;
    border-color: #15803d;
}

.resume-reviewer-optimize-button:hover {
    background: #166534;
    border-color: #166534;
}

/* ---------------------------------------------------------
   STATUS MESSAGES
   --------------------------------------------------------- */

.resume-reviewer-status {
    margin: 18px 0;
    padding: 13px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #f9fafb;
    color: #344054;
    font-size: 14px;
    line-height: 1.6;
}

.resume-reviewer-status.success {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.resume-reviewer-status.error {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.resume-reviewer-status.loading {
    border-color: #b2ccff;
    background: #eff8ff;
    color: #175cd3;
}

/* ---------------------------------------------------------
   ATS RESULTS
   --------------------------------------------------------- */

.resume-ats-results {
    width: 100%;
    margin-top: 26px;
}

.resume-ats-results h3 {
    margin-top: 0;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.resume-ats-results p,
.resume-ats-results li {
    color: inherit;
    font-size: 14px;
    line-height: 1.65;
}

/* ---------------------------------------------------------
   LARGE CIRCULAR SCORE
   --------------------------------------------------------- */

.resume-ats-score-card {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    margin-bottom: 26px;
    padding: 26px;
    border: 1px solid #d1fadf;
    border-radius: 14px;
    background: #f6fef9;
}

.resume-ats-score-circle {
    position: relative;
    display: flex;
    flex: 0 0 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        #16a34a 0%,
        #16a34a 80%,
        #e5e7eb 80%,
        #e5e7eb 100%
    );
    isolation: isolate;
}

.resume-ats-score-circle::before {
    position: absolute;
    z-index: -1;
    inset: 10px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.resume-ats-score-circle span {
    display: block;
    color: #101828;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
}

.resume-ats-score-circle small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.resume-ats-score-information {
    flex: 1;
    min-width: 0;
}

.resume-ats-score-information h3 {
    margin: 0 0 9px;
    color: #101828;
    font-size: 21px;
    font-weight: 700;
}

.resume-ats-score-information p {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   CATEGORY SCORES
   --------------------------------------------------------- */

.resume-ats-category-section {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
}

.resume-ats-category-section h3 {
    margin-bottom: 20px;
}

#resumeATSCategoryScores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
}

.resume-ats-category-row {
    min-width: 0;
}

.resume-ats-category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: #344054;
    font-size: 13px;
}

.resume-ats-category-top strong {
    color: #101828;
    font-size: 13px;
    white-space: nowrap;
}

.resume-ats-progress-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 20px;
    background: #eaecf0;
}

.resume-ats-progress-fill {
    height: 100%;
    border-radius: 20px;
    background: #16a34a;
    transition: width 0.5s ease;
}

/* ---------------------------------------------------------
   FINDINGS CARDS
   --------------------------------------------------------- */

.resume-ats-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.resume-ats-detail-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
}

.resume-ats-detail-card h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 15px;
    color: #101828;
    font-size: 15px;
}

.resume-ats-detail-card ul,
.resume-ats-recommendations ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.resume-ats-detail-card li,
.resume-ats-recommendations li {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 27px;
    border-bottom: 1px solid #f2f4f7;
    color: #344054;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.resume-ats-detail-card li:last-child,
.resume-ats-recommendations li:last-child {
    border-bottom: 0;
}

/* Strengths - green check marks */

#resumeATSStrengths li::before {
    position: absolute;
    top: 10px;
    left: 0;
    color: #16a34a;
    font-size: 16px;
    font-weight: 800;
    content: "✓";
}

.resume-ats-detail-card:has(#resumeATSStrengths) {
    border-top: 3px solid #16a34a;
    background: #f6fef9;
}

/* Weaknesses - red warning markers */

#resumeATSWeaknesses li::before {
    position: absolute;
    top: 10px;
    left: 0;
    color: #dc2626;
    font-size: 16px;
    font-weight: 800;
    content: "!";
}

.resume-ats-detail-card:has(#resumeATSWeaknesses) {
    border-top: 3px solid #dc2626;
    background: #fffbfa;
}

/* Missing keywords - amber markers */

#resumeATSMissingKeywords li::before {
    position: absolute;
    top: 10px;
    left: 0;
    color: #d97706;
    font-size: 16px;
    font-weight: 800;
    content: "!";
}

.resume-ats-detail-card:has(#resumeATSMissingKeywords) {
    border-top: 3px solid #f59e0b;
    background: #fffcf5;
}

/* Matched keywords - green check marks */

#resumeATSMatchedKeywords li::before {
    position: absolute;
    top: 10px;
    left: 0;
    color: #16a34a;
    font-size: 16px;
    font-weight: 800;
    content: "✓";
}

.resume-ats-detail-card:has(#resumeATSMatchedKeywords) {
    border-top: 3px solid #16a34a;
    background: #f6fef9;
}

/* ---------------------------------------------------------
   RECOMMENDATIONS
   --------------------------------------------------------- */

.resume-ats-recommendations {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid #b2ccff;
    border-top: 3px solid #175cd3;
    border-radius: 12px;
    background: #f5f9ff;
}

.resume-ats-recommendations h3 {
    margin-bottom: 12px;
    color: #1849a9;
}

.resume-ats-recommendations li::before {
    position: absolute;
    top: 10px;
    left: 0;
    color: #175cd3;
    font-size: 16px;
    font-weight: 800;
    content: "✓";
}

/* ---------------------------------------------------------
   FINAL ASSESSMENT
   --------------------------------------------------------- */

.resume-ats-assessment {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #d6bbfb;
    border-left: 4px solid #7f56d9;
    border-radius: 10px;
    background: #fafaff;
}

.resume-ats-assessment h3 {
    margin-bottom: 10px;
    color: #6941c6;
}

.resume-ats-assessment p {
    margin: 0;
    color: #344054;
    font-size: 14px;
    line-height: 1.75;
}

/* ---------------------------------------------------------
   JOB OPTIMIZATION SECTION
   --------------------------------------------------------- */

.resume-reviewer-optimize-area {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #f6fef9;
}

.resume-reviewer-optimize-area h3 {
    margin: 0 0 8px;
    color: #067647;
}

.resume-reviewer-optimize-area p {
    margin: 0 0 17px;
    color: #475467;
    font-size: 14px;
    line-height: 1.6;
}

.resume-job-optimization-result {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
}

.resume-job-optimization-success h3 {
    margin: 0 0 8px;
    color: #067647;
}

.resume-job-optimization-success p {
    color: #344054;
    font-size: 14px;
    line-height: 1.6;
}

.resume-job-optimization-result .resume-reviewer-button {
    margin: 8px 8px 0 0;
}

/* ---------------------------------------------------------
   RESPONSIVE DISPLAY
   --------------------------------------------------------- */

@media (max-width: 700px) {

    #resumeReviewerPanel,
    .resume-reviewer-panel {
        padding: 18px;
        border-radius: 12px;
    }

    .resume-ats-score-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 16px;
    }

    .resume-ats-score-circle {
        flex-basis: 130px;
        width: 130px;
        height: 130px;
    }

    .resume-ats-score-circle span {
        font-size: 36px;
    }

    #resumeATSCategoryScores,
    .resume-ats-detail-grid {
        grid-template-columns: 1fr;
    }

    .resume-reviewer-heading h2 {
        font-size: 20px;
    }

    .resume-reviewer-button {
        width: 100%;
    }

    .resume-job-optimization-result .resume-reviewer-button {
        margin: 8px 0 0;
    }
}
#resumeApp .resume-template-thumbnail.resume-template-picture {
    display: block !important;
    position: relative;
    height: auto !important;
    aspect-ratio: 210 / 297;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
}

#resumeApp .resume-template-picture::before,
#resumeApp .resume-template-picture::after {
    display: none !important;
}

#resumeApp .resume-template-picture > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    margin: 0 !important;
}