    :root {
      color-scheme: light;
      --bg: #e8f0ec;
      --panel: #ffffff;
      --soft: #dde8e2;
      --line: #d9dee8;
      --text: #141824;
      --mtext: #14182494;
      --muted: #667085;
      --accent: #38a878;
      --chrome: #141824;


      --shadow: 0 10px 34px rgba(22, 32, 55, .08);

      /* Fonts */
      --font-head: system-ui, sans-serif;
      --font-mono: monospace;
      --ftfamily: -apple-system, BlinkMacSystemFont, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-mono);
      background-color: var(--bg);
      color: var(--chrome);
      margin: 0;
      padding: 0;
      line-height: 1.65;
      margin-bottom: 160px;
      -webkit-font-smoothing: antialiased;
      transition: background-color 0.35s ease, color 0.35s ease;
      background-image: radial-gradient(circle at 20% 50%, rgba(56, 168, 120, 0.04) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(232, 160, 32, 0.04) 0%, transparent 50%), repeating-linear-gradient(60deg, transparent, transparent 28px, rgba(0, 0, 0, 0.025) 28px, rgba(0, 0, 0, 0.025) 29px);
      background-size: 100% 100%, 100% 100%, 50px 88px;
      background-attachment: fixed;
    }

    button,
    textarea,
    select {
      font: inherit;
    }

    /* iOS zoom-on-focus fix: all interactive text controls must be >=16px */
    textarea,
    select,
    input,
    #editor-area {
      font-size: 16px !important;
    }

    h1 {
      font-size: 2.5rem;
      text-align: center;
    }

    .app {
      display: grid;
      grid-template-rows: auto 1fr auto;
      min-height: 100vh;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      width: 100vw;
      max-width: 100vw;
      min-width: 0;
      padding: 14px clamp(14px, 4vw, 32px);
      background: rgba(255, 255, 255, .92);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(14px);
      flex-direction: column-reverse;
    }

    .composer {
      position: sticky;
      top: 0;
      z-index: 10;

    }

    .brand {
      min-width: 150px;
      font-size: clamp(18px, 3vw, 25px);
      font-weight: 850;
      letter-spacing: 0;
    }

    .top-actions {
      display: flex;
      align-items: baseline;
      gap: 5px;
      flex-direction: row;
      justify-content: flex-end;
    }

    .select-wrap {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 0;
      padding: 0 10px;
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: 8px;
    }

    .select-wrap span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 750;
      white-space: nowrap;
    }

    select {
      width: min(35vw, 220px);
      border: 0;
      outline: 0;
      padding: 10px 2px;
      background: transparent;
      color: var(--text);
      font-weight: 750;
    }

    .ghost-btn,
    .icon-btn {
      border: 1px solid var(--line);
      border-radius: 8px;
      min-height: 35px;
      background: var(--panel);
      color: var(--text);
      cursor: pointer;
      transition: transform .16s ease, border-color .16s ease, background .16s ease;
      touch-action: manipulation;
    }



    #regen,
    .load-btn {
      margin: 0 10px 5px 0;
      font-size: 1.1rem;
      border-radius: 30px;
      padding: 10px 15px;
      background: var(--accent);
      color: var(--panel);
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.15s ease;
      touch-action: manipulation;
    }

    #regen:hover,
    .load-btn:hover {
      background: #fff;
      color: var(--accent);
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    #regen:active,
    .load-btn:active {
      transform: translateY(2px) scale(0.98);
    }

    .load-btn {
      width: 100%;
      margin: 15px 0;
    }

    .icon-btn {
      display: inline-grid;
      place-items: center;
      font-size: 18px;
      width: 50px;
    }

    .ghost-btn:hover,
    .icon-btn:hover {
      border-color: #b8c3d8;
      transform: translateY(-1px);
    }

    .workspace {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 10px;
      width: 100vw;
    }

    nav {
      background: var(--accent);
      border-radius: 10px;
    }

    #randomcloud {
      text-align: center;
      height: 70px;
      overflow: hidden;
      margin: 10px 0;
      padding: 0;
      display: inline-block;
    }

    #randomcloud li {
      background: transparent;
      border: none;
      box-shadow: none;
      display: inline-block;
      position: relative;
    }

    #randomcloud p {
      font-family: var(--ftfamily);
      font-size: 22px;
      color: #777;
      padding: 5px;
      margin: 0 4px;
      cursor: pointer;
    }

    #randomcloud p:hover {
      color: #000;
    }

    .rail {
      position: sticky;
      top: 160px;
      align-self: start;
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
      max-height: calc(100vh - 96px);
      overflow: auto;
      scrollbar-width: none;
    }

    .rail::-webkit-scrollbar {
      display: none;
    }

    .rail a {
      display: grid;
      place-items: center;
      min-height: 42px;
      margin: 0 10px;
      padding: 10px 0;
      gap: 5px;
      color: var(--mtext);
      text-align: center;
      text-decoration: none;
      border-radius: 10px;
      font-size: 0.8rem;
      font-weight: 850;
      line-height: 1.15;
    }

    .rail a.active,
    .rail a:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .rail a i {
      font-size: 1.2rem;
      font-style: normal;
    }

    .results {
      display: grid;
      gap: 18px;
      margin: 0;
      padding: 0;
      list-style: none;
      min-width: 0;
    }

    .freakyfonts {
      scroll-margin-top: 86px;
    }

    .freakyfonts h2 {
      margin: 4px 0 9px;
      color: var(--muted);
      font-size: 1rem;
      letter-spacing: 0;
      text-transform: uppercase;
      font-family: var(--font-head);
    }

    .cards,
    #recentused {
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .cards li,
    #recentused li {
      background: var(--panel);
      border-radius: 10px;
      padding: 10px;
      border: 1.5px solid rgba(38, 48, 64, 0.10);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;

      transition:
        transform 0.15s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    }

    .cards li:hover,
    #recentused li:hover {
      border-color: rgba(38, 48, 64, 0.18);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      transform: translateY(-2px);
    }

    .cards li:active,
    #recentused li:active {
      transform: scale(0.97);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    }


    .cards p,
    #recentused p {
      margin: 0;
      padding: 0;
      font-size: 1.3rem;
      color: var(--text);
      font-family: var(--ftfamily);
      text-align: left;
      word-wrap: break-word;
      letter-spacing: 0.02em;
    }

    .cards b,
    .cards i,
    #recentused b,
    #recentused i {
      color: #667085a3;
      font-size: 0.65rem;
      font-weight: 750;
    }

    .cards i,
    #recentused i {
      font-style: normal;
      font-size: 0.65rem;
      font-family: var(--font-head);
      color: #38a87899;
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }

    .cards li span,
    #recentused li span {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      display: flex;
      font-weight: bold;
      flex-wrap: wrap;
      flex-direction: column;
      justify-content: space-around;
      align-content: center;
      background: var(--panel);
      font-family: var(--font-head);
      color: var(--accent);
    }

    .composer-inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 5px;
      width: 100vw;
      padding: 10px 10px 5px 10px;
    }

    .container {
      max-width: 1080px;
      min-width: 0;
      margin: 0 auto;
    }

    .input-shell {
      position: relative;
      min-width: 0;
    }

    textarea {
      display: block;
      width: 100%;
      min-height: 75px;
      max-height: 150px;
      resize: vertical;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      outline: 0;
      background: var(--soft);
      color: var(--text);
      text-align: center;
    }

    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(23, 105, 224, .13);
    }

    .counter {
      position: absolute;
      right: 13px;
      bottom: 8px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      font-variant-numeric: tabular-nums;
    }

    .composer-tools {
      display: grid;
      align-content: center;
      gap: 8px;
    }

    .editit {
      position: fixed;
      bottom: 170px;
      right: 0;
      gap: 15px;
      display: flex;
      flex-wrap: nowrap;
      flex-direction: column;
      justify-content: space-evenly;
      align-items: flex-end;
    }



    #backToTop,
    #openBtn {
      display: flex;
      width: 45px;
      height: 45px;
      border-radius: 10px 0 0 10px;
      border: none;
      background: #fff;
      box-shadow: 0 2px 10px rgba(107, 102, 184, 0.28);
      align-items: center;
      flex-wrap: nowrap;
      flex-direction: column;
      justify-content: space-evenly;
      cursor: pointer;
      touch-action: manipulation;
    }

    #clearEBtn {
      position: absolute;
      right: 0;
      top: 0;
      border: none;
      font-weight: bold;
      color: red;
      padding: 15px;
      box-shadow: none;
      background: #ffffff66;
      cursor: pointer;
    }

    #clearEBtn:hover {
      color: #000;
    }

    svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 1.75;
      fill: none;
    }

    #openBtn {
      bottom: 250px;
      width: auto;
      background: #333;
      color: #fff;
    }

    #editorBox {
      position: fixed;
      bottom: 0;
      right: 0;
      width: 100%;
      height: 170px;
      background: #f2f7f4;
      border-radius: 0 0 10px 10px;
      border: 1.5px solid rgba(38, 48, 64, 0.10);
      align-items: center;
      z-index: 99;
      display: none;
      box-shadow: 0 -6px 24px rgba(0, 0, 0, .20);
    }

    #editor-area {
      width: 100%;
      height: 100%;
      max-height: 100%;
      position: absolute;
      padding: 15px;
      border: none;
      background: rgba(245, 240, 232, .06);
      color: #444;
      font-family: Arial, sans-serif;
      text-align: center;
      transition: border-color .15s;
    }

    .fun-btns {
      position: absolute;
      right: 20px;
      bottom: 15px;
      display: flex;
      gap: 10px;
    }

    .fun-btns button {
      width: auto;
      background: #ffffff59;
      color: var(--accent);
      padding: 6px 12px;
      font-size: 1rem;
      cursor: pointer;
      border-radius: 10px;
      border: none;
      transition: background .12s, color .12s;
    }

    #saveBtn {
      right: 130px;
    }

    .info-text {
      padding: 10px;
      font-size: 1.1rem;
    }

    .info-text .feat,
    .info-text .thumb {
      max-width: 720px;
    }

    .top-point ul {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      list-style-type: none;
      padding-left: 0;
    }

    .top-point li {
      font-size: 1.2rem;
      font-weight: bold;
      width: 210px;
    }

    .info-div {
      display: flex;
      align-items: flex-start;
      gap: 30px;
    }

    .text-box {
      flex: 0 0 60%;
      padding-right: 10px;
    }

    .image-box {
      flex: 0 0 40%;
    }

    .image-box img {
      width: 100%;
      height: auto;
      border-radius: 10px;
      object-fit: cover;
      display: block;
    }

    footer {
      margin-top: 60px;
      background: #000;
      border-top: 1px solid #fff;
      padding: 22px 0;
      position: relative;
    }

    footer .inner {
      display: flex;
      justify-content: space-between;
    }

    @media (max-width: 600px) {
      .container {
        max-width: 100%;
      }

      .info-div {
        flex-direction: column;
        gap: 20px;
      }

      .cards p,
      #recentused p {
        font-size: 1.1rem;
      }

      .image-box,
      .text-box {
        flex: 0 0 100%;
      }

      .info img {
        max-width: 100%;
      }



      #randomcloud {
        height: 120px;
      }

      .workspace {
        grid-template-columns: 80px minmax(0, 1fr);
      }


      .rail a {
        padding: 5px 0;
        font-size: 0.7rem;
      }

      .results {
        padding: 0 10px 0 0;
      }

      .info-text .feat,
      .info-text .thumb {
        width: 100%;
      }


    }

    #darkModeToggle {
      border: 1.5px solid rgba(38, 48, 64, 0.10);
      background: transparent;
      color: #444;
      font-family: var(--font-head);
      font-weight: 600;
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      padding: 8px 14px;
      border-radius: 15px;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .dark {
      color-scheme: dark;

      --bg: #0f1419;
      --panel: #1a2028;
      --soft: #222b35;
      --line: #334155;

      --text: #e5e7eb;
      --mtext: #ffffff94;
      --chrome: #f3f4f6;
      --muted: #94a3b8;

      --shadow: 0 10px 34px rgba(0, 0, 0, .35);
    }

    .dark body {
      background-image:
        radial-gradient(circle at 20% 50%, rgba(74, 222, 128, .05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, .04) 0%, transparent 50%),
        repeating-linear-gradient(60deg,
          transparent,
          transparent 28px,
          rgba(255, 255, 255, .025) 28px,
          rgba(255, 255, 255, .025) 29px);
    }

    .dark .topbar {
      background: rgba(15, 20, 25, .92);
    }

    .dark nav {
      background: #000;
    }

    .dark .cards li {
      background: var(--panel);
    }

    .dark .cards li span {
      background: rgba(15, 20, 25, .96);
    }

    .dark .rail a.active,
    .dark .rail a:hover {
      color: #0f1419;
    }

    .dark #randomcloud p:hover {
      color: #fff;
    }

    .dark textarea {
      box-shadow: none;
    }

    .dark #backToTop {
      background: var(--panel);
      color: var(--text);
    }

    .dark .ghost-btn,
    .dark .icon-btn,
    .dark #regen,
    .dark .load-btn {
      box-shadow: none;
    }