/* Functional UI round 02: resume and target preparation. Deliberately scoped to
 * the P04 root; presentation only, with no hidden permissions or feature gates. */
#resumeProfileWorkspace.p04-profile {
  --p04-bg: var(--hw-ui-surface, #fff);
  --p04-soft: var(--hw-ui-hover, #eeeff2);
  --p04-text: var(--hw-ui-text, #20252d);
  --p04-muted: var(--hw-ui-muted, #626a75);
  --p04-line: var(--hw-ui-line, #e6e8ec);
  --p04-blue: var(--hw-ui-primary, #a63a32);
  --p04-warning: #795315;
  --p04-warning-bg: #fff8e9;
  max-width: 1180px;
  padding: 32px 28px calc(44px + env(safe-area-inset-bottom, 0px));
  color: var(--p04-text) !important;
  background: transparent !important;
  line-height: 1.65;
}
html[data-theme="dark"] #resumeProfileWorkspace.p04-profile {
  --p04-bg: var(--hw-ui-surface, #1d2026);
  --p04-soft: var(--hw-ui-hover, #24272e);
  --p04-text: var(--hw-ui-text, #f3f4f6);
  --p04-muted: var(--hw-ui-muted, #acb1bb);
  --p04-line: var(--hw-ui-line, #30343d);
  --p04-blue: var(--hw-ui-primary, #b94338);
  --p04-warning: #efcd91;
  --p04-warning-bg: #332a1f;
}
#resumeProfileWorkspace.p04-profile :is(h2, h3, p, label, strong, small, span, dt, dd, li) {
  color: inherit !important;
  background: transparent !important;
}
#resumeProfileWorkspace.p04-profile .p04-header {
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
}
#resumeProfileWorkspace.p04-profile .p04-header h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 3vw, 32px) !important;
  line-height: 1.3;
  letter-spacing: -.025em;
}
#resumeProfileWorkspace.p04-profile .p04-eyebrow {
  color: var(--p04-muted) !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .02em;
}
#resumeProfileWorkspace.p04-profile .p04-muted { color: var(--p04-muted) !important; }
#resumeProfileWorkspace.p04-profile :is(h2,h3) { color: var(--p04-text) !important; }
#resumeProfileWorkspace.p04-profile .p04-small { font-size: 13px !important; }
#resumeProfileWorkspace.p04-profile .p04-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  margin: 0 0 24px;
  border: 1px solid var(--p04-line);
  border-radius: 14px;
  background: var(--p04-bg) !important;
}
#resumeProfileWorkspace.p04-profile .p04-steps li {
  padding: 12px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--p04-muted) !important;
  min-width: 0;
}
#resumeProfileWorkspace.p04-profile .p04-steps li + li::before { content: none; }
#resumeProfileWorkspace.p04-profile .p04-steps li strong { display: block; font-size: 15px; font-weight: 650; }
#resumeProfileWorkspace.p04-profile .p04-steps li small { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
#resumeProfileWorkspace.p04-profile .p04-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--p04-line);
  border-radius: 50%;
}
#resumeProfileWorkspace.p04-profile .p04-steps [aria-current="step"] {
  color: var(--hw-ui-accent, #a63a32) !important;
  background: var(--hw-ui-soft, #f8ece9) !important;
}
#resumeProfileWorkspace.p04-profile .p04-steps [aria-current="step"] .p04-step-number { border-color: currentColor; }
#resumeProfileWorkspace.p04-profile .p04-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
#resumeProfileWorkspace.p04-profile .p04-main { min-width: 0; }
#resumeProfileWorkspace.p04-profile .p04-card {
  background: var(--p04-bg) !important;
  color: var(--p04-text) !important;
  border: 1px solid var(--p04-line) !important;
  border-radius: 14px;
  box-shadow: none !important;
  padding: 24px;
  margin-bottom: 18px;
}
#resumeProfileWorkspace.p04-profile .p04-card h3 { font-size: 20px !important; line-height: 1.5; }
#resumeProfileWorkspace.p04-profile .p04-card > p { line-height: 1.75; }
#resumeProfileWorkspace.p04-profile .p04-start-card { padding-block: 30px; }
#resumeProfileWorkspace.p04-profile .p04-start-card > .p04-actions { margin-top: 24px; }
#resumeProfileWorkspace.p04-profile .p04-guide {
  border: 1px solid var(--p04-line);
  border-radius: 14px;
  padding: 22px;
  background: var(--p04-bg) !important;
  color: var(--p04-text) !important;
}
#resumeProfileWorkspace.p04-profile .p04-guide h3 { margin: 8px 0 12px; font-size: 17px !important; line-height: 1.6; }
#resumeProfileWorkspace.p04-profile .p04-guide p { font-size: 14px !important; line-height: 1.8; }
#resumeProfileWorkspace.p04-profile .p04-boundaries { margin: 22px 0 0; border-top: 1px solid var(--p04-line); }
#resumeProfileWorkspace.p04-profile .p04-boundaries > div { padding-top: 16px; }
#resumeProfileWorkspace.p04-profile .p04-boundaries dt { font-weight: 650; font-size: 13px; }
#resumeProfileWorkspace.p04-profile .p04-boundaries dd { margin: 4px 0 0; font-size: 13px; color: var(--p04-muted) !important; line-height: 1.8; }
#resumeProfileWorkspace.p04-profile .p04-input-mode {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--p04-line);
  border-radius: 10px;
  background: var(--p04-soft);
}
#resumeProfileWorkspace.p04-profile .p04-input-mode .p04-button { min-height: 40px; padding: 7px 18px; border-color: transparent !important; background: transparent !important; }
#resumeProfileWorkspace.p04-profile .p04-input-mode [aria-pressed="true"] {
  background: var(--p04-bg) !important;
  color: var(--hw-ui-accent, #a63a32) !important;
  border-color: var(--p04-line) !important;
}
#resumeProfileWorkspace.p04-profile .p04-upload-area { padding: 20px; border: 1px dashed var(--p04-line); border-radius: 10px; background: var(--p04-bg); }
#resumeProfileWorkspace.p04-profile .p04-upload-area p { margin-top: 12px; }
#resumeProfileWorkspace.p04-profile :is(input:not([type="checkbox"]), textarea, select) {
  background: var(--p04-bg) !important;
  color: var(--p04-text) !important;
  border: 1px solid var(--p04-line) !important;
  border-radius: 8px;
  min-height: 44px;
  font-size: 15px !important;
  line-height: 1.65;
}
#resumeProfileWorkspace.p04-profile textarea::placeholder { color: var(--p04-muted) !important; }
#resumeProfileWorkspace.p04-profile input[type="file"] { padding: 8px; font-size: 13px !important; }
#resumeProfileWorkspace.p04-profile input[type="file"]::file-selector-button {
  border: 1px solid var(--p04-line);
  border-radius: 6px;
  min-height: 34px;
  padding: 5px 10px;
  margin-right: 12px;
  background: var(--p04-soft);
  color: var(--p04-text);
  font: inherit;
  cursor: pointer;
}
#resumeProfileWorkspace.p04-profile input[type="checkbox"] { accent-color: var(--p04-blue); }
#resumeProfileWorkspace.p04-profile .p04-consent { padding: 14px 16px; border: 1px solid var(--p04-line); border-radius: 8px; font-size: 14px !important; line-height: 1.8; }
#resumeProfileWorkspace.p04-profile .p04-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--p04-line) !important;
  background: var(--p04-bg) !important;
  color: var(--p04-text) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
#resumeProfileWorkspace.p04-profile .p04-button:hover:not(:disabled) { background: var(--p04-soft) !important; }
#resumeProfileWorkspace.p04-profile .p04-button.p04-primary {
  background: var(--p04-blue) !important;
  border-color: var(--p04-blue) !important;
  color: #fff !important;
}
html[data-theme="dark"] #resumeProfileWorkspace.p04-profile .p04-button.p04-primary {
  background: var(--p04-blue) !important;
  border-color: var(--p04-blue) !important;
  color: #fff !important;
}
#resumeProfileWorkspace.p04-profile .p04-button.p04-primary:hover:not(:disabled) { background: var(--hw-ui-primary-hover, #902d27) !important; }
#resumeProfileWorkspace.p04-profile .p04-button:disabled { opacity: .65; cursor: not-allowed; }
#resumeProfileWorkspace.p04-profile :is(button, input, select, textarea, summary, a):focus-visible { outline: 3px solid var(--hw-ui-focus, #a63a32) !important; outline-offset: 3px; }
#resumeProfileWorkspace.p04-profile .p04-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#resumeProfileWorkspace.p04-profile .p04-state { color: var(--p04-muted) !important; background: var(--p04-soft) !important; font-size: 12px !important; border-radius: 6px; }
#resumeProfileWorkspace.p04-profile .p04-fact { padding: 20px 0; }
#resumeProfileWorkspace.p04-profile .p04-fact-text { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; }
#resumeProfileWorkspace.p04-profile .p04-fact-number { flex: 0 0 24px; min-height: 24px; text-align: center; border: 1px solid var(--p04-line); border-radius: 6px; color: var(--p04-muted) !important; font-size: 12px; margin-top: 2px; }
#resumeProfileWorkspace.p04-profile .p04-fact .p04-grid { gap: 16px; }
#resumeProfileWorkspace.p04-profile [data-p04-correction] { margin-top: 14px; }
#resumeProfileWorkspace.p04-profile details { border-color: var(--p04-line); }
#resumeProfileWorkspace.p04-profile summary { min-height: 44px; padding: 9px 0; color: var(--p04-muted) !important; font-size: 14px !important; line-height: 1.8; }
#resumeProfileWorkspace.p04-profile summary:hover { color: var(--p04-text) !important; }
#resumeProfileWorkspace.p04-profile details[open] > summary { color: var(--p04-text) !important; }
#resumeProfileWorkspace.p04-profile details.p04-card { padding-block: 10px; }
#resumeProfileWorkspace.p04-profile details.p04-card[open] { padding-bottom: 22px; }
#resumeProfileWorkspace.p04-profile details.p04-card > .p04-card { border: 0 !important; padding: 6px 0 0; margin-bottom: 0; }
#resumeProfileWorkspace.p04-profile .p04-source { background: var(--p04-soft) !important; color: var(--p04-text) !important; border-color: var(--p04-line); font-size: 14px; border-radius: 0 8px 8px 0; }
#resumeProfileWorkspace.p04-profile .p04-next-step { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--p04-line); }
#resumeProfileWorkspace.p04-profile .p04-next-step > * + * { margin-top: 12px; }
#resumeProfileWorkspace.p04-profile .p04-pending-feature { padding: 16px; border: 1px dashed var(--p04-line); border-radius: 10px; }
#resumeProfileWorkspace.p04-profile .p04-pending-feature p { margin-top: 10px; }
#resumeProfileWorkspace.p04-profile .p04-notice { background: var(--p04-soft) !important; color: var(--p04-text) !important; }
#resumeProfileWorkspace.p04-profile .p04-notice[data-tone="warning"] { background: var(--p04-warning-bg) !important; color: var(--p04-warning) !important; }
@media (max-width: 1000px) {
  #resumeProfileWorkspace.p04-profile .p04-workbench { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #resumeProfileWorkspace.p04-profile .p04-boundaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 720px) {
  #resumeProfileWorkspace.p04-profile { padding: 22px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  #resumeProfileWorkspace.p04-profile .p04-header { align-items: flex-start; gap: 14px; }
  #resumeProfileWorkspace.p04-profile .p04-steps { gap: 4px; padding: 6px; }
  #resumeProfileWorkspace.p04-profile .p04-steps li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 6px; }
  #resumeProfileWorkspace.p04-profile .p04-steps li strong { font-size: 13px; }
  #resumeProfileWorkspace.p04-profile .p04-steps li small { font-size: 11px; line-height: 1.7; }
  #resumeProfileWorkspace.p04-profile .p04-card { padding: 20px 16px; }
  #resumeProfileWorkspace.p04-profile .p04-upload-area { padding: 16px; }
  #resumeProfileWorkspace.p04-profile .p04-actions { align-items: stretch; gap: 10px; }
  #resumeProfileWorkspace.p04-profile .p04-actions .p04-button { width: 100%; }
  #resumeProfileWorkspace.p04-profile .p04-boundaries { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #resumeProfileWorkspace.p04-profile * { scroll-behavior: auto; transition: none; }
}
