      :root {
        --bg: #f4f5f6;
        --panel: #ffffff;
        --line: #d9dde2;
        --text: #1b1f23;
        --muted: #66707a;
        --accent: #0d5e4f;
        --accent-soft: #eef7f5;
        --warning: #87531d;
        --radius: 12px;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        min-height: 100%;
      }

      body {
        font-family:
          "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
          sans-serif;
        color: var(--text);
        background: var(--bg);
      }

      a {
        color: var(--accent);
      }

      main {
        width: min(1280px, calc(100vw - 24px));
        margin: 0 auto;
        padding: 12px 0 20px;
      }

      .page-stack {
        display: grid;
        gap: 12px;
      }

      .panel {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
      }

      h1,
      h2,
      p {
        margin: 0;
      }

      .topbar {
        padding: 14px 16px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
        gap: 16px;
        align-items: center;
      }

      .topbar-copy {
        width: min(100%, 560px);
        justify-self: center;
        text-align: center;
      }

      .topbar-spacer {
        min-height: 1px;
      }

      h1 {
        font-size: clamp(1.35rem, 2.4vw, 1.9rem);
        line-height: 1.1;
        letter-spacing: -0.04em;
        text-wrap: balance;
      }

      .topbar p {
        margin-top: 4px;
        font-size: 13px;
        color: var(--muted);
        line-height: 1.5;
        text-wrap: balance;
      }

      .score-card {
        display: flex;
        align-items: center;
        gap: 14px;
        justify-self: end;
      }

      .score-total {
        display: flex;
        align-items: baseline;
        gap: 6px;
        white-space: nowrap;
      }

      .score-total strong {
        font-size: clamp(2rem, 4vw, 2.8rem);
        line-height: 0.9;
        letter-spacing: -0.08em;
      }

      .score-total span {
        font-size: 14px;
        color: var(--muted);
      }

      .top-actions {
        display: flex;
        gap: 8px;
        align-items: center;
      }

      .lang-toggle {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .lang-toggle svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
      }

      button {
        border: 1px solid var(--line);
        background: #fff;
        color: var(--text);
        border-radius: 8px;
        padding: 7px 10px;
        font: inherit;
        font-size: 13px;
        text-decoration: none;
        cursor: pointer;
      }

      .button-primary {
        border-color: var(--accent);
        background: var(--accent);
        color: #fff;
      }

      .note-bar {
        padding: 9px 12px;
        font-size: 12px;
        color: var(--muted);
        line-height: 1.5;
      }

      .note-bar strong {
        color: var(--warning);
      }

      .sections-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .section {
        padding: 14px;
      }

      .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
      }

      .section-header h2 {
        font-size: 15px;
        letter-spacing: -0.01em;
      }

      .section-total {
        padding: 5px 8px;
        border-radius: 999px;
        background: var(--accent-soft);
        color: var(--accent);
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
      }

      .factor-grid {
        display: grid;
        gap: 8px;
      }

      .factor {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px 38px;
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 8px 10px;
        border-radius: 10px;
        background: #fafbfc;
        border: 1px solid #edf0f2;
      }

      .factor-points {
        flex: none;
        min-width: 38px;
        text-align: center;
        padding: 5px 6px;
        border-radius: 8px;
        background: var(--accent-soft);
        color: var(--accent);
        font-size: 12px;
        font-weight: 800;
      }

      .factor-title {
        min-width: 0;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 600;
        padding-right: 4px;
      }

      .factor select {
        width: 220px;
        max-width: 100%;
        justify-self: end;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 7px 28px 7px 10px;
        background: #fff;
        color: var(--text);
        font: inherit;
        font-size: 12px;
        line-height: 1.3;
        appearance: none;
        background-image:
          linear-gradient(45deg, transparent 50%, var(--accent) 50%),
          linear-gradient(135deg, var(--accent) 50%, transparent 50%);
        background-position:
          calc(100% - 15px) calc(50% - 2px),
          calc(100% - 10px) calc(50% - 2px);
        background-size: 5px 5px, 5px 5px;
        background-repeat: no-repeat;
      }

      .factor select:focus {
        outline: none;
        border-color: var(--accent);
      }

      @media (max-width: 980px) {
        .topbar {
          grid-template-columns: 1fr;
          align-items: flex-start;
        }

        .topbar-spacer {
          display: none;
        }

        .topbar-copy {
          width: 100%;
        }

        .score-card {
          justify-self: stretch;
        }

        .sections-grid {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 720px) {
        main {
          width: min(100vw - 16px, 1280px);
          padding-top: 8px;
        }

        .section-header {
          flex-direction: column;
          align-items: flex-start;
        }

        .score-card,
        .top-actions {
          width: 100%;
        }

        .score-card {
          flex-direction: column;
          align-items: stretch;
          gap: 10px;
        }

        .top-actions {
          justify-content: space-between;
        }

        .factor {
          grid-template-columns: 1fr;
          flex-direction: column;
          align-items: stretch;
          gap: 10px;
        }

        .factor-points {
          align-self: flex-start;
        }

        .factor select {
          width: 100%;
          max-width: 100%;
          min-height: 38px;
          font-size: 16px;
        }
      }
