.design-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.design-sidebar { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border: 1px solid #d3e2d9; border-radius: 12px; background: #f7faf8; }
.sidebar-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid #d3e2d9; background: #f7faf8; }
.sidebar-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: #52695b; font: 600 13px 'DM Sans',sans-serif; cursor: pointer; }
.sidebar-tabs button[aria-selected=true] { color: #fff; background: #0b5c40; }
.design-sidebar .design-toolbar, .design-sidebar .template-options { border: 0; margin: 0; border-radius: 0; }
.design-sidebar .design-intro { display: block; }
.design-sidebar .design-intro span { display: block; margin-top: 8px; }
.design-sidebar .design-controls { gap: 10px; }
.design-sidebar .design-controls label { flex: 1 1 100px; min-width: 0; }
.design-sidebar .design-controls select { width: 100%; }
.design-sidebar .design-controls label:has(#designTarget), .design-sidebar .design-controls label:has(#designFont) { flex-basis: 100%; }
.design-sidebar .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.design-sidebar .library-top, .design-sidebar .format-controls { flex-wrap: wrap; }
.design-sidebar .template-options summary { padding: 14px 16px; }
.design-sidebar .template-options summary small { display: block; margin: 4px 0 0; }
.design-sidebar .template-card small { white-space: normal; }
.resume-canvas { min-width: 0; max-height: calc(100vh - 32px); overflow: auto; background: #eaf0ec; border: 1px solid #dce7e0; border-radius: 10px; padding: 16px; scrollbar-gutter: stable; }
.resume-canvas .resume-preview { width: 100%; padding: 36px; min-width: 0; }
.resume-canvas .resume-preview.template-compact { padding: 28px; }
.resume-preview.size-compact [data-design-block] { font-size: 11px; }
.resume-preview.size-large [data-design-block] { font-size: 14px; }
.resume-preview.size-compact #previewName { font-size: 28px; }
.resume-preview.size-large #previewName { font-size: 38px; }
@media(max-width:950px) { .design-layout { grid-template-columns: 250px minmax(0,1fr); gap: 12px; } .resume-canvas { padding: 8px; } .resume-canvas .resume-preview { padding: 20px; } }
@media(max-width:700px) {
  .design-layout { display: flex; flex-direction: column; }
  .design-sidebar { position: static; width: 100%; max-height: 320px; }
  .resume-canvas { width: 100%; max-height: 75vh; }
}
@media print {
  .design-sidebar { display: none !important; }
  .design-layout { display: block; }
  .resume-canvas { overflow: visible; max-height: none; padding: 0; border: 0; border-radius: 0; background: white; }
  .resume-canvas .resume-preview { width: auto; padding: 30px; }
}

#previewExtraContact { overflow-wrap: anywhere; }
[data-extra-section]:has(#previewAdditional:empty) { display: none; }
.skill-selection-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.skill-selection-bar #skillSelection { margin: 0; }
.skill-selection-bar button { border: 1px solid #bfd5c8; background: white; color: #0b5c40; border-radius: 6px; padding: 7px 10px; font: 600 12px 'DM Sans',sans-serif; cursor: pointer; }
.skill-selection-bar button:disabled { opacity: .5; cursor: default; }
#keywordList { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 3px 7px 3px 3px; }
.resume-preview #previewExperience p { border-left: 0; padding-left: 0; margin: 0 0 8px; line-height: 1.65; }
.resume-preview #previewExperience .experience-heading { margin-top: 24px; margin-bottom: 5px; padding-top: 12px; border-top: 1px solid #dde5e0; color: #17221f; }
.resume-preview #previewExperience .experience-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.resume-preview #previewExperience .experience-heading strong, .resume-preview #previewExperience .experience-company strong { font-weight: 700; }
.resume-preview #previewExperience .experience-company { color: var(--green); margin-bottom: 6px; }
.resume-preview #previewExperience .experience-dates { color: #596b60; font-style: italic; margin-bottom: 12px; }
.resume-preview #previewExperience .experience-context { color: #596b60; margin-bottom: 10px; }
@media print { .experience-heading, .experience-company, .experience-dates { break-after: avoid; } #previewExperience p { orphans: 2; widows: 2; } }
.resume-canvas { background: #fff; }
.page-controls { display:flex; flex-wrap:wrap; gap:14px; padding:16px; margin-bottom:18px; border:1px solid #dce7e0; border-radius:10px; background:#f7faf8; }
.page-controls label,.export-format { margin:0; font-size:12px; }
.page-controls select,.export-format select { display:block; margin-top:5px; padding:8px; border:1px solid #c5d8ce; border-radius:6px; background:white; }
#exportStatus { flex-basis:100%; color:#52695b; font-size:12px; }
.resume-preview .manual-page-break { border-top:2px dashed #b4caba; padding-top:20px; }
.resume-preview [data-design-block] { zoom:var(--page-scale,1); }
.resume-preview p { line-height:var(--page-leading,1.55); }
@media print { .page-controls { display:none!important; } .manual-page-break { break-before:page; border-top:0!important; } }

.export-note {flex-basis:100%;font-size:12px;color:#52695b;margin:0;}
.manual-requirements { margin: 12px 0; padding: 10px; border: 1px solid #dce7e0; border-radius: 8px; font-size: 12px; }
.manual-requirements summary { cursor:pointer;font-weight:600; }
.manual-requirements label { margin:12px 0; }
.manual-requirements button { padding:8px 12px;background:#0b5c40;color:white;border:0;border-radius:6px;cursor:pointer; }
.manual-requirements p { margin-top:8px;color:#52695b; }
.review-resume-link { display:inline-block;margin-top:12px;color:#0b5c40;font-weight:700; }
#pdfPreviewDialog { width:min(1000px,95vw);max-width:95vw;border:1px solid #c5d8ce;border-radius:12px;padding:18px; }
#pdfPreviewDialog::backdrop {background:#17221f99;}
.pdf-dialog-heading {display:flex;justify-content:space-between;gap:16px;}
.pdf-dialog-heading button {padding:8px 16px;cursor:pointer;}
#pdfPreviewDialog p {font-size:13px;margin:10px 0;}
#pdfPreviewFrame {width:100%;height:70vh;border:1px solid #dce7e0;}
#savePreviewPdf {margin-top:10px;text-decoration:none;}
.preview-actions {flex-wrap:wrap;}
@media(max-width:600px){
 .top-overview .hero {padding:0;}
 .top-overview .hero h1 {font-size:23px;}
 .top-overview .hero h1 br {display:none;}
 .top-overview .hero-copy,.top-overview .eyebrow {display:none;}
 .feature-shortcuts {margin-top:12px;gap:6px;}
 .feature-shortcuts a {font-size:11px;padding:8px;}
 .top-overview .score-summary {margin-top:0;}
 .score-summary .score-card {flex-direction:row;padding:12px;align-items:center;gap:12px;}
 .score-summary .score-ring {flex-basis:60px;width:60px;height:60px;}
 .score-summary .score-ring span {font-size:24px;}
 .score-summary .score-card strong {font-size:15px;margin-bottom:0;}
 .score-summary .score-card p {font-size:11px;line-height:1.35;}
 .score-legend {display:none;}
 .score-summary .score-disclaimer {font-size:10px;margin-top:6px;}
 .top-overview {margin-bottom:12px;gap:12px;}
 .how-it-works {margin-bottom:14px;}
}
.skill-kind { display:block;font-size:10px;color:#60736b;font-weight:400;margin-top:2px; }
.persistent-steps { position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 14px #173c2410; background: #fff; margin-top: 0; }
.persistent-steps a { color: #17221f; text-decoration: none; }
.persistent-steps .how-step:last-child { background: #e9f7ee; border: 1px solid #acd3bb; }
.persistent-steps .how-step:hover { background: #dff1e7; }
#profileEditor, #jobMatcher, #designWorkspace, #resumePreview { scroll-margin-top: 110px; }
.design-sidebar { top: 104px; max-height: calc(100vh - 120px); }
.resume-canvas { max-height: calc(100vh - 120px); }
.next-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #dce7e0; }
.next-step-actions a { text-decoration: none; font-size: 12px; }
.open-editor-button { display: inline-flex; padding: 10px 14px; border-radius: 8px; color: white; background: #0b5c40; font-weight: 700; }
.next-step-actions p { flex-basis: 100%; font-size: 12px; color: #60736b; }
@media(max-width:600px) { .persistent-steps { gap: 4px; } .persistent-steps .how-step { padding: 8px 6px; } .persistent-steps .how-step strong { font-size: 11px; } .next-step-actions a { justify-content: center; width: 100%; } }
@media(max-width:700px) { .design-sidebar { top:auto; max-height:320px; } }
@media print { .persistent-steps,.next-step-actions {display:none!important;} .resume-canvas {max-height:none;} }
.metric-heading { font-size:12px; color:#52695b; font-weight:600; margin:0 0 8px; }
.keyword-coverage-card { display:flex; justify-content:space-between; align-items:center; gap:16px; background:#f1f6fb; border:1px solid #cedce8; border-radius:10px; padding:14px; margin-top:12px; }
.keyword-coverage-card strong { color:#274c68; font-size:14px; }
.keyword-coverage-card p { color:#526572; font-size:12px; line-height:1.5; margin-top:4px; }
.keyword-coverage-card #supportCoverageScore { font-size:26px; white-space:nowrap; }
@media(max-width:600px){.keyword-coverage-card{padding:10px;margin-top:8px}.keyword-coverage-card p{font-size:10px}.metric-heading{font-size:10px;margin-bottom:4px}}
/* Keep the actual tools above the fold; score explanations expand on demand. */
.top-overview { display:block; margin:0 0 16px; }
.shell { padding-top:16px; }
.persistent-steps { margin-bottom:12px; }
.compact-match { border:1px solid #dce7e0; border-radius:10px; background:#fff; overflow:hidden; }
.compact-match summary.score-card { list-style:none; cursor:pointer; margin:0; border:0; border-radius:0; padding:10px 16px; gap:14px; flex-direction:row; }
.compact-match summary::-webkit-details-marker {display:none;}
.compact-match .score-ring { width:48px; height:48px; flex-basis:48px; }
.compact-match .score-ring::before {inset:5px;}
.compact-match .score-ring span {font-size:21px;}
.compact-match .score-ring small {font-size:9px;margin:0;}
.compact-match .compact-match-title strong {display:block;font-size:14px;margin:0;}
.compact-match-title > span {font-size:11px;color:#52695b;}
.compact-evidence {margin-left:auto;color:#52695b;font-size:12px;}
.compact-match .compact-evidence strong {font-size:16px;margin:0 0 0 6px;color:#274c68;}
.match-details-label {font-size:12px;color:#0b5c40;white-space:nowrap;}
.match-details-body {padding:14px 18px;border-top:1px solid #dce7e0;font-size:12px;line-height:1.5;color:#52695b;}
#supportCoverageHelp {margin-top:12px;}
#designWorkspace .feature-shortcuts {margin:0 0 18px;}
@media(max-width:600px){
 .compact-match summary.score-card {padding:9px 10px;gap:9px;flex-wrap:wrap;}
 .compact-match .compact-match-title strong {font-size:12px;}
 .compact-evidence {margin-left:57px;font-size:11px;}
 .compact-match .compact-evidence strong {font-size:13px;}
 .match-details-label {margin-left:auto;font-size:11px;}
 .top-overview {margin-bottom:12px;}
 .compact-match .score-legend {display:flex;}
}
@media print {#designWorkspace .feature-shortcuts {display:none!important;}}
/* Give three-digit scores enough room without increasing the summary height. */
.compact-match .score-ring {
  flex: 0 0 116px;
  width: 116px;
  height: 56px;
  flex-direction: row;
  gap: 5px;
  border-radius: 9px;
  border: 2px solid var(--score-color);
  background: #fff !important;
  color: var(--score-color);
  font-variant-numeric: tabular-nums;
}
.compact-match .score-ring::before { display: none; }
.compact-match .score-ring span { font-size: 32px; line-height: 1; letter-spacing: -1px; }
.compact-match .score-ring small { font-size: 15px; font-weight: 600; line-height: 1; color: #42594d; margin-top: 8px; }
@media (max-width: 600px) {
  .compact-match .score-ring { flex-basis: 104px; width: 104px; height: 52px; }
  .compact-match .score-ring span { font-size: 29px; }
  .compact-match .score-ring small { font-size: 14px; }
  .compact-match .compact-evidence { margin-left: 0; }
}
