:root {
      --navy: #0f2744;
      --navy-2: #173b63;
      --teal: #0f8b8d;
      --teal-soft: #e8f5f4;
      --ink: #162231;
      --muted: #607083;
      --line: #dce4eb;
      --surface: #ffffff;
      --surface-2: #f5f8fa;
      --shadow: 0 18px 50px rgba(15, 39, 68, .09);
      --radius: 18px;
    }

    :root[data-theme="dark"] {
      --navy: #e7f0ff;
      --navy-2: #b8d3f2;
      --teal: #2dd4bf;
      --teal-soft: rgba(45, 212, 191, .12);
      --ink: #e5edf7;
      --muted: #9fb0c4;
      --line: rgba(148, 163, 184, .22);
      --surface: #111c2b;
      --surface-2: #07111f;
      --shadow: 0 18px 50px rgba(0, 0, 0, .32);
    }

    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at 10% 0%, rgba(15, 139, 141, .08), transparent 30rem),
        var(--surface-2);
      font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    :root[data-theme="dark"] body {
      background:
        radial-gradient(circle at 10% 0%, rgba(45, 212, 191, .13), transparent 30rem),
        var(--surface-2);
    }

    a { color: inherit; }
    img { display: block; max-width: 100%; }
    button, input, textarea { font: inherit; }
    section { scroll-margin-top: 88px; }

    .container {
      width: min(1140px, calc(100% - 36px));
      margin-inline: auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid rgba(220, 228, 235, .85);
      background: rgba(255, 255, 255, .9);
      backdrop-filter: blur(16px);
    }

    :root[data-theme="dark"] .site-header {
      border-bottom-color: rgba(148, 163, 184, .18);
      background: rgba(7, 17, 31, .84);
    }

    .nav {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      text-decoration: none;
      font-size: 1.02rem;
      font-weight: 800;
      letter-spacing: -.02em;
      color: var(--navy);
    }

    .brand span { color: var(--teal); }
    .nav-links { display: flex; align-items: center; gap: 25px; }
    .nav-links a {
      text-decoration: none;
      color: #42546a;
      font-size: .84rem;
      font-weight: 700;
    }
    .nav-links a:hover { color: var(--teal); }

    .theme-toggle {
      min-height: 38px;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 12px;
      color: var(--navy);
      background: var(--surface);
      font-size: .82rem;
      font-weight: 900;
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .theme-toggle:hover {
      transform: translateY(-1px);
      border-color: var(--teal);
    }

    .button {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 10px 16px;
      border: 1px solid transparent;
      border-radius: 10px;
      text-decoration: none;
      font-size: .88rem;
      font-weight: 800;
      cursor: pointer;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .button:hover { transform: translateY(-2px); }
    .button-primary { color: #fff; background: var(--teal); box-shadow: 0 10px 22px rgba(15, 139, 141, .2); }
    .button-secondary { color: var(--navy); border-color: var(--line); background: #fff; }
    .button-dark { color: #fff; background: var(--navy); }

    .menu-button {
      display: none;
      width: 44px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 10px;
      color: var(--navy);
      background: #fff;
      cursor: pointer;
    }

    .hero { padding: 72px 0 42px; }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
      gap: 54px;
      align-items: center;
    }

    .eyebrow {
      margin: 0 0 15px;
      color: var(--teal);
      font-size: .78rem;
      font-weight: 900;
      letter-spacing: .15em;
      text-transform: uppercase;
    }

    h1, h2, h3, p { margin-top: 0; }
    h1 {
      max-width: 760px;
      margin-bottom: 16px;
      color: var(--navy);
      font-size: clamp(2.8rem, 6vw, 5.35rem);
      line-height: .98;
      letter-spacing: -.065em;
    }

    .hero-role {
      margin-bottom: 22px;
      color: var(--navy-2);
      font-size: clamp(1.08rem, 2vw, 1.38rem);
      font-weight: 750;
    }

    .hero-summary {
      max-width: 720px;
      margin-bottom: 28px;
      color: #4d5f72;
      font-size: 1.02rem;
    }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
    .quick-info {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 22px;
      margin-top: 28px;
      color: var(--muted);
      font-size: .88rem;
      font-weight: 650;
    }
    .quick-info a { text-decoration: none; }
    .quick-info a:hover { color: var(--teal); }

    .profile-card {
      position: relative;
      padding: 25px;
      border: 1px solid rgba(255, 255, 255, .15);
      border-radius: 24px;
      color: #fff;
      background: linear-gradient(150deg, var(--navy), #102f52 65%, #0d6d72);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .profile-card::after {
      position: absolute;
      right: -50px;
      bottom: -60px;
      width: 190px;
      height: 190px;
      border: 35px solid rgba(255, 255, 255, .05);
      border-radius: 50%;
      content: "";
    }
    .profile-photo {
      position: relative;
      z-index: 1;
      width: 145px;
      height: 145px;
      margin-bottom: 23px;
      border: 4px solid rgba(255, 255, 255, .85);
      border-radius: 20px;
      object-fit: cover;
    }
    .profile-card h2 { position: relative; z-index: 1; margin-bottom: 4px; font-size: 1.35rem; }
    .profile-card > p { position: relative; z-index: 1; margin-bottom: 20px; color: #c9d8e6; font-size: .87rem; }
    .socials { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
    .socials a {
      padding: 7px 10px;
      border: 1px solid rgba(255, 255, 255, .2);
      border-radius: 8px;
      color: #fff;
      text-decoration: none;
      font-size: .76rem;
      font-weight: 750;
    }
    .socials a:hover { background: rgba(255, 255, 255, .1); }

    .impact-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      margin: 20px auto 68px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 10px 35px rgba(15, 39, 68, .05);
      overflow: hidden;
    }
    .impact-item { padding: 22px 24px; border-right: 1px solid var(--line); }
    .impact-item:last-child { border-right: 0; }
    .impact-item strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
    .impact-item span { color: var(--muted); font-size: .78rem; font-weight: 700; }

    .section { padding: 28px 0 55px; }
    .section-heading {
      display: grid;
      grid-template-columns: 190px 1fr;
      gap: 35px;
      margin-bottom: 30px;
      align-items: start;
    }
    .section-number {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--teal);
      font-size: .76rem;
      font-weight: 900;
      letter-spacing: .13em;
      text-transform: uppercase;
    }
    .section-number::after { width: 45px; height: 1px; background: var(--teal); content: ""; }
    .section-heading h2 {
      margin-bottom: 8px;
      color: var(--navy);
      font-size: clamp(1.75rem, 4vw, 2.4rem);
      line-height: 1.15;
      letter-spacing: -.035em;
    }
    .section-heading p { max-width: 700px; margin-bottom: 0; color: var(--muted); }

    .about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; }
    .panel {
      padding: 27px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
    }
    .panel p:last-child { margin-bottom: 0; }
    .lead { color: #34495e; font-size: 1.02rem; }
    .mini-title {
      margin-bottom: 15px;
      color: var(--navy);
      font-size: .78rem;
      font-weight: 900;
      letter-spacing: .1em;
      text-transform: uppercase;
    }
    .focus-list, .bullet-list { margin: 0; padding-left: 19px; }
    .focus-list li, .bullet-list li { margin-bottom: 8px; color: #46586b; }
    .focus-list li::marker, .bullet-list li::marker { color: var(--teal); }
    .language-row { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
    .language-row span:last-child { color: var(--muted); }

    .timeline { margin-left: 205px; border-left: 1px solid var(--line); }
    .timeline-item {
      position: relative;
      display: grid;
      grid-template-columns: 205px 1fr;
      gap: 35px;
      margin-left: -205px;
      padding-bottom: 38px;
    }
    .timeline-item::before {
      position: absolute;
      left: 199px;
      top: 7px;
      width: 11px;
      height: 11px;
      border: 3px solid var(--surface-2);
      border-radius: 50%;
      background: var(--teal);
      box-shadow: 0 0 0 1px var(--teal);
      content: "";
    }
    .timeline-meta { padding-right: 16px; text-align: right; }
    .timeline-meta strong { display: block; color: var(--navy); font-size: .9rem; }
    .timeline-meta span { color: var(--muted); font-size: .78rem; }
    .timeline-content { padding-left: 3px; }
    .timeline-content h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.08rem; }
    .timeline-content .bullet-list { font-size: .9rem; }

    .project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .project {
      position: relative;
      min-height: 235px;
      display: flex;
      flex-direction: column;
      padding: 25px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
    .project:hover { transform: translateY(-4px); border-color: #9bcaca; box-shadow: var(--shadow); }
    .project-index { margin-bottom: 35px; color: var(--teal); font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
    .project h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.1rem; line-height: 1.35; }
    .project p { margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
    .project-gallery {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 7px;
      margin: -14px 0 18px;
    }
    .project-gallery.count-1,
    .project-gallery:has(.gallery-button:only-child) {
      grid-template-columns: 1fr;
    }
    .project-gallery .gallery-button {
      min-height: 72px;
      border-radius: 10px;
    }
    .project-gallery .gallery-button:first-child {
      grid-column: span 2;
      grid-row: span 2;
    }
    .project-gallery .gallery-button img {
      min-height: 72px;
    }
    .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
    .tag { padding: 5px 9px; border-radius: 7px; color: #17696d; background: var(--teal-soft); font-size: .7rem; font-weight: 800; }

    .skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .skill-group { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
    .skill-group h3 { margin-bottom: 15px; color: var(--navy); font-size: 1rem; }
    .skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
    .skill-cloud span {
      padding: 7px 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      color: #485a6c;
      background: #fbfcfd;
      font-size: .78rem;
      font-weight: 700;
    }

    .education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .education-card { padding: 26px; border-radius: var(--radius); color: #fff; background: var(--navy); }
    .education-card:nth-child(2) { background: var(--navy-2); }
    .education-card .degree { margin-bottom: 6px; color: #fff; font-size: 1.08rem; font-weight: 800; }
    .education-card .school { margin-bottom: 20px; color: #bed0e1; font-size: .87rem; }
    .education-card .study { margin-bottom: 15px; color: #d8e3ed; font-size: .84rem; }
    .gpa { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; font-size: .78rem; font-weight: 800; }

    .publication-list { display: grid; gap: 12px; }
    .publication {
      display: grid;
      grid-template-columns: 115px 1fr auto;
      gap: 20px;
      padding: 20px 22px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--surface);
      align-items: center;
    }
    .publication time { color: var(--teal); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
    .publication h3 { margin-bottom: 4px; color: var(--navy); font-size: .95rem; line-height: 1.4; }
    .publication p { margin-bottom: 0; color: var(--muted); font-size: .8rem; }
    .publication-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .publication-links a {
      padding: 6px 9px;
      border: 1px solid var(--line);
      border-radius: 7px;
      color: var(--navy);
      text-decoration: none;
      font-size: .7rem;
      font-weight: 800;
    }
    .publication-links a:hover { color: var(--teal); border-color: var(--teal); }

    .speaker-list { display: grid; gap: 24px; }
    .speaker-card {
      display: grid;
      grid-template-columns: minmax(270px, .85fr) minmax(0, 1.15fr);
      gap: 28px;
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 12px 35px rgba(15, 39, 68, .05);
    }
    .speaker-copy { padding: 5px 4px; }
    .speaker-role {
      display: inline-flex;
      margin-bottom: 15px;
      padding: 6px 10px;
      border-radius: 7px;
      color: #17696d;
      background: var(--teal-soft);
      font-size: .72rem;
      font-weight: 900;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .speaker-copy h3 { margin-bottom: 12px; color: var(--navy); font-size: 1.2rem; line-height: 1.4; }
    .speaker-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; color: var(--muted); font-size: .8rem; font-weight: 750; }
    .speaker-copy > p:last-child { margin-bottom: 0; color: #4d5f72; font-size: .9rem; }
    .speaker-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; min-height: 245px; }
    .speaker-gallery.count-1 { grid-template-columns: 1fr; }
    .speaker-gallery.count-3 .gallery-button:first-child,
    .speaker-gallery.count-5 .gallery-button:first-child { grid-row: span 2; }
    .gallery-button {
      min-height: 118px;
      padding: 0;
      border: 0;
      border-radius: 11px;
      background: #eaf0f4;
      overflow: hidden;
      cursor: zoom-in;
      pointer-events: auto;
    }
    .gallery-button img { width: 100%; height: 100%; min-height: 118px; object-fit: cover; transition: transform .25s ease; pointer-events: none; }
    .gallery-button:hover img { transform: scale(1.035); }
    .speaker-empty {
      min-height: 245px;
      display: grid;
      place-items: center;
      padding: 25px;
      border: 1px dashed #b8c8d5;
      border-radius: 12px;
      color: var(--muted);
      background: #f8fafb;
      text-align: center;
      font-size: .82rem;
    }
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 30px;
      background: rgba(5, 15, 26, .94);
    }
    .lightbox.open,
    .lightbox.show { display: flex; }
    .lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
    .lightbox-close {
      position: absolute;
      top: 18px;
      right: 22px;
      width: 45px;
      height: 45px;
      border: 1px solid rgba(255,255,255,.3);
      border-radius: 50%;
      color: #fff;
      background: rgba(255,255,255,.08);
      font-size: 1.45rem;
      cursor: pointer;
    }
    .lightbox-nav {
      position: absolute;
      top: 50%;
      width: 48px;
      height: 48px;
      border: 1px solid rgba(255,255,255,.25);
      border-radius: 50%;
      color: #fff;
      background: rgba(255,255,255,.08);
      font-size: 1.5rem;
      cursor: pointer;
      transform: translateY(-50%);
    }
    .lightbox-prev { left: 22px; }
    .lightbox-next { right: 22px; }
    .lightbox-caption { position: absolute; left: 20px; right: 20px; bottom: 15px; color: #dce7ef; text-align: center; font-size: .82rem; }

    .cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .cert-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
    .cert-list { display: grid; gap: 15px; }
    .cert-item { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
    .cert-item:last-child { padding-bottom: 0; border-bottom: 0; }
    .cert-item strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: .87rem; }
    .cert-item span { color: var(--muted); font-size: .76rem; }

    .contact-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 45px;
      padding: 38px;
      border-radius: 24px;
      color: #fff;
      background: var(--navy);
      box-shadow: var(--shadow);
    }
    .contact-card h2 { margin-bottom: 13px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; }
    .contact-card p { color: #c2d1df; }
    .contact-details { display: grid; gap: 9px; margin-top: 22px; }
    .contact-details a, .contact-details span { color: #fff; text-decoration: none; font-size: .88rem; }
    .contact-form { display: grid; gap: 11px; }
    .contact-form label { color: #dbe6ef; font-size: .75rem; font-weight: 800; }
    .contact-form input, .contact-form textarea {
      width: 100%;
      padding: 11px 12px;
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 9px;
      outline: none;
      color: #fff;
      background: rgba(255,255,255,.07);
    }
    .contact-form input:focus, .contact-form textarea:focus { border-color: #62c8c9; }
    .contact-form textarea { min-height: 95px; resize: vertical; }
    .contact-form .button { justify-self: start; border: 0; }

    footer { padding: 32px 0 42px; color: var(--muted); font-size: .78rem; }
    .footer-inner { display: flex; justify-content: space-between; gap: 20px; }

    :root[data-theme="dark"] .nav-links a {
      color: #c8d5e6;
    }

    :root[data-theme="dark"] .button-secondary,
    :root[data-theme="dark"] .menu-button,
    :root[data-theme="dark"] .button-ghost {
      color: var(--navy);
      border-color: var(--line);
      background: #132235;
    }

    :root[data-theme="dark"] .button-dark {
      color: #06111f;
      background: #e7f0ff;
    }

    :root[data-theme="dark"] .hero-role,
    :root[data-theme="dark"] .project h3,
    :root[data-theme="dark"] .skill-group h3,
    :root[data-theme="dark"] .publication h3,
    :root[data-theme="dark"] .mini-title,
    :root[data-theme="dark"] .brand {
      color: var(--navy);
    }

    :root[data-theme="dark"] .hero-summary,
    :root[data-theme="dark"] .project p,
    :root[data-theme="dark"] .publication p,
    :root[data-theme="dark"] .quick-info,
    :root[data-theme="dark"] .admin-form label {
      color: var(--muted);
    }

    :root[data-theme="dark"] .skill-cloud span,
    :root[data-theme="dark"] .speaker-gallery,
    :root[data-theme="dark"] .gallery-empty {
      color: #c8d5e6;
      background: #0b1726;
    }

    :root[data-theme="dark"] .tag,
    :root[data-theme="dark"] .publication-links a {
      color: #8ee8dd;
      border-color: rgba(45, 212, 191, .28);
      background: rgba(45, 212, 191, .1);
    }

    :root[data-theme="dark"] .profile-card,
    :root[data-theme="dark"] .contact-card,
    :root[data-theme="dark"] .education-card,
    :root[data-theme="dark"] .education-card:nth-child(2) {
      color: #fff;
      background: linear-gradient(150deg, #0b1726, #101f33 62%, #0f766e);
    }

    :root[data-theme="dark"] input,
    :root[data-theme="dark"] textarea,
    :root[data-theme="dark"] select {
      color: var(--ink);
      border-color: var(--line);
      background: #0b1726;
    }

    :root[data-theme="dark"] .nav-links.open {
      background: #0b1726;
    }

    .reveal { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
    .reveal.visible { opacity: 1; transform: none; }

    @media (max-width: 900px) {
      .nav-links {
        position: absolute;
        top: 72px;
        left: 18px;
        right: 18px;
        display: none;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow);
      }
      .nav-links.open { display: grid; }
      .nav-links .button { justify-self: start; }
      .menu-button { display: inline-grid; place-items: center; }
      .hero-grid { grid-template-columns: 1fr; }
      .profile-card { max-width: 420px; width: 100%; justify-self: start; }
      .impact-strip { grid-template-columns: repeat(2, 1fr); }
      .impact-item:nth-child(2) { border-right: 0; }
      .impact-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      .section-heading { grid-template-columns: 1fr; gap: 9px; }
      .about-grid, .contact-card { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr 1fr; }
      .publication { grid-template-columns: 95px 1fr; }
      .publication-links { grid-column: 2; justify-content: flex-start; }
      .speaker-card { grid-template-columns: 1fr; }
    }

    @media (max-width: 650px) {
      .container { width: min(100% - 24px, 1140px); }
      .hero { padding-top: 45px; }
      .hero-grid { gap: 35px; }
      h1 { font-size: clamp(2.7rem, 16vw, 4rem); }
      .impact-strip, .project-grid, .skills-grid, .education-grid, .cert-grid { grid-template-columns: 1fr; }
      .impact-item { border-right: 0; border-bottom: 1px solid var(--line); }
      .impact-item:last-child { border-bottom: 0; }
      .timeline { margin-left: 0; border-left: 0; }
      .timeline-item { grid-template-columns: 1fr; gap: 8px; margin-left: 0; padding-left: 22px; border-left: 1px solid var(--line); }
      .timeline-item::before { left: -6px; }
      .timeline-meta { padding-right: 0; text-align: left; }
      .publication { grid-template-columns: 1fr; gap: 8px; }
      .publication-links { grid-column: 1; }
      .speaker-card { padding: 17px; }
      .speaker-gallery { min-height: 210px; }
      .lightbox { padding: 15px; }
      .lightbox-nav { top: auto; bottom: 18px; transform: none; }
      .lightbox-prev { left: 18px; }
      .lightbox-next { right: 18px; }
      .lightbox-caption { bottom: 30px; padding: 0 55px; }
      .contact-card { padding: 27px 22px; }
      .footer-inner { flex-direction: column; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .reveal { opacity: 1; transform: none; transition: none; }
      .button, .project { transition: none; }
    }

    @media print {
      @page { size: A4; margin: 14mm; }
      body { background: #fff; font-size: 10pt; }
      .site-header, .hero-actions, .contact-form, .no-print { display: none !important; }
      .container { width: 100%; }
      .hero { padding: 0 0 20px; }
      .hero-grid { grid-template-columns: 1fr 180px; gap: 25px; }
      h1 { font-size: 34pt; }
      .profile-card { padding: 15px; box-shadow: none; }
      .profile-photo { width: 85px; height: 85px; margin-bottom: 12px; }
      .socials { display: none; }
      .impact-strip { margin: 12px 0 25px; box-shadow: none; }
      .section { padding: 12px 0; break-inside: avoid; }
      .panel, .project, .skill-group, .cert-card, .publication { box-shadow: none; break-inside: avoid; }
      .timeline-item { break-inside: avoid; padding-bottom: 18px; }
      .contact-card { padding: 22px; box-shadow: none; }
      .lightbox { display: none !important; }
      footer { padding-bottom: 0; }
      .reveal { opacity: 1; transform: none; }
    }

    .admin-body {
      min-height: 100vh;
      overflow-x: hidden;
      background:
        radial-gradient(circle at top left, rgba(15, 139, 141, .14), transparent 28rem),
        #eef4f7;
    }

    .login-wrap {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 22px;
    }

    .login-card,
    .admin-card {
      border: 1px solid var(--line);
      border-radius: 22px;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .login-card {
      width: min(460px, 100%);
      padding: 30px;
    }

    .admin-shell {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 260px 1fr;
    }

    .admin-sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 22px;
      color: #fff;
      background: linear-gradient(180deg, var(--navy), #102f52);
    }

    .admin-sidebar a,
    .admin-sidebar button {
      width: 100%;
      border: 0;
      border-radius: 12px;
      padding: 12px 13px;
      color: #dbeafe;
      background: transparent;
      text-align: left;
      text-decoration: none;
      font-weight: 800;
      cursor: pointer;
    }

    .admin-sidebar a:hover,
    .admin-sidebar button:hover {
      color: #fff;
      background: rgba(255,255,255,.1);
    }

    .admin-sidebar .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      color: #fff;
      background: var(--teal);
      font-weight: 900;
    }

    .admin-main {
      width: min(1180px, calc(100vw - 260px));
      padding: clamp(18px, 3vw, 34px);
      min-width: 0;
    }

    .admin-card {
      margin-bottom: 18px;
      padding: clamp(20px, 3vw, 30px);
    }

    .admin-welcome {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px;
      gap: 20px;
      align-items: start;
    }

    .admin-tips {
      display: grid;
      gap: 8px;
      padding: 16px;
      border-radius: 16px;
      background: var(--teal-soft);
      color: var(--navy);
      font-size: .9rem;
      font-weight: 750;
    }

    .admin-form {
      display: grid;
      gap: 14px;
    }

    .admin-form label {
      display: grid;
      gap: 6px;
      color: #334155;
      font-weight: 800;
    }

    .admin-form input,
    .admin-form textarea,
    .admin-form select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 11px 12px;
      color: var(--ink);
      background: #fff;
    }

    .quick-profile-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-profile-grid .full,
    .form-actions.full {
      grid-column: 1 / -1;
    }

    .form-actions,
    .json-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .json-toolbar {
      margin: 14px 0;
    }

    .collection-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 18px 0;
    }

    .collection-tab {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 14px;
      color: var(--navy);
      background: #fff;
      font-weight: 900;
      cursor: pointer;
      transition: .2s ease;
    }

    .collection-tab:hover,
    .collection-tab.active {
      border-color: var(--teal);
      color: #fff;
      background: var(--teal);
      transform: translateY(-1px);
    }

    .collection-layout {
      display: grid;
      grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
      gap: 20px;
      align-items: start;
    }

    .collection-layout h3 {
      margin-bottom: 12px;
      color: var(--navy);
    }

    .collection-form textarea {
      min-height: 110px;
      resize: vertical;
    }

    .admin-form small {
      color: var(--muted);
      font-weight: 700;
      line-height: 1.5;
    }

    .collection-list {
      display: grid;
      gap: 10px;
    }

    .collection-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: start;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #f8fafc;
    }

    .collection-item h4 {
      margin-bottom: 4px;
      color: var(--navy);
      font-size: 1rem;
    }

    .collection-item p,
    .collection-item small,
    .muted-empty {
      color: var(--muted);
    }

    .collection-item small {
      display: block;
      margin-top: 6px;
      font-weight: 750;
    }

    .collection-item-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }

    .upload-preview {
      padding: 14px;
      border: 1px dashed var(--teal);
      border-radius: 16px;
      background: var(--teal-soft);
    }

    .upload-preview-title {
      margin-bottom: 10px;
      color: var(--navy);
      font-weight: 900;
    }

    .upload-preview-item {
      display: grid;
      gap: 6px;
    }

    .upload-preview-item img {
      width: 100%;
      height: 130px;
      object-fit: cover;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #fff;
    }

    .upload-preview-item small {
      color: var(--muted);
      font-size: .78rem;
      overflow-wrap: anywhere;
    }

    .json-status {
      padding: 8px 10px;
      border-radius: 999px;
      color: var(--muted);
      background: #f1f5f9;
      font-size: .84rem;
      font-weight: 800;
    }

    .json-status[data-type="success"] {
      color: #047857;
      background: #d1fae5;
    }

    .json-status[data-type="error"] {
      color: #991b1b;
      background: #fee2e2;
    }

    .json-editor {
      min-height: 520px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: .88rem;
      line-height: 1.55;
      resize: vertical;
    }

    .notice {
      margin-bottom: 14px;
      padding: 12px 14px;
      border-radius: 14px;
      color: #065f46;
      background: #d1fae5;
      font-weight: 800;
    }

    .button-ghost {
      color: var(--navy);
      border-color: var(--line);
      background: #f8fafc;
    }

    .button-danger {
      color: #fff;
      background: #dc2626;
    }

    @media (max-width: 880px) {
      .admin-shell {
        grid-template-columns: 1fr;
      }

      .admin-sidebar {
        position: static;
        height: auto;
        border-radius: 0 0 22px 22px;
      }

      .admin-main {
        width: 100%;
      }

      .admin-welcome,
      .quick-profile-grid,
      .collection-layout {
        grid-template-columns: 1fr;
      }

      .login-card {
        width: min(460px, calc(100vw - 28px));
      }

      .json-editor {
        min-height: 360px;
      }
    }

    @media (max-width: 560px) {
      .admin-main {
        padding: 14px;
      }

      .admin-card {
        padding: 18px;
      }

      .form-actions,
      .json-toolbar {
        align-items: stretch;
        flex-direction: column;
      }

      .form-actions .button,
      .json-toolbar .button,
      .collection-item-actions .button {
        width: 100%;
      }

      .collection-item {
        grid-template-columns: 1fr;
      }

      .collection-item-actions {
        justify-content: stretch;
      }
    }
