:root {
  --codex-ink: #171717;
  --codex-muted: #737373;
  --codex-soft: #f6f6f5;
  --codex-line: #e9e9e7;
  --codex-blue: #2f6fdd;
}

html,
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.codex-localized {
  color: var(--codex-ink);
  background: #fff !important;
}

body.codex-localized #__framer-badge-container,
body.codex-localized .__framer-badge,
body.codex-localized [data-framer-name*="delete me" i],
body.codex-localized [data-framer-name*="remove me" i] {
  display: none !important;
}

body.codex-localized [data-framer-name="Sidebar Header"] p,
body.codex-localized [data-framer-name="Full Name"] p,
body.codex-localized [data-framer-name="Name"] p {
  letter-spacing: 0;
}

body.codex-localized a {
  -webkit-tap-highlight-color: transparent;
}

body.codex-localized [data-framer-name="Primary Navigation"] a,
body.codex-localized [data-framer-name="Sidebar Content"] a {
  transition: background-color .16s ease, color .16s ease;
}

body.codex-localized [data-framer-name="Primary Navigation"] a:hover,
body.codex-localized [data-framer-name="Sidebar Content"] a:hover {
  background: #f2f2f1 !important;
}

body.codex-localized [data-framer-name="Composer Placeholder"] p {
  color: #929292 !important;
}

body.resume-demo-page {
  margin: 0;
  min-width: 320px;
  color: var(--codex-ink);
  background: #fff;
}

.codex-shell {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.codex-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  width: 260px;
  flex-direction: column;
  border-right: 1px solid var(--codex-line);
  background: #fafafa;
}

.codex-brand {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid var(--codex-line);
  font-size: 19px;
  font-weight: 700;
}

.codex-sidebar-toggle,
.codex-icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #4d4d4d;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.codex-sidebar-toggle:hover,
.codex-icon-button:hover {
  background: #ededeb;
}

.codex-sidebar-nav {
  display: grid;
  gap: 2px;
  padding: 16px 10px;
}

.codex-sidebar-section {
  margin: 14px 12px 5px;
  color: #252525;
  font-size: 13px;
  font-weight: 650;
}

.codex-sidebar-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border-radius: 8px;
  color: #242424;
  font-size: 14px;
  text-decoration: none;
}

.codex-sidebar-link:hover,
.codex-sidebar-link.is-active {
  background: #ededeb;
}

.codex-sidebar-link.is-active {
  font-weight: 600;
}

.codex-sidebar-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  color: #656565;
}

.codex-sidebar-icon svg,
.codex-icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.codex-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 15px 16px 18px;
  border-top: 1px solid var(--codex-line);
}

.codex-avatar-link {
  display: block;
  flex: 0 0 34px;
  border-radius: 50%;
  text-decoration: none;
}

.codex-avatar-link:focus-visible {
  outline: 2px solid #6e9eea;
  outline-offset: 3px;
}

.codex-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #171717;
  font-size: 12px;
  font-weight: 700;
}

.codex-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center top;
}

.codex-profile-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.codex-profile-copy strong {
  font-size: 13px;
}

.codex-profile-copy span {
  color: #8a8a8a;
  font-size: 12px;
}

.codex-main {
  display: flex;
  min-height: 100vh;
  margin-left: 260px;
  flex: 1;
  flex-direction: column;
}

.resume-demo-page.sidebar-collapsed .codex-sidebar {
  width: 72px;
}

.resume-demo-page.sidebar-collapsed .codex-main {
  margin-left: 72px;
}

.resume-demo-page.sidebar-collapsed .codex-brand {
  justify-content: center;
  padding: 0 8px;
}

.resume-demo-page.sidebar-collapsed .codex-brand a,
.resume-demo-page.sidebar-collapsed .codex-sidebar-link span:last-child,
.resume-demo-page.sidebar-collapsed .codex-sidebar-section,
.resume-demo-page.sidebar-collapsed .codex-profile-copy,
.resume-demo-page.sidebar-collapsed .codex-sidebar-profile .codex-icon-button {
  display: none;
}

.resume-demo-page.sidebar-collapsed .codex-sidebar-nav {
  padding-inline: 14px;
}

.resume-demo-page.sidebar-collapsed .codex-sidebar-link {
  justify-content: center;
  padding-inline: 0;
}

.resume-demo-page.sidebar-collapsed .codex-sidebar-profile {
  justify-content: center;
  padding-inline: 0;
}

.codex-topbar {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--codex-line);
}

.codex-tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #e1e1df;
  border-radius: 22px;
  background: #f7f7f6;
}

.codex-tab {
  min-width: 84px;
  padding: 7px 17px;
  border-radius: 18px;
  color: #7c7c7c;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.codex-tab.is-active {
  color: #161616;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .11);
}

.resume-content {
  display: flex;
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
  flex-direction: column;
  padding: 62px 0 34px;
}

.resume-content-header {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.resume-content-header h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: 0;
  line-height: 1.12;
}

.resume-content-header p {
  max-width: 620px;
  margin: 0;
  color: var(--codex-muted);
  font-size: 15px;
  line-height: 1.6;
}

.resume-transcript {
  display: grid;
  gap: 17px;
  padding-bottom: 20px;
}

.resume-message {
  max-width: min(620px, 86%);
  animation: resume-message-in .34s ease both;
}

.resume-message.user {
  justify-self: end;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  color: #fff;
  background: #101010;
  font-size: 15px;
  line-height: 1.45;
}

.resume-message.assistant {
  display: grid;
  gap: 8px;
  justify-self: start;
  color: #222;
  font-size: 16px;
  line-height: 1.58;
}

.resume-message.assistant .resume-line {
  animation: resume-line-in .38s ease both;
}

.assistant-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #171717;
  font-size: 17px;
  line-height: 1.35;
}

.assistant-avatar {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.resume-attachment {
  width: min(470px, 100%);
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid #e2e2df;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .06);
  animation: resume-message-in .42s ease both;
}

.resume-attachment img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.resume-attachment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e9e9e7;
  color: #6e6e6e;
  font-size: 12px;
}

.contact-card {
  display: grid;
  width: min(520px, 100%);
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid #e2e2df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .05);
  animation: resume-message-in .42s ease both;
}

.contact-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid #ededeb;
  font-size: 14px;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-label {
  color: var(--codex-muted);
}

.contact-row a,
.contact-row > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--codex-ink);
  text-decoration: none;
}

.contact-row a:hover {
  text-decoration: underline;
}

.experience-entry,
.education-entry {
  display: grid;
  width: min(760px, 100%);
  max-width: 100%;
  gap: 11px;
  padding: 18px 20px;
  border: 1px solid #e3e3e0;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .035);
  animation: resume-message-in .42s ease both;
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.45fr) auto;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
}

.experience-heading strong,
.education-heading strong {
  color: #171717;
  font-weight: 700;
}

.experience-heading span,
.education-heading span {
  color: var(--codex-muted);
  font-size: 13px;
  white-space: nowrap;
}

.experience-detail,
.education-courses {
  margin: 0;
  color: #5d5d5d;
  font-size: 14px;
  line-height: 1.72;
}

.experience-detail strong,
.education-courses strong {
  color: #252525;
  font-weight: 700;
}

.education-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
}

.skills-response {
  width: min(760px, 100%);
  gap: 18px;
}

.skills-intro,
.skills-section p {
  margin: 0;
  color: #242424;
  font-size: 16px;
  line-height: 1.65;
}

.skills-section {
  display: grid;
  gap: 4px;
  margin: 0;
}

.skills-section h2 {
  margin: 0;
  color: #171717;
  font-size: 16px;
  line-height: 1.45;
}

.skills-section p {
  color: #777;
}

.about-response {
  width: min(760px, 100%);
  gap: 20px;
}

.about-title {
  margin: 0;
  color: #171717;
  font-size: 28px;
  line-height: 1.2;
}

.about-response > p,
.about-section p {
  max-width: 760px;
  margin: 0;
  color: #242424;
  font-size: 17px;
  line-height: 1.72;
  white-space: pre-line;
}

.about-photo {
  display: block;
  width: min(270px, 100%);
  aspect-ratio: 5 / 7;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 28%;
}

.about-section {
  display: grid;
  gap: 10px;
  margin: 0;
}

.about-section h2 {
  margin: 0;
  color: #171717;
  font-size: 19px;
  line-height: 1.4;
}

.about-section p {
  color: #777;
}

.resume-composer {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid #dfdfdd;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

.resume-composer-plus {
  color: #222;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.resume-composer-label {
  flex: 1;
  color: #747474;
  font-size: 14px;
}

.resume-composer-send {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #111;
  font-size: 17px;
  cursor: default;
}

.home-chat-transcript {
  display: grid;
  gap: 12px;
  width: min(768px, 100%);
  max-height: 330px;
  margin: 0 auto;
  overflow: auto;
  scrollbar-width: thin;
}

body.codex-localized [data-framer-name="Profile Prompt"] {
  overflow-y: auto !important;
}

body.codex-localized [data-framer-name="Composer and Quick Actions"] {
  height: auto !important;
  min-height: 260px;
}

.home-chat-message {
  max-width: min(650px, 88%);
  animation: resume-message-in .34s ease both;
  font-size: 15px;
  line-height: 1.55;
}

.home-chat-message.user {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 15px 15px 4px 15px;
  color: #fff;
  background: #111;
}

.home-chat-message.assistant {
  display: grid;
  gap: 7px;
  justify-self: start;
  color: #222;
}

.home-chat-message.assistant .assistant-profile {
  font-size: 15px;
}

.home-chat-message-text {
  white-space: pre-wrap;
}

.home-chat-message.is-loading .home-chat-message-text {
  color: #8b8b8b;
}

.home-chat-form {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: flex-end;
  gap: 10px;
  padding: 7px 8px 7px 14px;
}

.home-chat-input {
  display: block;
  min-width: 0;
  min-height: 36px;
  max-height: 140px;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  color: #171717;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.home-chat-input::placeholder {
  color: #929292;
}

.home-chat-send {
  min-width: 54px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: #111;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.home-chat-send:disabled {
  cursor: wait;
  opacity: .6;
}

.project-detail-page .codex-sidebar-icon {
  color: #666;
  font-size: 17px;
  line-height: 1;
}

.project-detail-page .codex-icon-button {
  font-size: 17px;
}

.projects-demo-page .codex-sidebar-toggle,
.project-detail-page .codex-sidebar-toggle {
  opacity: .35;
  cursor: default;
}

.projects-content {
  width: min(900px, calc(100% - 48px));
}

.project-groups {
  display: grid;
  gap: 34px;
}

.project-group {
  display: grid;
  gap: 10px;
}

.project-group h2 {
  margin: 0;
  color: #202020;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.project-list {
  display: grid;
  border-top: 1px solid var(--codex-line);
}

.project-list-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 28px;
  gap: 12px;
  min-height: 64px;
  align-items: center;
  border-bottom: 1px solid var(--codex-line);
  color: var(--codex-ink);
  text-decoration: none;
  transition: background-color .16s ease, padding .16s ease;
}

.project-list-row:hover {
  padding-inline: 10px;
  background: #f7f7f5;
}

.project-index,
.project-list-row time {
  color: #858585;
  font-size: 13px;
  white-space: nowrap;
}

.project-title {
  min-width: 0;
  font-size: 16px;
  font-weight: 550;
}

.project-arrow {
  color: #7a7a7a;
  font-size: 18px;
  text-align: right;
}

.project-response {
  width: min(790px, 100%);
}

.project-intro,
.project-detail-line {
  max-width: 790px;
  margin: 0;
}

.project-detail-line strong {
  color: #171717;
  font-weight: 700;
}

.project-image {
  width: min(600px, 100%);
  margin: 5px 0 4px;
}

.project-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: left top;
  border: 1px solid #e4e4e1;
  background: #fafafa;
}

.project-image figcaption {
  margin-top: 7px;
  color: #8a8a8a;
  font-size: 12px;
}

.resume-modal[hidden] {
  display: none;
}

.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 15, 15, .35);
  backdrop-filter: blur(4px);
}

.resume-modal-card {
  width: min(390px, 100%);
  padding: 24px;
  border: 1px solid #e3e3e0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

.resume-modal-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.resume-modal-card p {
  margin: 0;
  color: #707070;
  font-size: 14px;
  line-height: 1.55;
}

.resume-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.resume-modal-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d8d8d5;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.resume-modal-cancel {
  color: #3e3e3e;
  background: #fff;
}

.resume-modal-confirm {
  border-color: #111 !important;
  color: #fff;
  background: #111;
}

@keyframes resume-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes resume-line-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .codex-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--codex-line);
  }

  .codex-shell {
    display: block;
  }

  .codex-sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
  }

  .codex-sidebar-section,
  .codex-sidebar-profile {
    display: none;
  }

  .codex-main {
    min-height: calc(100vh - 174px);
    margin-left: 0;
  }

  .resume-demo-page.sidebar-collapsed .codex-sidebar,
  .resume-demo-page.sidebar-collapsed .codex-main {
    width: auto;
    margin-left: 0;
  }

  .codex-topbar {
    height: 50px;
  }

  .resume-content {
    width: min(100% - 32px, 660px);
    padding-top: 38px;
  }

  .projects-content {
    width: min(100% - 32px, 660px);
  }

  .project-list-row {
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    gap: 8px;
    padding-block: 11px;
  }

  .project-list-row time {
    grid-column: 2;
    grid-row: 2;
  }

  .project-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .resume-message.assistant {
    font-size: 15px;
  }

  .home-chat-transcript {
    max-height: 280px;
  }

  .home-chat-message {
    max-width: 94%;
  }

  .experience-entry,
  .education-entry {
    padding: 16px;
  }

  .experience-heading,
  .education-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .experience-heading span,
  .education-heading span {
    white-space: normal;
  }

  .skills-response {
    gap: 16px;
  }

  .skills-intro,
  .skills-section p {
    font-size: 15px;
  }

  .about-response > p,
  .about-section p {
    font-size: 15px;
  }

  .about-title {
    font-size: 25px;
  }
}
