 /* ====== Base Reset & Minimal Gaps ====== */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
    }
    
    .rent-calc-container {
      max-width: 600px;
      margin: 0 auto;
      background: #fff;
      padding: 10px;
    }
    /* ====== Header ====== */
    .rent-calc-header h1 {
      font-size: 1.2rem;
      color: #333;
      margin-bottom: 4px;
    }
    .rent-calc-header p {
      font-size: 0.9rem;
      color: #555;
      margin-bottom: 8px;
    }
    /* ====== Form ====== */
    .rent-calc-form {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      background: #eee;
      border: 1px solid #eee;
      padding: 8px;
      margin-bottom: 8px;
    }
    .input-group {
      flex: 1 1 220px;
      min-width: 180px;
    }
    .input-group label {
      display: block;
      font-size: 0.85rem;
      color: #333;
      margin-bottom: 3px;
    }
    .input-group input,
    .input-group select {
      width: 100%;
      padding: 5px;
      font-size: 0.85rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    /* ====== Buttons ====== */
    .rent-calc-buttons {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      margin-top: 2px;
    }
    .calc-btn {
      padding: 6px 12px;
      font-size: 0.85rem;
      color: #fff;
      background: #428b46;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    .calc-btn:hover {
      background: #367539;
    }
    .clear-btn {
      background: #888;
    }
    /* ====== Results ====== */
    .rent-calc-results {
      background: #fdfdfd;
      border: 1px solid #eee;
      padding: 8px;
    }
    .rent-calc-results h2 {
      font-size: 1rem;
      color: #333;
      margin-bottom: 6px;
    }
    .rent-calc-results p {
      font-size: 0.85rem;
      margin-bottom: 8px;
      color: #333;
      line-height: 1.3;
    }
    /* ====== Color Bar ====== */
    .rent-bar-container {
      margin: 5px 0 8px 0;
      position: relative;
      height: 40px;
      background: #e5e5e5;
      border-radius: 3px;
      overflow: hidden;
    }
    .rent-segment {
      position: absolute;
      top: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      text-transform: capitalize;
      color: #fff;
    }
    .rent-green {
      background: #67b26f;
    }
    .rent-yellow {
      background: #ffce00;
      color: #333;
      font-weight: bold;
    }
    .rent-red {
      background: #f45b5b;
    }
    /* ====== Markers (arrows + labels) ====== */
    .rent-marker {
      position: absolute;
      top: 0; 
      transform: translateY(-100%);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .rent-marker .marker-label {
      background: #fff;
      border: 1px solid #ccc;
      padding: 1px 4px;
      border-radius: 4px;
      font-size: 0.75rem;
      white-space: nowrap;
    }
    .rent-marker .marker-arrow {
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid #000;
      margin-top: -1px;
    }
    /* ====== Footnote ====== */
    .rent-calc-footnote {
      font-size: 0.8rem;
      color: #666;
      margin-top: 6px;
    }
    /* ====== Tighter Spacing for Very Narrow Screens ====== */
    @media (max-width: 480px) {
      .rent-calc-container {
        padding: 8px;
      }
      .rent-calc-form {
        gap: 6px;
        padding: 6px;
        margin-bottom: 6px;
      }
      .input-group label {
        margin-bottom: 2px;
      }
      .input-group input,
      .input-group select {
        padding: 4px;
      }
      .rent-calc-buttons {
        margin-top: 4px;
      }
      .rent-calc-results {
        padding: 6px;
      }
      .rent-calc-results p {
        margin-bottom: 6px;
        font-size: 0.8rem;
      }
      .rent-bar-container {
        margin: 4px 0 6px 0;
        height: 40px;
      }
      .rent-marker .marker-label {
        font-size: 0.7rem;
      }
      .rent-calc-footnote {
        margin-top: 5px;
        font-size: 0.75rem;
      }
    }