    :root {
      --bg: #a4c6dd;
      --paper: #ffffff;
      --paper-strong: #ffffff;
      --ink: #274c69;
      --muted: #6c8194;
      --border: rgba(49, 101, 140, 0.18);
      --blue: #48a3df;
      --blue-dark: #2f678f;
      --blue-soft: #d9edf9;
      --red: #e34c43;
      --amber: #b69757;
      --green: #4c8f63;
      --shadow: 0 18px 44px rgba(47, 103, 143, 0.1);
    }

    html {
      background: linear-gradient(180deg, #f7fbfe 0%, var(--bg) 100%);
      scroll-behavior: smooth;
    }

    body,
    button,
    input {
      font-family: 'IBM Plex Sans', sans-serif;
      color: var(--ink);
    }

    body {
      min-height: 100vh;
    }

    .page-shell {
      max-width: 920px;
      margin: 0 auto;
      padding: 0 1.25rem 2.5rem;
    }

    .site-header,
    .site-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      padding: 1.5rem 0;
      border-bottom: 1px solid rgba(49, 101, 140, 0.14);
    }

    .site-footer {
      margin-top: 4rem;
      border-top: 1px solid rgba(49, 101, 140, 0.14);
      border-bottom: none;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      color: var(--ink);
      font-size: clamp(1.2rem, 2.2vw, 1.55rem);
      font-weight: 700;
      letter-spacing: 0.08em;
      line-height: 1;
      text-transform: uppercase;
      text-decoration: none;
    }

    .brand-dot {
      color: var(--blue);
    }

    .footer-nav,
    .footer-meta {
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .footer-nav a {
      color: inherit;
      text-decoration: none;
    }

    .footer-nav a:hover {
      color: var(--ink);
    }

    .hero {
      max-width: 720px;
      margin: 0 auto;
      padding: 4.5rem 0 0;
      text-align: center;
    }

    .hero-illustration-wrap {
      max-width: 760px;
      margin: 0 auto 1.6rem;
      max-height: 520px;
      opacity: 1;
      overflow: hidden;
      transition: max-height 0.35s ease, opacity 0.25s ease, margin-bottom 0.25s ease, transform 0.25s ease;
      transform: translateY(0);
    }

    body.hero-hidden .hero-illustration-wrap {
      max-height: 0;
      opacity: 0;
      margin-bottom: 0;
      transform: translateY(-10px);
      pointer-events: none;
    }

    .hero-illustration {
      display: block;
      width: 100%;
      border-radius: 24px;
      border: 1px solid rgba(49, 101, 140, 0.18);
      box-shadow: var(--shadow);
      background: #fff;
    }

    .mono-kicker,
    .section-title,
    .meta-note,
    .metric-label,
    .axis-label,
    .score-chip,
    .footer-note {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.85rem;
      text-transform: uppercase;
      color: var(--ink);
    }

    .hero h1 {
      margin-top: 0.9rem;
      font-size: clamp(2.8rem, 6.5vw, 4.4rem);
      line-height: 0.95;
      letter-spacing: -0.06em;
    }

    .hero-copy {
      max-width: 640px;
      margin: 1rem auto 0;
      font-size: clamp(1rem, 1.9vw, 1.15rem);
      line-height: 1.7;
      color: var(--muted);
    }

    .search-box {
      margin-top: 2rem;
      padding: 0;
      border: 1px solid rgba(49, 101, 140, 0.22);
      border-radius: 16px;
      background: var(--paper-strong);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .search-box .field.has-addons {
      margin-bottom: 0;
    }

    .search-box .control.is-expanded {
      display: flex;
    }

    .search-input-wrap {
      position: relative;
      align-items: center;
    }

    .input.ratio-input {
      width: 100%;
      min-height: 64px;
      border: none;
      box-shadow: none;
      background: transparent;
      padding-inline: 1.2rem 3.9rem;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.92rem;
    }

    .input.ratio-input:focus {
      box-shadow: none;
    }

    .clear-search-btn {
      position: absolute;
      z-index: 2;
      right: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      width: 2rem;
      height: 2rem;
      border: none;
      border-radius: 999px;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(49, 101, 140, 0.12);
      color: var(--blue-dark);
      cursor: pointer;
      pointer-events: auto;
      font-size: 1.25rem;
      line-height: 1;
      transition: background 120ms ease, opacity 120ms ease;
    }

    .clear-search-btn.is-visible {
      display: inline-flex;
    }

    .clear-search-btn:hover {
      background: rgba(49, 101, 140, 0.2);
    }

    .clear-search-btn:focus-visible {
      outline: 2px solid rgba(49, 101, 140, 0.4);
      outline-offset: 2px;
    }

    .button.analyze-btn {
      min-width: 160px;
      min-height: 64px;
      border: none;
      border-radius: 0;
      background: var(--blue-dark);
      color: #fff;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .button.analyze-btn:hover {
      background: #255372;
      color: #fff;
    }

    .button.analyze-btn[disabled] {
      background: #8f949b;
      color: #fff;
    }

    .error-text {
      display: none;
      margin-top: 0.75rem;
      text-align: left;
      color: var(--red);
    }

    .result-shell {
      display: none;
      max-width: 820px;
      margin: 2.5rem auto 0;
      animation: fade-up 0.35s ease;
    }

    .result-frame {
      background: rgba(255, 255, 255, 0.54);
      border: 1px solid rgba(49, 101, 140, 0.12);
      border-radius: 28px;
      box-shadow: var(--shadow);
      padding: 1rem;
    }

    .result-stack {
      display: flex;
      flex-direction: column;
      gap: 0.95rem;
    }

    .section-title {
      padding-top: 1.25rem;
      border-top: 1px solid rgba(49, 101, 140, 0.12);
    }

    .frame-kicker {
      padding-top: 0.1rem;
      text-align: center;
    }

    .tweet-card,
    .analysis-card,
    .metric-card,
    .share-card,
    .modal-card {
      background: var(--paper);
      border: 1px solid var(--border);
    }

    .tweet-card {
      padding: 1rem 1.1rem 0.95rem;
      border-radius: 18px;
    }

    .tweet-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.8rem;
    }

    .tweet-author {
      display: flex;
      gap: 0.9rem;
      min-width: 0;
    }

    .tweet-avatar {
      width: 48px;
      height: 48px;
      border-radius: 999px;
      background: var(--blue-soft);
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--muted);
      flex-shrink: 0;
    }

    .tweet-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .tweet-meta {
      min-width: 0;
    }

    .tweet-name-row {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      min-width: 0;
    }

    .tweet-name {
      font-weight: 700;
      font-size: 1rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tweet-badge {
      display: none;
      width: 18px;
      height: 18px;
      border-radius: 999px;
      align-items: center;
      justify-content: center;
      background: #1d9bf0;
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      line-height: 1;
      flex-shrink: 0;
    }

    .tweet-handle,
    .tweet-date {
      color: var(--muted);
      font-size: 0.92rem;
    }

    .tweet-mark {
      font-size: 1.65rem;
      line-height: 1;
      color: var(--ink);
      opacity: 0.9;
      flex-shrink: 0;
    }

    .tweet-text {
      font-size: clamp(1.05rem, 1.9vw, 1.28rem);
      line-height: 1.64;
      white-space: pre-wrap;
      word-break: break-word;
      margin-top: 0.9rem;
    }

    .tweet-actions {
      margin-top: 1rem;
      padding-top: 0.85rem;
      border-top: 1px solid rgba(49, 101, 140, 0.12);
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.75rem;
      color: var(--muted);
      font-size: 0.82rem;
    }

    .tweet-action {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      min-width: 0;
    }

    .analysis-card {
      padding: 1.15rem 1rem 0.9rem;
      border-radius: 18px;
      background: #f4f9fd;
    }

    .analysis-verdict {
      text-align: center;
      padding: 0.15rem 0 0.9rem;
    }

    .sentiment-panel {
      padding: 0.15rem 0 0.1rem;
    }

    .axis-wrap {
      position: relative;
      padding-top: 0.2rem;
    }

    .axis-track {
      position: relative;
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--red) 0%, #b6bec6 50%, var(--green) 100%);
    }

    .axis-marker {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      border: 2px solid rgba(255, 255, 255, 0.95);
      background: var(--amber);
      transform: translate(-50%, -50%);
      box-shadow: 0 10px 22px rgba(30, 35, 41, 0.18);
      transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
    }

    .axis-labels {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      margin-top: 0.6rem;
    }

    .axis-labels .axis-label:nth-child(2) {
      justify-self: center;
      color: var(--ink);
      font-weight: 400;
      opacity: 0.7;
    }

    .axis-labels .axis-label:last-child {
      justify-self: end;
    }

    .axis-labels .axis-label:first-child,
    .axis-labels .axis-label:last-child {
      font-weight: 700;
      color: var(--ink);
    }

    .metrics-strip {
      margin-top: 0.8rem;
      padding: 0.55rem 0.65rem;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.76);
      border: 1px solid rgba(49, 101, 140, 0.08);
    }

    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      padding-top: 0;
    }

    .metric-card {
      padding: 0.3rem 0.25rem;
      border-radius: 0;
      text-align: center;
      background: transparent;
      border: none;
      border-right: 1px solid rgba(49, 101, 140, 0.08);
      box-shadow: none;
    }

    .metric-card:last-child {
      border-right: none;
    }

    .metric-label {
      font-size: 0.56rem;
      letter-spacing: 0.1em;
      line-height: 1.1;
      font-weight: 500;
    }

    .metric-value {
      margin-top: 0.18rem;
      font-size: clamp(0.95rem, 1.5vw, 1.12rem);
      font-weight: 500;
      letter-spacing: -0.05em;
      line-height: 1;
    }

    .metric-card.is-bad {
      background: transparent;
    }

    .metric-card.is-bad .metric-value {
      color: var(--red);
    }

    .metric-card.is-good {
      background: transparent;
    }

    .metric-card.is-good .metric-value {
      color: var(--green);
    }

    .analysis-card.is-ratioed {
      background: var(--paper);
    }

    .analysis-card.is-safe {
      background: var(--paper);
    }

    .analysis-card.is-neutral {
      background: var(--paper);
    }

    .analysis-card.is-ratioed .verdict-title {
      color: var(--red);
    }

    .analysis-card.is-safe .verdict-title {
      color: var(--green);
    }

    .analysis-card.is-neutral .verdict-title {
      color: var(--ink);
    }

    .verdict-title {
      margin-top: 0.35rem;
      font-size: clamp(2.8rem, 6.4vw, 4.8rem);
      font-weight: 700;
      line-height: 0.95;
      letter-spacing: -0.07em;
      text-transform: uppercase;
    }

    .share-card {
      margin-top: 0;
      border: none;
      background: transparent;
      border-radius: 0;
    }

    .verdict-generated {
      margin-top: 0.7rem;
      text-align: center;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      line-height: 1.4;
      text-transform: uppercase;
      color: rgba(47, 103, 143, 0.52);
    }

    .verdict-generated strong {
      font-weight: 700;
      color: rgba(39, 76, 105, 0.96);
    }

    .share-actions {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.75rem;
      margin-top: 0;
    }

    .share-actions .button {
      min-height: 48px;
      border-radius: 12px;
      border: 1px solid rgba(30, 35, 41, 0.14);
      background: rgba(255, 255, 255, 0.66);
      color: var(--ink);
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.76rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .share-actions .button:hover {
      background: rgba(255, 255, 255, 0.92);
      color: var(--ink);
    }

    .modal-card {
      width: min(640px, calc(100vw - 2rem));
      border-radius: 16px;
      overflow: hidden;
    }

    .modal-card-head,
    .modal-card-foot {
      background: var(--paper);
      border-color: rgba(49, 101, 140, 0.12);
    }

    .modal-card-title {
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--ink);
    }

    .modal-card-body {
      background: var(--paper);
      color: var(--ink);
    }

    .modal-card-body p {
      color: var(--muted);
      line-height: 1.75;
    }

    .footer-links {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .footer-link-button {
      padding: 0;
      border: none;
      background: transparent;
      color: inherit;
      font: inherit;
      letter-spacing: inherit;
      text-transform: inherit;
      cursor: pointer;
    }

    .footer-link-button:hover {
      color: var(--ink);
    }

    .spinner {
      display: none;
      width: 16px;
      height: 16px;
      margin-right: 0.55rem;
      border: 2px solid rgba(255, 255, 255, 0.25);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 840px) {
      .site-header,
      .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .metrics-grid,
      .share-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .page-shell {
        padding-inline: 0.95rem;
      }

      .hero {
        padding-top: 3rem;
      }

      .search-box .field.has-addons {
        flex-direction: column;
      }

      .search-box .control {
        width: 100%;
      }

      .clear-search-btn {
        right: 0.9rem;
      }

      .button.analyze-btn {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
      }

      .tweet-actions,
      .metrics-grid,
      .share-actions {
        grid-template-columns: 1fr;
      }

      .metric-card {
        border-right: none;
        border-bottom: 1px solid rgba(30, 35, 41, 0.08);
      }

      .metric-card:last-child {
        border-bottom: none;
      }
    }
