.sidebar__spacer { flex: 1 0 16px; }
.nova-launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  width: calc(100% + 10px);
  min-height: 76px;
  margin: 18px 0 0 -10px;
  padding: 10px 7px;
  text-align: left;
  border: 1px solid rgba(247,156,53,.3);
  border-radius: 12px;
  background: radial-gradient(ellipse at 0 100%, rgba(247,156,53,.18), transparent 75%), #0c111a;
  transition: border-color .2s, background .2s;
}
.nova-launcher:hover { border-color: var(--orange); background-color: #18202d; }
.nova-launcher__portrait { flex: 0 0 43px; height: 54px; overflow: hidden; }
.nova-launcher__portrait img { width: 58px; max-width: none; height: 58px; object-fit: cover; }
.nova-launcher__copy { display: grid; gap: 5px; }
.nova-launcher__copy strong { font-size: 13px; color: #ffe5c8; font-weight: 600; }
.nova-launcher__copy > span { font-size: 9px; line-height: 1.5; color: var(--muted); }
.nova-launcher__arrow { position: absolute; top: 6px; right: 7px; color: var(--orange); font-size: 12px; }
.nova {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(820px, calc(100vw - 48px));
  max-width: none;
  max-height: none;
  height: min(860px, calc(100dvh - 48px));
  padding: 0;
  border: 1px solid rgba(192,157,123,.28);
  border-radius: 22px;
  color: var(--text);
  background: #0a101a;
  box-shadow: 0 30px 120px #000b, 0 0 70px #f79c3510;
  overflow: hidden;
}
.nova::backdrop { background: rgba(1,4,9,.7); backdrop-filter: blur(6px); }
.nova[open] { animation: nova-enter .2s ease-out; }
.nova__shell { display: flex; flex-direction: column; height: 100%; }
.nova__header { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, #f79c350b, transparent 65%); }
.nova__avatar { width: 44px; height: 44px; border-radius: 50%; background: #f79c3514; overflow: hidden; border: 1px solid #f79c3540; }
.nova__avatar img { width: 52px; max-width: none; height: 52px; object-fit: cover; }
.nova__identity { flex: 1; min-width: 0; }
.nova__identity h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -.03em; }
.nova__identity h2 span { font-size: 9px; font-weight: 500; letter-spacing: .08em; border: 1px solid #f79c3540; border-radius: 4px; padding: 3px 5px; color: var(--orange-2); }
.nova__identity p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.nova__icon-button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; font-size: 22px; color: var(--muted); }
.nova__icon-button:hover { color: #fff; border-color: var(--orange); }
.nova__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 20px; scrollbar-width: thin; scrollbar-color: #425066 transparent; }
.nova__welcome { text-align: center; padding-top: 16px; }
.nova__hero { width: 125px; height: 125px; margin: 0 auto 9px; object-fit: contain; filter: drop-shadow(0 0 28px #f79c3530); }
.nova__eyebrow { margin: 0 0 10px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--orange-2); }
.nova__welcome h3 { margin: 0; font-size: clamp(26px, 5vw, 32px); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; }
.nova__welcome h3 span { color: var(--orange-2); }
.nova__welcome > p:last-child { margin: 12px auto 20px; color: var(--muted); max-width: 340px; font-size: 13px; line-height: 1.7; }
.nova__suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nova__suggestions button { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 14px; min-height: 45px; font-size: 12px; line-height: 1.4; text-align: left; color: #d7dce5; border: 1px solid var(--line); border-radius: 10px; background: #ffffff03; }
.nova__suggestions button > span:last-child { color: var(--orange-2); }
.nova__suggestions button:hover { border-color: #f79c3580; background: #f79c3509; }
.nova__messages { display: flex; flex-direction: column; gap: 20px; }
.nova__messages:not(:empty) { padding-top: 24px; }
.nova__message { max-width: 94%; }
.nova__message--user { align-self: flex-end; background: #f79c3514; border: 1px solid #f79c352b; border-radius: 14px 14px 4px 14px; padding: 12px 15px; }
.nova__message--assistant { align-self: flex-start; }
.nova__message-name { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 600; letter-spacing: .05em; color: var(--orange-2); }
.nova__message--user .nova__message-name { color: var(--muted); }
.nova__message p { margin: 0; color: #dce2ec; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.nova__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.nova__links a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 10px; font-size: 11px; line-height: 1.5; color: var(--orange-2); border: 1px solid #f79c3533; border-radius: 8px; }
.nova__links a:hover { background: #f79c3514; }
.nova__thinking { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.nova__thinking span { animation: nova-thinking 1s ease-in-out infinite alternate; }
.nova__footer { flex-shrink: 0; padding: 15px 20px 16px; border-top: 1px solid var(--line); background: #0c121d; }
.nova__notice { margin: 0 0 10px; font-size: 11px; line-height: 1.5; color: #edc390; }
.nova__retry { min-height: 36px; margin: 0 0 12px; padding: 7px 12px; border: 1px solid #f79c3566; border-radius: 8px; color: var(--orange-2); font-size: 12px; }
.nova__retry:disabled { opacity: .55; cursor: default; }
.nova__form { display: flex; align-items: flex-end; gap: 10px; border: 1px solid #a5b3ca40; border-radius: 13px; padding: 9px; background: #050a12; }
.nova__form:focus-within { border-color: #f79c3599; }
.nova__form textarea { display: block; flex: 1; min-width: 0; min-height: 36px; max-height: 110px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); padding: 8px 3px; line-height: 1.5; font-size: 14px; }
.nova__form textarea::placeholder { color: #8894a7; }
.nova__send { width: 36px; height: 36px; flex-shrink: 0; background: var(--orange); border-radius: 9px; color: #15100b; font-size: 24px; }
.nova__send:disabled { background: #222c3c; color: #748096; cursor: default; }
.nova__privacy { margin: 10px 0 0; font-size: 10px; color: #a4afc1; line-height: 1.6; }
.nova__privacy a { color: #d7dce5; white-space: nowrap; }
.nova [hidden], .nova-resume[hidden] { display: none !important; }
.nova-resume { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 16px 10px 10px; border: 1px solid #f79c3570; border-radius: 18px; background: #101824; box-shadow: 0 10px 40px #0008; text-align: left; }
.nova-resume img { flex-shrink: 0; width: 42px; height: 42px; object-fit: contain; }
.nova-resume > span:first-of-type { display: grid; gap: 4px; }
.nova-resume strong { color: #ffe5c8; font-size: 14px; }
.nova-resume [data-nova-resume-status] { color: var(--muted); font-size: 11px; }
.nova-resume > span:last-child { color: var(--orange-2); }
.nova-resume:hover { border-color: var(--orange); background: #18202d; }
.nova button:focus-visible, .nova a:focus-visible, .nova-launcher:focus-visible, .nova-resume:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@keyframes nova-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nova-thinking { from { opacity: .3; } to { opacity: 1; } }
@media (max-width: 1080px) {
  .sidebar { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .nova-launcher { width: auto; min-height: 44px; margin: 0; padding: 4px 10px 4px 4px; gap: 6px; }
  .nova-launcher__portrait { flex-basis: 30px; height: 34px; }
  .nova-launcher__portrait img { width: 36px; height: 36px; }
  .nova-launcher__copy strong { font-size: 12px; }
  .nova-launcher__copy > span, .nova-launcher__arrow { display: none; }
}
@media (max-width: 760px) {
  .sidebar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .sidebar__cv { grid-column: 3; }
  .nova-launcher { grid-column: 2; grid-row: 1; }
  .nova { width: calc(100vw - 20px); height: min(740px, calc(100dvh - 20px)); border-radius: 18px; }
  .nova__scroll { padding-inline: 18px; }
  .nova__header { padding: 13px 15px; gap: 9px; }
  .nova__footer { padding: 12px 14px max(14px, env(safe-area-inset-bottom)); }
  .nova__form textarea { font-size: 16px; }
  .nova__suggestions { grid-template-columns: 1fr; }
  .nova__avatar { flex-shrink: 0; width: 36px; height: 36px; }
  .nova__identity p { font-size: 10px; }
  .nova-resume { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .nova__header { padding-inline: 10px; gap: 6px; }
  .nova__identity p { max-width: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  .nova[open], .nova__thinking span { animation: none; }
  .nova-launcher { transition: none; }
}
