/* MeroKalam.com official easy-nepali-typing styles. Unauthorized copying or republication is not permitted. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600&display=swap');
    @font-face {
      font-family: 'Preeti';
      src: url('../assets/fonts/Preeti.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      min-height: 100vh;
      line-height: 1.6;
    }
    .container { max-width: 1100px; margin: 0 auto; padding: 0 1rem 2rem; }
    .header { text-align: left; margin-bottom: 0.75rem; padding: 0.6rem 0 0.25rem; }
    .header h1 {
      font-size: clamp(1.75rem, 5vw, 2.6rem);
      font-weight: 800;
      letter-spacing: -0.025em;
      line-height: 1.15;
      background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.4rem;
    }
    .header h1::before {
      content: "Nepali Unicode Typing Tool";
      display: block;
      width: max-content;
      max-width: 100%;
      margin: 0 0 0.35rem;
      color: #94a3b8;
      -webkit-text-fill-color: #94a3b8;
      background: none;
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      line-height: 1.2;
      text-transform: uppercase;
    }
    .header .dev-subtitle {
      font-family: 'Noto Sans Devanagari', 'Mangal', serif;
      font-size: clamp(1.1rem, 3vw, 1.5rem);
      font-weight: 700;
      background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: block;
      margin-bottom: 0.55rem;
    }
    .header p { max-width: 980px; font-size: 0.95rem; color: #6b6b6b; line-height: 1.65; }
    .mk-line-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      color: currentColor;
    }
    .mk-line-icon svg {
      display: block;
      width: 1em;
      height: 1em;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .btn .mk-line-icon {
      width: 0.98rem;
      height: 0.98rem;
      vertical-align: -0.12rem;
    }
    .ent-card-icon {
      width: 1.35rem;
      height: 1.35rem;
      border-radius: 0.45rem;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #2563eb;
    }
    .ent-card-icon svg {
      width: 0.78rem;
      height: 0.78rem;
    }
    .card {
      background: white;
      border-radius: 1.5rem;
      padding: 1.25rem 1.5rem;
      box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
      margin-bottom: 1rem;
      border: 1px solid #e8e2d8;
    }
    .card-converter { border-top: none; position: relative; overflow: visible; }
    .typeshala-capsule-ad {
      position: absolute;
      top: 8.2rem;
      right: -2.2rem;
      z-index: 4;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 8.9rem;
      padding: 0.62rem 0.32rem;
      border: 1px solid #1e293b;
      border-radius: 0.16rem;
      background: #fff;
      color: #0f172a;
      box-shadow: 0 12px 28px rgba(15,23,42,.12);
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      line-height: 1.1;
      text-decoration: none;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      transition: border-color .2s, box-shadow .2s, color .2s, transform .2s;
    }
    .preeti-capsule-ad {
      right: auto;
      left: -2.2rem;
      border-color: #0f766e;
    }
    .typeshala-capsule-ad:hover,
    .typeshala-capsule-ad:focus-visible {
      border-color: #2563eb;
      color: #1d4ed8;
      box-shadow: 0 16px 36px rgba(37,99,235,.18);
      outline: none;
      transform: rotate(180deg) translateY(2px);
    }
    .preeti-capsule-ad:hover,
    .preeti-capsule-ad:focus-visible {
      border-color: #0f766e;
      color: #0f766e;
      box-shadow: 0 16px 36px rgba(15,118,110,.18);
    }
    .mode-row {
      display: flex;
      justify-content: space-between;
      align-items: stretch;
      gap: 0.8rem;
      margin-bottom: 0.85rem;
      padding: 0.75rem;
      border: 1px solid #dbeafe;
      border-radius: 0.9rem;
      background: linear-gradient(135deg, #f8fbff 0%, #eef9ff 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px rgba(37,99,235,.08);
      flex-wrap: wrap;
    }
    .mode-title {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      min-width: 210px;
    }
    .mode-icon {
      display: grid;
      place-items: center;
      width: 2.35rem;
      height: 2.35rem;
      border-radius: 0.7rem;
      background: #2563eb;
      color: white;
      font-size: 1rem;
      font-weight: 900;
      box-shadow: 0 8px 18px rgba(37,99,235,.25);
    }
    .mode-icon .mk-line-icon,
    .mode-icon svg {
      width: 1.08rem;
      height: 1.08rem;
    }
    .mode-title-text {
      color: #0f172a;
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.09em;
      line-height: 1.1;
      text-transform: uppercase;
    }
    .mode-title-sub {
      color: #64748b;
      font-size: 0.7rem;
      font-weight: 700;
      margin-top: 0.22rem;
    }
    .mode-toggle {
      display: grid;
      grid-template-columns: 1fr 1fr;
      flex: 1 1 420px;
      padding: 0.25rem;
      gap: 0.25rem;
      border: 1px solid #bfdbfe;
      border-radius: 0.85rem;
      background: rgba(255,255,255,.82);
    }
    .mode-btn {
      border: none;
      border-radius: 0.65rem;
      background: transparent;
      color: #1e3a8a;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 800;
      padding: 0.62rem 0.85rem;
      transition: background 0.15s, color 0.15s, box-shadow 0.15s;
      white-space: nowrap;
    }
    .mode-btn.active {
      background: #2563eb;
      color: white;
      box-shadow: 0 3px 10px rgba(37,99,235,.2);
    }
    .mode-note {
      align-self: center;
      flex: 1 1 100%;
      padding: 0 0.1rem;
      color: #64748b;
      font-size: 0.74rem;
      font-weight: 700;
    }
    .typing-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .label {
      font-size: 0.7rem;
      font-weight: 800;
      color: #6b6b6b;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }
    .label-badge {
      display: inline-block;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 0.15rem 0.5rem;
      border-radius: 99px;
      text-transform: uppercase;
    }
    .badge-latin { background: #fef3c7; color: #92400e; }
    .badge-unicode { background: #dcfce7; color: #166534; }
    textarea {
      width: 100%;
      min-height: 235px;
      height: 235px;
      padding: 1rem;
      border: 1.5px solid #e2e8f0;
      border-radius: 0.75rem;
      font-size: 1rem;
      resize: vertical;
      transition: border-color 0.2s, box-shadow 0.2s;
      line-height: 1.75;
      background: #fafafa;
    }
    textarea:focus {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(37,99,235,.1);
      background: white;
    }
    #romInput { font-family: 'Noto Sans Devanagari', 'Mangal', 'Arial Unicode MS', 'Courier New', monospace; background: #fffdf9; color: #1c1c1c; min-height: 310px; height: 310px; font-size: 1.12rem; }
    #romInput.preeti-mode { font-family: 'Noto Sans Devanagari', 'Mangal', 'Arial Unicode MS', 'Courier New', monospace; font-size: 1.12rem; line-height: 1.75; }
    #devOutput { display: none; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      padding: 0.75rem 2.25rem;
      min-width: 130px;
      border: none;
      border-radius: 0.625rem;
      font-weight: 700;
      font-size: 0.92rem;
      cursor: pointer;
      transition: all 0.2s;
      letter-spacing: 0.01em;
    }
    .btn-primary {
      background: linear-gradient(135deg, #2563eb, #0891b2);
      color: white;
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
    .success {
      display: none;
      background: #dcfce7;
      border: 2px solid #86efac;
      border-radius: 0.75rem;
      padding: 0.6rem 1rem;
      margin-bottom: 0.75rem;
      color: #10b981;
      font-weight: 600;
    }
    .success.show { display: block; }
    .draft-notice {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      border: 1px solid #bfdbfe;
      border-radius: 0.75rem;
      background: #eff6ff;
      color: #1e40af;
      font-size: 0.82rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      padding: 0.65rem 0.8rem;
    }
    .draft-notice.show { display: flex; }
    .draft-notice button {
      border: none;
      border-radius: 0.45rem;
      background: #dbeafe;
      color: #1d4ed8;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.75rem;
      font-weight: 800;
      padding: 0.35rem 0.55rem;
      white-space: nowrap;
    }
    .divider { height: 2px; background: #e2e8f0; margin: 0.75rem 0; }
    .tool-actions {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
      margin: 0.75rem 0;
    }
    .clear-row {
      display: flex;
      justify-content: center;
      margin: 0 0 0.5rem;
    }
    .btn-clear {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      min-height: 2.35rem;
      min-width: 9rem;
      border: 1.5px solid #fecaca;
      border-radius: 0.65rem;
      background: #fff5f5;
      color: #b91c1c;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.82rem;
      font-weight: 800;
      box-shadow: 0 4px 12px rgba(185,28,28,.08);
      transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    }
    .btn-clear:hover {
      background: #fee2e2;
      border-color: #f87171;
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(185,28,28,.14);
    }
    .char-panel {
      display: none;
      border: 1px solid #e2e8f0;
      border-radius: 0.75rem;
      background: #f8fafc;
      padding: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .char-panel.show { display: block; }
    .char-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
      gap: 0.35rem;
    }
    .char-btn {
      min-height: 2.4rem;
      border: 1px solid #cbd5e1;
      border-radius: 0.45rem;
      background: white;
      color: #0f172a;
      cursor: pointer;
      font-family: 'Noto Sans Devanagari','Mangal',serif;
      font-size: 1.05rem;
      font-weight: 800;
      transition: border-color 0.15s, background 0.15s;
    }
    .char-btn:hover { border-color: #2563eb; background: #eff6ff; }
    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
      margin-top: 0.5rem;
    }
    .stat {
      text-align: center;
      padding: 0.65rem 0.5rem;
      background: #f8fafc;
      border-radius: 0.75rem;
      border: 1px solid #e2e8f0;
    }
    .stat-num { font-size: 1.6rem; font-weight: 900; color: #2563eb; line-height: 1; }
    .stat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; margin-top: 0.5rem; }

    /* Examples */
    .examples-row { margin-bottom: 0.75rem; }
    .examples-row.is-hidden { display: none; }
    .examples-label { font-size: 0.75rem; font-weight: 700; color: #64748b; margin-bottom: 0.4rem; }
    .ex-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .ex-chip {
      display: inline-flex; align-items: center; gap: 0.3rem;
      background: white; border: 1.5px solid #e2e8f0; border-radius: 999px;
      padding: 0.28rem 0.75rem; font-size: 0.78rem; font-weight: 600; color: #374151;
      cursor: pointer; transition: all 0.15s;
    }
    .ex-chip:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
    .ex-chip .dev { font-family: 'Noto Sans Devanagari','Mangal',serif; font-size: 0.82rem; color: #64748b; }

    /* Smart suggestions */
    .editor-shell {
      position: relative;
    }
    .suggest-wrap {
      display: none;
      position: absolute;
      left: 4rem;
      top: 4.4rem;
      z-index: 20;
      width: min(230px, calc(100% - 2rem));
      overflow: hidden;
      border: 1px solid #e2e8f0;
      border-radius: 0.45rem;
      background: white;
      box-shadow: 0 14px 32px rgba(15,23,42,.16), 0 2px 8px rgba(15,23,42,.08);
    }
    .suggest-wrap.show { display: block; }
    .suggest-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #e2e8f0;
      color: #0f172a;
      font-family: 'Courier New', monospace;
      font-size: 0.92rem;
      font-weight: 800;
      padding: 0.55rem 0.7rem;
      text-transform: none;
      letter-spacing: 0;
    }
    .suggest-list {
      display: block;
      max-height: 220px;
      overflow: hidden;
    }
    .suggest-chip {
      display: grid;
      grid-template-columns: 2rem 1fr auto;
      align-items: center;
      gap: 0.45rem;
      width: 100%;
      min-height: 2.3rem;
      border: none;
      border-radius: 0;
      background: white;
      color: #111827;
      cursor: pointer;
      font-family: 'Noto Sans Devanagari','Mangal',serif;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.2;
      padding: 0.32rem 0.5rem;
      text-align: left;
      transition: background 0.12s;
    }
    .suggest-chip:hover,
    .suggest-chip.active {
      background: #eff6ff;
      box-shadow: none;
      transform: none;
    }
    .suggest-num {
      color: #64748b;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 0.82rem;
      font-weight: 700;
      text-align: right;
    }
    .suggest-hint {
      justify-self: end;
      border-radius: 0.25rem;
      background: #dbeafe;
      color: #2563eb;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 0.16rem 0.35rem;
    }
    .suggest-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid #e2e8f0;
      background: #f8fafc;
      color: #94a3b8;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.4rem 0.65rem;
    }
    .suggest-arrows {
      letter-spacing: 0.35rem;
    }

    /* Why grid */
    .why-row1 { margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; border-bottom: none !important; }
    .why-row2 { margin-top: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; border-top: 1px dashed #e2e8f0 !important; }
    .why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; }
    @media(max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
    @media(min-width: 480px) and (max-width: 600px) { .why-grid { grid-template-columns: 1fr 1fr; } }

    /* Blog sections */
    .blog-section { margin-top: 1rem !important; }
    .blog-section h2 { font-size: 1.3rem; font-weight: 800; color: #1c1c1c; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid #e8e2d8; }
    .blog-section h3 { font-size: 1rem; font-weight: 800; color: #c0392b; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; margin-top: 1.5rem; }
    .blog-section h3:first-of-type { margin-top: 0; }
    .blog-section p { font-size: 0.93rem; color: #3a3a3a; line-height: 1.85; margin-bottom: 0.75rem; }
    .blog-section ul, .blog-section ol { padding-left: 1.4rem; margin-bottom: 0.75rem; }
    .blog-section li { font-size: 0.93rem; color: #3a3a3a; line-height: 1.8; margin-bottom: 0.4rem; }
    .blog-section strong { color: #1a1a1a; }
    .blog-section code { background: #f1f5f9; padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.88rem; font-family: monospace; color: #1d4ed8; }

    /* Typing guide table */
    .typing-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.88rem; }
    .typing-table th { background: #2563eb; color: white; padding: 0.5rem 0.75rem; text-align: left; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
    .typing-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
    .typing-table tr:nth-child(even) { background: #f8fafc; }
    .typing-table .dev-cell { font-family: 'Noto Sans Devanagari','Mangal',serif; font-size: 1.1rem; font-weight: 600; color: #1e3a8a; }
    .typing-table .rom-cell { font-family: monospace; background: #e0f2fe; padding: 0.15rem 0.4rem; border-radius: 4px; color: #0369a1; font-weight: 700; }
    .typing-table .check { color: #16a34a; font-weight: 700; }
    .typing-table .warn { color: #dc2626; font-weight: 700; }

    /* Visual stat bars */
    .stat-bar-wrap { margin-bottom: 1rem; }
    .stat-bar-row { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.45rem; font-size: 0.85rem; }
    .stat-bar-label { width: 130px; flex-shrink: 0; font-weight: 600; color: #374151; }
    .stat-bar { flex: 1; height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
    .stat-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #0891b2); }
    .stat-bar-pct { font-size: 0.78rem; color: #64748b; width: 40px; text-align: right; flex-shrink: 0; }

    /* FAQ */
    .faq-wrap { background: white; border: 1px solid #e8e2d8; border-radius: 1rem; overflow: hidden; margin-top: 1.5rem; }
    .faq-head { padding: 1rem 1.5rem; font-size: 1rem; font-weight: 800; color: #1c1c1c; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
    .faq-item { border-bottom: 1px solid #f1f5f9; }
    .faq-item:last-child { border-bottom: none; }
    .faq-q { width: 100%; padding: 0.9rem 1.25rem; background: white; border: none; text-align: left; font-family: inherit; font-size: 0.88rem; font-weight: 700; color: #1c1c1c; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; transition: background 0.15s; }
    .faq-q:hover { background: #f8fafc; }
    .faq-q.open { color: #2563eb; background: #eff6ff; }
    .faq-icon { font-size: 1rem; transition: transform 0.25s; flex-shrink: 0; }
    .faq-q.open .faq-icon { transform: rotate(45deg); }
    .faq-bd { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .faq-bd.open { max-height: 600px; }
    .faq-ans { padding: 0.1rem 1.25rem 1rem; font-size: 0.87rem; color: #374151; line-height: 1.75; }
    .faq-ans p { margin-bottom: 0.4rem; }
    .faq-ans code { background: #f1f5f9; border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.85rem; }

    /* Info box */
    .info-box { background: #e8f5ee; border-left: 3px solid #1e5c3a; border-radius: 0 10px 10px 0; padding: 0.85rem 1.1rem; margin: 0.9rem 0; }
    .info-box p { font-size: 0.88rem; color: #1e5c3a; margin: 0; line-height: 1.75; }
    .tip-box { background: #eff6ff; border-left: 3px solid #2563eb; border-radius: 0 10px 10px 0; padding: 0.85rem 1.1rem; margin: 0.9rem 0; }
    .tip-box p { font-size: 0.88rem; color: #1e40af; margin: 0; line-height: 1.75; }

    @media(max-width: 768px) {
      body { background: #f6f8fc; }
      html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
      .container { width: 100%; max-width: 100%; padding: 0 0.75rem 1.75rem; overflow-x: hidden; }
      .mk-nav { padding-left: 0.75rem; padding-right: 0.75rem; overflow: hidden; gap: 0.65rem; }
      .mk-nav-brand { flex: 0 0 auto; min-width: 0; font-size: 0.9rem; }
      .mk-nav-links { flex: 0 1 auto; min-width: 0; gap: 0.65rem; font-size: 0.82rem; justify-content: flex-end; }
      .mk-nav-links a[href="/blog/"], .mk-nav-links a[href="/about/"] { display: none; }
      .typing-grid { grid-template-columns: 1fr; gap: 0.75rem; }
      .stats { grid-template-columns: repeat(3,1fr); gap: 0.45rem; }
      .stat { padding: 0.55rem 0.35rem; }
      .stat-num { font-size: 1.25rem; }
      .stat-label { font-size: 0.62rem; }
      .card { padding: 0.85rem; border-radius: 1rem; margin-bottom: 0.85rem; }
      .card-converter { position: relative; overflow: hidden; }
      .typeshala-capsule-ad {
        position: static;
        width: 100%;
        min-height: 0;
        margin: 0 0 0.8rem;
        padding: 0.58rem 0.85rem;
        border: 1px solid #bfdbfe;
        border-radius: 999px;
        background: linear-gradient(135deg,#eff6ff,#fff);
        color: #1d4ed8;
        box-shadow: 0 10px 24px rgba(37,99,235,.09);
        font-size: 0.82rem;
        writing-mode: horizontal-tb;
        transform: none;
      }
      .typeshala-capsule-ad:hover,
      .typeshala-capsule-ad:focus-visible {
        transform: none;
        box-shadow: 0 12px 26px rgba(37,99,235,.13);
      }
      .header { text-align: left; padding: 0.85rem 0.15rem 0.35rem; margin-bottom: 0.65rem; }
      .header h1 { font-size: clamp(1.65rem, 8vw, 2.15rem); line-height: 1.08; margin-bottom: 0.4rem; }
      .header .dev-subtitle { font-size: 1.05rem; margin-bottom: 0.45rem; }
      .header p { max-width: 100%; font-size: 0.9rem; line-height: 1.65; text-align: left !important; text-align-last: auto; word-spacing: normal; letter-spacing: 0; overflow-wrap: break-word; }
      .examples-row { margin: 0 -0.75rem 0.65rem; padding: 0 0.75rem; }
      .examples-label { padding-left: 0.1rem; }
      .ex-chips { flex-wrap: nowrap; overflow-x: auto; padding: 0.05rem 0 0.4rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
      .ex-chip { flex: 0 0 auto; scroll-snap-align: start; min-height: 2.2rem; }
      .typing-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .mode-row { padding: 0.65rem; gap: 0.65rem; border-radius: 0.85rem; }
      .mode-title { width: 100%; min-width: 0; }
      .mode-icon { width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; }
      .mode-toggle { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
      .mode-btn { min-height: 2.5rem; padding: 0.48rem 0.35rem; white-space: normal; text-align: center; justify-content: center; font-size: 0.78rem; line-height: 1.25; }
      .mode-btn.active { box-shadow: 0 6px 16px rgba(37,99,235,.18); }
      .mode-note { font-size: 0.75rem; line-height: 1.45; }
      .label { margin-bottom: 0.4rem; }
      #romInput { min-height: 46vh; height: 46vh; max-height: 420px; padding: 0.85rem; font-size: 1.04rem; line-height: 1.7; border-radius: 0.8rem; resize: vertical; }
      #romInput.preeti-mode { font-size: 1.05rem; }
      .suggest-wrap { left: 0.75rem; right: 0.75rem; top: 3.65rem; width: auto; max-height: min(62vh, 360px); border-radius: 0.75rem; box-shadow: 0 18px 42px rgba(15,23,42,.22), 0 2px 8px rgba(15,23,42,.08); }
      .suggest-list { max-height: min(48vh, 280px); overflow-y: auto; }
      .suggest-chip { min-height: 2.85rem; grid-template-columns: 2.2rem 1fr auto; font-size: 1.05rem; padding: 0.45rem 0.65rem; }
      .suggest-hint { font-size: 0.62rem; }
      .tool-actions { grid-template-columns: 1fr; gap: 0.55rem; margin: 0.65rem 0; }
      .btn { width: 100%; min-height: 2.75rem; min-width: 0; padding: 0.72rem 1rem; font-size: 0.9rem; }
      .btn-clear { width: 100%; min-height: 2.6rem; }
      .char-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
      .char-btn { min-height: 2.55rem; }
      .draft-notice { align-items: flex-start; font-size: 0.78rem; line-height: 1.4; }
      .faq-q { padding: 0.85rem 1rem; }
      .faq-ans { padding: 0.1rem 1rem 1rem; }
      .blog-section h2 { font-size: 1.15rem; }
      .blog-section h3 { font-size: 0.92rem; }
      .blog-section p, .blog-section li { font-size: 0.9rem; }
    }
    @media(max-width: 480px) {
      .container { padding-left: 0.65rem; padding-right: 0.65rem; }
      .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .header h1 { font-size: clamp(1.5rem, 9vw, 1.95rem); }
      .header p { font-size: 0.86rem; }
      .mode-title-text { font-size: 0.72rem; }
      .mode-title-sub { font-size: 0.66rem; }
      .mode-btn { font-size: 0.72rem; padding-left: 0.25rem; padding-right: 0.25rem; }
      #romInput { min-height: 50vh; height: 50vh; font-size: 1rem; }
      .suggest-wrap { top: 3.45rem; left: 0.55rem; right: 0.55rem; }
      .suggest-label { padding: 0.5rem 0.65rem; }
      .suggest-chip { min-height: 2.7rem; font-size: 1rem; }
    }
