 :root {
        --cream: #f6e7cf;
        --cream-dark: #ecd7b3;
        --ink: #2b2b2b;
        --accent: #6bb7a6;
        --accent-dark: #3b8c7c;
        --paper: #ffffff;
      }

      body {
        margin: 0;
        font-family: "Trebuchet MS", Verdana, sans-serif;
        color: var(--ink);
        background: #ffeef5;
      }

      .page {
        max-width: 960px;
        margin: 0 auto;
        padding: 24px 16px 48px;
      }

      .topbar {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 24px;
      }

      .title {
        font-size: 28px;
        color: #40E0D0;
		font-family: "Comic Sans MS", cursive, sans-serif;
        font-weight: 700;
      }

      .panel {
        background: var(--cream);
        padding: 18px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        align-items: center;
        justify-content: center;
      }

      select, input {
        font-size: 15px;
        padding: 6px 8px;
        border: 1px solid #9c8c6d;
        border-radius: 4px;
        background: #fff;
      }

      label {
        margin-right: 6px;
      }

      button {
        background: #40E0D0;
		border: 1px solid #40E0D0;
        color:#fff;
        padding: 7px 14px;
        border-radius: 4px;
        font-size: 15px;
        cursor: pointer;
      }

      button:hover {
        background: var(--accent-dark);
      }

      .content {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 20px;
        margin-top: 20px;
      }

      table {
        width: 100%;
        border-collapse: collapse;
        background: var(--paper);
        font-family: "Times New Roman", Georgia, serif;
        font-size: 14px;
      }

      th, td {
        border: 1px solid #7a6a52;
        padding: 6px 8px;
        text-align: left;
      }

      th {
        background: #f4f1ec;
      }

      .result {
        background: var(--paper);
        border: 1px solid #7a6a52;
        padding: 14px;
        min-height: 120px;
        font-family: "Times New Roman", Georgia, serif;
        font-size: 18px;
      }

      .formula {
        font-size: 20px;
        margin-bottom: 8px;
      }

      .note {
        font-size: 14px;
        color: #6b5c48;
      }

      .field {
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .field.show {
        display: inline-flex;
      }

      @media (max-width: 760px) {
        .content {
          grid-template-columns: 1fr;
        }

        .panel {
          justify-content: flex-start;
        }
      
.wave {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  bottom: -1px;
  height: 140px;
  z-index: 0;
  pointer-events: none;
}

.wave svg {
  width: 100%;
  height: 140px;
  display: block;
}