/* Non-production proposal; append after main-preview.css + integration.css. Scope: home header and resume dialog only. */
.hm-main .hm-nav { display:none; } /* fixed 1160px content width: keep all links in existing details menu, avoid CTA collision */
.hm-main .hm-menu { display:block; margin-left:auto; }
.hm-main .hm-header__inner { gap:12px; }
.hm-main .hm-header__actions { display:flex; align-items:center; gap:8px; min-width:0; }
.hm-main .hm-resume-trigger {
  flex:none; border:1px solid var(--hm-red); background:transparent; color:var(--hm-red)!important;
  font:inherit; font-size:13px; font-weight:760; line-height:1.25; cursor:pointer;
}
.hm-main .hm-resume-trigger:hover { background:#fff0e9; }
.hm-main .hm-menu__panel .hm-resume-menu-trigger {
  display:flex; align-items:center; width:100%; min-height:44px; padding:8px 12px;
  border:0; border-radius:8px; background:transparent; color:var(--hm-ink);
  font:inherit; font-size:14px; font-weight:650; text-align:left; cursor:pointer;
}
.hm-main .hm-menu__panel .hm-resume-menu-trigger:hover { background:#fff0e9; color:var(--hm-red); }

.hm-main .hm-resume-dialog {
  width:min(480px,calc(100vw - 28px)); max-width:none; max-height:calc(100dvh - 32px);
  padding:24px; overflow:auto; border:1px solid var(--hm-line); border-radius:16px;
  background:var(--hm-paper); color:var(--hm-ink); box-shadow:0 24px 70px rgba(38,31,27,.2);
  font:16px/1.55 Inter,Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.hm-main .hm-resume-dialog::backdrop { background:rgba(41,36,33,.58); }
.hm-main .hm-resume-dialog__head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.hm-main .hm-resume-dialog h2 { margin:0; font-size:clamp(24px,5vw,30px); line-height:1.14; letter-spacing:-.035em; }
.hm-main .hm-resume-dialog__close {
  flex:none; width:44px; height:44px; margin:-8px -8px 0 0; border:0; border-radius:8px;
  background:transparent; color:var(--hm-ink); font-family:inherit; font-size:28px; line-height:1; cursor:pointer;
}
.hm-main .hm-resume-dialog__close:hover { background:#f7f4ef; }
.hm-main #hm-resume-intro { margin:12px 0 20px; color:var(--hm-muted); font-size:14px; }
.hm-main .hm-resume-form { display:grid; gap:16px; }
.hm-main .hm-resume-field { display:grid; gap:8px; min-width:0; }
.hm-main .hm-resume-field label { font-size:14px; font-weight:750; }
.hm-main .hm-resume-field input[type=file] { width:100%; min-width:0; padding:8px; border:1px solid var(--hm-line); border-radius:8px; background:#fff; color:var(--hm-ink); font-family:inherit; font-size:14px; line-height:1.4; }
.hm-main .hm-resume-field input[type=file]::file-selector-button { margin-right:10px; padding:8px 10px; border:1px solid var(--hm-line); border-radius:7px; background:#f7f4ef; color:var(--hm-ink); font:inherit; cursor:pointer; }
.hm-main .hm-resume-note,.hm-main .hm-resume-selected { margin:0; color:var(--hm-muted); font-size:13px; overflow-wrap:anywhere; }
.hm-main .hm-resume-consent { display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.45; cursor:pointer; }
.hm-main .hm-resume-consent input { flex:none; width:18px; height:18px; margin:1px 0 0; accent-color:var(--hm-red); }
.hm-main .hm-resume-consent a,.hm-main .hm-resume-result a { color:var(--hm-red); text-decoration:underline; text-underline-offset:2px; }
.hm-main .hm-resume-error { margin:0; color:#98231e; font-size:13px; font-weight:700; }
.hm-main .hm-resume-field input[aria-invalid=true] { border-color:#98231e; }
.hm-main .hm-resume-consent:has(input[aria-invalid=true]) { outline:2px solid #98231e; outline-offset:4px; border-radius:3px; }
.hm-main .hm-resume-status,.hm-main .hm-resume-result { padding:12px 14px; border-radius:8px; font-size:14px; }
.hm-main .hm-resume-status { background:#f7f4ef; }
.hm-main .hm-resume-result { display:grid; gap:3px; background:var(--hm-mint); }
.hm-main .hm-resume-result--error { background:#fff0e9; }
.hm-main .hm-resume-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.hm-main .hm-resume-actions button { min-height:44px; cursor:pointer; }
.hm-main .hm-resume-cancel { padding:9px 14px; border:1px solid var(--hm-line); border-radius:10px; background:#fff; color:var(--hm-ink); font-family:inherit; font-size:14px; font-weight:700; line-height:1.3; }
.hm-main .hm-resume-submit { border:0; }
.hm-main .hm-resume-submit:disabled { cursor:wait; opacity:.7; }
.hm-main .hm-resume-dialog :focus-visible,.hm-main .hm-resume-trigger:focus-visible,.hm-main .hm-resume-menu-trigger:focus-visible { outline:3px solid var(--hm-red); outline-offset:3px; }
.hm-main .hm-resume-dialog [hidden] { display:none!important; }

@media(max-width:600px) {
  .hm-main .hm-header__inner { grid-template-columns:minmax(0,1fr) auto; gap:6px 8px; }
  .hm-main .hm-header__actions { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; width:100%; }
  .hm-main .hm-header__actions .hm-button {
    width:100%; min-width:0; min-height:52px; padding:5px 7px;
    font-size:11px; line-height:1.2; white-space:normal; overflow-wrap:normal;
  }
  .hm-main .hm-menu__panel { position:fixed; top:calc(132px + env(safe-area-inset-top,0px)); right:14px; max-height:calc(100dvh - 148px - env(safe-area-inset-top,0px)); z-index:101; }
  .hm-main main { padding-top:calc(136px + env(safe-area-inset-top,0px)); }
  .hm-main section[id],.hm-main main { scroll-margin-top:calc(146px + env(safe-area-inset-top,0px)); }
  .hm-main .hm-resume-dialog { padding:20px 16px; max-height:calc(100dvh - 24px); }
  .hm-main .hm-resume-actions { display:grid; grid-template-columns:1fr 1fr; }
}
