      * {
        font-family: "Outfit", sans-serif;
      }

      body {
        background-color: #020611;
        color: #f1f5f9;
        overflow-x: hidden;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
      }

      .site-header-inner {
        width: 100%;
        max-width: none;
        padding-right: clamp(0.75rem, 2.5vw, 2.5rem);
        padding-left: clamp(0.75rem, 2.5vw, 2.5rem);
      }

      .dropzone-dash {
        width: calc(100% - clamp(2rem, 10vw, 8rem));
        max-width: 66rem;
        margin-right: auto;
        margin-left: auto;
      }

      #starfield {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 0;
        pointer-events: none;
      }

      ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }
      ::-webkit-scrollbar-track {
        background: #050c19;
      }
      ::-webkit-scrollbar-thumb {
        background: #17243a;
        border-radius: 4px;
        border: 1px solid #00f0ff40;
      }
      ::-webkit-scrollbar-thumb:hover {
        background: #263a58;
      }

      .neon-border {
        border: 1px solid rgba(0, 240, 255, 0.3);
        box-shadow:
          0 0 15px rgba(0, 240, 255, 0.15),
          inset 0 0 15px rgba(0, 240, 255, 0.05);
        transition: all 0.3s ease;
      }

      .neon-border:hover {
        border-color: rgba(0, 240, 255, 0.7);
        box-shadow:
          0 0 25px rgba(0, 240, 255, 0.35),
          inset 0 0 20px rgba(0, 240, 255, 0.1);
      }

      .neon-glow-btn {
        background: linear-gradient(
          110deg,
          #67e8f9 0%,
          #38bdf8 48%,
          #818cf8 100%
        );
        box-shadow:
          0 0 22px rgba(56, 189, 248, 0.58),
          0 0 42px rgba(99, 102, 241, 0.24);
        transition: all 0.3s ease;
      }

      .neon-glow-btn:hover {
        box-shadow:
          0 0 30px rgba(103, 232, 249, 0.82),
          0 0 54px rgba(129, 140, 248, 0.42);
        transform: translateY(-2px);
      }

      .neon-glow-btn:disabled {
        cursor: wait;
        filter: saturate(0.8);
      }

      .neon-glow-btn:active {
        transform: translateY(0);
      }

      .neon-text-glow {
        text-shadow: none;
        transition: text-shadow 0.2s ease;
      }

      .neon-text-glow:hover {
        text-shadow:
          0 0 12px rgba(0, 240, 255, 0.8),
          0 0 20px rgba(0, 162, 255, 0.5);
      }

      .glass-card {
        background: rgba(11, 19, 43, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }

      .site-footer {
        padding: 1.5rem clamp(1rem, 4vw, 3rem) 1rem;
      }

      .footer-main,
      .footer-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        max-width: 76rem;
        margin: 0 auto;
      }

      .footer-heading {
        min-width: 0;
      }

      .footer-brand-name {
        margin: 0;
        color: #d9f7ff;
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.02em;
      }

      .footer-tagline {
        margin: 0.35rem 0 0;
        color: #94a9c2;
        font-size: 0.78rem;
      }

      .footer-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.35rem 1.2rem;
      }

      .footer-feature {
        color: #b7c7d9;
        font-size: 0.7rem;
        white-space: nowrap;
      }

      .footer-bottom {
        justify-content: space-between;
        gap: 0.5rem 1rem;
        margin-top: 0.9rem;
        color: #8396ae;
        font-size: 0.68rem;
      }

      .footer-bottom a {
        color: #67e8f9;
        text-decoration: none;
        transition: color 0.2s ease;
      }

      .footer-bottom a:hover {
        color: #cffafe;
      }

      .brand-lockup {
        cursor: default;
        user-select: none;
      }

      .brand-mark {
        filter: none;
        transition: filter 0.2s ease;
      }

      .brand-name {
        transition:
          filter 0.2s ease,
          text-shadow 0.2s ease;
      }

      .brand-lockup:hover .brand-mark {
        filter:
          drop-shadow(0 0 8px rgba(0, 240, 255, 0.8))
          drop-shadow(0 0 16px rgba(0, 162, 255, 0.55));
      }

      .brand-lockup:hover .brand-name {
        filter: brightness(1.3);
        text-shadow:
          0 0 12px rgba(0, 240, 255, 0.8),
          0 0 24px rgba(0, 162, 255, 0.6);
      }

      .dropzone-dash {
        background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%2300F0FF80' stroke-width='2' stroke-dasharray='10%2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
        border-radius: 1rem;
      }

      .merge-pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
      }

      .merge-page-card {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        cursor: grab;
      }

      .merge-page-card:active {
        cursor: grabbing;
      }

      .merge-page-card.is-dragging {
        opacity: 0.45;
      }

      .merge-page-card.drag-over {
        border-color: rgba(34, 211, 238, 0.9);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
      }

      .merge-order-badge {
        display: grid;
        width: 2rem;
        height: 2rem;
        flex: 0 0 auto;
        place-items: center;
        border-radius: 0.65rem;
        color: #22d3ee;
        background: rgba(6, 182, 212, 0.12);
        font-size: 0.75rem;
        font-weight: 700;
      }

      .merge-page-preview {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        color: #94a3b8;
        font-size: 0.68rem;
      }

      .merge-page-preview canvas {
        display: block;
        width: auto;
        max-width: 100%;
        height: 8.5rem;
        border: 1px solid rgba(34, 211, 238, 0.25);
        border-radius: 0.4rem;
        background: #fff;
        object-fit: contain;
      }

      .merge-page-source {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
      }

      .merge-preview-error {
        display: grid;
        width: 100%;
        height: 8.5rem;
        place-items: center;
        border: 1px dashed rgba(34, 211, 238, 0.25);
        border-radius: 0.4rem;
        color: #94a3b8;
        font-size: 0.7rem;
        text-align: center;
      }

      [data-theme="light"] .merge-page-preview {
        color: #45617e;
      }

      [data-theme="light"] .merge-preview-error {
        color: #45617e;
      }

      @keyframes pulseGlow {
        0%,
        100% {
          opacity: 0.4;
        }
        50% {
          opacity: 0.8;
        }
      }
      .animate-pulse-glow {
        animation: pulseGlow 3s infinite ease-in-out;
      }

      .header-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        border: 1px solid transparent;
        border-radius: 0.75rem;
        padding: 0.65rem 0.8rem;
        color: #94a3b8;
        font-size: 0.875rem;
        font-weight: 500;
        transition:
          color 0.2s ease,
          background-color 0.2s ease,
          border-color 0.2s ease;
        cursor: pointer;
        background: transparent;
        text-decoration: none;
      }

      .header-link:hover,
      .settings-menu[open] > .header-link {
        color: #67e8f9;
        background: rgba(6, 182, 212, 0.1);
        border-color: rgba(34, 211, 238, 0.2);
      }

      .install-app-button[hidden] {
        display: none;
      }

      .settings-menu {
        position: relative;
      }

      .settings-menu > summary {
        list-style: none;
      }

      .settings-menu > summary::-webkit-details-marker {
        display: none;
      }

      .settings-icon-button {
        width: 2.75rem;
        height: 2.75rem;
        justify-content: center;
        padding: 0;
      }

      .feature-tabs {
        width: fit-content;
        max-width: 100%;
      }

      .settings-panel {
        position: absolute;
        z-index: 60;
        top: calc(100% + 0.5rem);
        right: 0;
        width: 12rem;
        padding: 0.5rem;
        border: 1px solid rgba(34, 211, 238, 0.25);
        border-radius: 1rem;
        background: rgba(7, 18, 38, 0.97);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(14px);
      }

      .settings-title {
        margin: 0;
        padding: 0.5rem 0.65rem;
        color: #94a3b8;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .theme-option {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 0.65rem;
        border: 0;
        border-radius: 0.65rem;
        padding: 0.6rem 0.65rem;
        color: #cbd5e1;
        font: inherit;
        font-size: 0.85rem;
        text-align: left;
        cursor: pointer;
        background: transparent;
      }

      .theme-option:hover,
      .theme-option.selected {
        color: #67e8f9;
        background: rgba(6, 182, 212, 0.12);
      }

      .theme-check {
        margin-left: auto;
        opacity: 0;
      }

      .theme-option.selected .theme-check {
        opacity: 1;
      }

      .about-dialog {
        width: min(92vw, 35rem);
        max-width: none;
        max-height: min(90vh, 42rem);
        overflow: auto;
        border: 1px solid rgba(34, 211, 238, 0.26);
        border-radius: 1.35rem;
        padding: 0;
        color: #e2e8f0;
        background: transparent;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
      }

      .about-dialog::backdrop {
        background: rgba(2, 6, 23, 0.72);
        backdrop-filter: blur(5px);
      }

      .about-dialog-content {
        position: relative;
        padding: clamp(1.5rem, 5vw, 2.25rem);
        background:
          radial-gradient(ellipse at 0 0, rgba(6, 182, 212, 0.1), transparent 55%),
          rgba(7, 18, 38, 0.98);
        user-select: text;
        -webkit-user-select: text;
      }

      .about-dialog-content * {
        user-select: text;
        -webkit-user-select: text;
      }

      .about-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: grid;
        width: 2.25rem;
        height: 2.25rem;
        place-items: center;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 0.75rem;
        color: #94a3b8;
        cursor: pointer;
        background: transparent;
      }

      .about-eyebrow {
        display: inline-flex;
        align-items: center;
        min-height: 1.8rem;
        margin: 0 2.75rem 0.65rem 0;
        border: 1px solid rgba(34, 211, 238, 0.22);
        border-radius: 999px;
        padding: 0.35rem 0.7rem;
        color: #67e8f9;
        background: rgba(6, 182, 212, 0.08);
        font-size: 0.66rem;
        font-weight: 600;
        letter-spacing: 0.1em;
      }

      .about-kicker {
        margin: -0.25rem 0 0.75rem;
        color: #67e8f9;
        font-size: 0.9rem;
        font-weight: 600;
      }

      .about-title {
        margin: 0 0 0.4rem;
        color: #f8fafc;
        font-size: clamp(1.55rem, 5vw, 1.85rem);
        font-weight: 700;
        letter-spacing: -0.025em;
      }

      .about-description,
      .about-steps {
        color: #aab8cb;
        font-size: 0.88rem;
        line-height: 1.65;
      }

      .about-subtitle {
        margin: 1.25rem 0 0.65rem;
        color: #e2e8f0;
        font-size: 1rem;
        font-weight: 600;
      }

      .about-steps {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        margin: 0;
        padding: 0;
        list-style: none;
      }

      .about-steps li {
        display: grid;
        grid-template-columns: 1.65rem minmax(0, 1fr);
        align-items: start;
        gap: 0.7rem;
      }

      .about-step-number {
        display: grid;
        width: 1.6rem;
        height: 1.6rem;
        place-items: center;
        border: 1px solid rgba(34, 211, 238, 0.25);
        border-radius: 0.55rem;
        color: #67e8f9;
        background: rgba(6, 182, 212, 0.1);
        font-size: 0.72rem;
        font-weight: 700;
      }

      .about-steps strong {
        color: #67e8f9;
      }

      .about-done {
        width: 100%;
        margin-top: 0.8rem;
        border: 0;
        border-radius: 0.85rem;
        padding: 0.8rem 1rem;
        color: #04111f;
        font-weight: 700;
        cursor: pointer;
        background: linear-gradient(135deg, #67e8f9, #60a5fa);
      }

      [data-theme="light"] body {
        color: #13243a;
        background-color: #eef4fb;
      }

      [data-theme="light"] #starfield {
        opacity: 0.42;
      }

      [data-theme="light"] .glass-card {
        background: rgba(255, 255, 255, 0.84);
      }

      [data-theme="light"] .site-footer {
        background: rgba(255, 255, 255, 0.48);
      }

      [data-theme="light"] .footer-brand-name {
        color: #132f4c;
      }

      [data-theme="light"] .footer-tagline {
        color: #526b84;
      }

      [data-theme="light"] .footer-feature {
        color: #38536f;
      }

      [data-theme="light"] .footer-bottom {
        color: #526b84;
      }

      [data-theme="light"] .footer-bottom a {
        color: #075985;
      }

      [data-theme="light"] .footer-bottom a:hover {
        color: #0369a1;
      }

      [data-theme="light"] .header-link {
        color: #45617e;
      }

      [data-theme="light"] .header-link:hover,
      [data-theme="light"] .settings-menu[open] > .header-link {
        color: #006da8;
        background: rgba(0, 144, 204, 0.08);
        border-color: rgba(0, 109, 168, 0.18);
      }

      [data-theme="light"] .settings-panel {
        border-color: rgba(14, 100, 180, 0.2);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 40px rgba(15, 41, 70, 0.16);
      }

      [data-theme="light"] .settings-title {
        color: #66809b;
      }

      [data-theme="light"] .theme-option {
        color: #38536f;
      }

      [data-theme="light"] .theme-option:hover,
      [data-theme="light"] .theme-option.selected {
        color: #006da8;
        background: rgba(0, 144, 204, 0.1);
      }

      [data-theme="light"] .feature-tabs button {
        color: #38536f;
      }

      [data-theme="light"] .feature-tabs button[class~="bg-cyan-500/20"] {
        border-color: #0891b2;
        color: #075985;
        background-color: #c8f1f6;
        box-shadow: none;
      }

      [data-theme="light"] .feature-tabs button[class~="bg-cyan-500/20"]:hover {
        background-color: #b5eaf2;
        box-shadow: 0 0 12px rgba(8, 145, 178, 0.22);
      }

      [data-theme="light"] .feature-tabs button:not([class~="bg-cyan-500/20"]):hover {
        color: #075985;
        background-color: rgba(8, 145, 178, 0.1);
      }

      [data-theme="light"] .about-dialog {
        border-color: rgba(14, 100, 180, 0.2);
      }

      [data-theme="light"] .about-dialog::backdrop {
        background: rgba(20, 38, 60, 0.36);
      }

      [data-theme="light"] .about-dialog-content {
        background:
          radial-gradient(ellipse at 0 0, rgba(6, 182, 212, 0.08), transparent 55%),
          rgba(255, 255, 255, 0.98);
      }

      [data-theme="light"] .about-title,
      [data-theme="light"] .about-subtitle {
        color: #13243a;
      }

      [data-theme="light"] .about-description,
      [data-theme="light"] .about-steps {
        color: #45617e;
      }

      [data-theme="light"] .about-close {
        border-color: rgba(14, 100, 180, 0.18);
        color: #45617e;
      }

      [data-theme="light"] .about-title {
        color: #13243a;
      }

      [data-theme="light"] .about-description,
      [data-theme="light"] .about-steps {
        color: #45617e;
      }

      [data-theme="light"] .about-subtitle {
        color: #203b57;
      }

      [data-theme="light"] [class~="text-white"],
      [data-theme="light"] [class~="text-slate-100"],
      [data-theme="light"] [class~="text-slate-200"] {
        color: #13243a !important;
      }

      [data-theme="light"] [class~="text-slate-300"],
      [data-theme="light"] [class~="text-slate-400"] {
        color: #45617e !important;
      }

      [data-theme="light"] [class~="text-slate-500"] {
        color: #66809b !important;
      }

      [data-theme="light"] [class~="bg-slate-950/80"],
      [data-theme="light"] [class~="bg-slate-950/60"],
      [data-theme="light"] [class~="bg-slate-900/80"],
      [data-theme="light"] [class~="bg-slate-900"],
      [data-theme="light"] [class~="bg-slate-800"] {
        background-color: rgba(226, 237, 249, 0.9) !important;
      }

      [data-theme="light"] [class~="hover:bg-slate-800"]:hover,
      [data-theme="light"] [class~="hover:bg-slate-700"]:hover {
        background-color: #d6e5f5 !important;
      }

      [data-theme="light"] [class~="border-slate-800"],
      [data-theme="light"] [class~="border-slate-700"] {
        border-color: rgba(14, 100, 180, 0.2) !important;
      }

      @media (max-width: 520px) {
        .site-footer {
          padding-top: 1.2rem;
          padding-bottom: 0.85rem;
        }

        .footer-main {
          align-items: flex-start;
          flex-direction: column;
          gap: 0.65rem;
        }

        .footer-features {
          justify-content: flex-start;
          gap: 0.3rem 0.8rem;
        }

        .footer-feature {
          font-size: 0.65rem;
        }

        .footer-bottom {
          flex-wrap: wrap;
          gap: 0.45rem 0.8rem;
          margin-top: 0.7rem;
          font-size: 0.65rem;
        }

        header .site-header-inner {
          flex-wrap: nowrap;
          gap: 0.25rem;
          padding-top: 0.6rem;
          padding-bottom: 0.6rem;
          padding-right: 0.5rem;
          padding-left: 0.5rem;
        }

        header .brand-lockup {
          min-width: 0;
          flex: 0 1 auto;
          gap: 0.45rem;
        }

        header .brand-lockup .brand-mark {
          width: 2rem;
          height: 2rem;
          flex: 0 0 auto;
        }

        header .brand-lockup .brand-name {
          font-size: 0.95rem;
          letter-spacing: 0.04em;
        }

        header .brand-lockup .brand-mark {
          width: 1.85rem;
          height: 1.85rem;
        }

        header .brand-lockup .font-mono {
          font-size: 8px;
        }

        header .site-nav {
          min-width: 0;
          flex: 0 0 auto;
          justify-content: flex-end;
          gap: 0.1rem;
        }

        header .header-link {
          width: 2.15rem;
          height: 2.15rem;
          justify-content: center;
          padding: 0;
        }

        .site-nav > .header-link span {
          position: absolute;
          width: 1px;
          height: 1px;
          overflow: hidden;
          clip-path: inset(50%);
          white-space: nowrap;
        }

        header .settings-icon-button {
          width: 2.15rem;
          height: 2.15rem;
          padding: 0;
        }

        main.max-w-6xl {
          padding-top: 1.5rem;
          padding-bottom: 1.5rem;
        }

        main h1.text-3xl {
          font-size: 1.65rem;
          line-height: 1.2;
        }

        main section > div:first-child > p {
          font-size: 0.82rem;
          line-height: 1.5;
        }

        .dropzone-dash > div.relative.z-10 {
          gap: 0.8rem;
        }

        .dropzone-dash > div.relative.z-10 > div:first-child {
          width: 3.75rem;
          height: 3.75rem;
        }

        .dropzone-dash > div.relative.z-10 > div:first-child i {
          width: 1.75rem;
          height: 1.75rem;
        }

        .dropzone-dash p.text-lg {
          font-size: 0.92rem;
          line-height: 1.45;
        }

        .feature-tabs {
          width: 100%;
        }

        .feature-tabs button {
          flex: 1;
          justify-content: center;
          padding: 0.65rem 0.5rem;
          font-size: 0.75rem;
        }

        .about-dialog-content {
          padding: 1.5rem;
        }
      }

      @media (min-width: 521px) and (max-width: 900px) {
        header .site-header-inner {
          gap: 0.75rem;
          padding-right: 1.25rem;
          padding-left: 1.25rem;
        }

        header .site-nav {
          gap: 0.5rem;
        }

        header .header-link {
          padding: 0.6rem 0.7rem;
        }

        main.max-w-6xl {
          padding-top: 2rem;
          padding-bottom: 2rem;
        }
      }

      @media (min-width: 521px) and (max-width: 640px) {
        header .site-header-inner {
          gap: 0.5rem;
          padding-right: 0.75rem;
          padding-left: 0.75rem;
        }

        header .site-nav {
          gap: 0.15rem;
        }

        header .site-nav > .header-link span {
          position: absolute;
          width: 1px;
          height: 1px;
          overflow: hidden;
          clip-path: inset(50%);
          white-space: nowrap;
        }

        header .header-link,
        header .settings-icon-button {
          width: 2.4rem;
          height: 2.4rem;
          justify-content: center;
          padding: 0;
        }
      }
