    .history-panel {
      margin-top: 10px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 14px;
      padding: 10px 12px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .history-panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .history-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-height: 260px;
      overflow: auto;
    }

    .history-item {
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 12px;
      padding: 10px 12px;
      color: var(--text);
      font-size: 0.82rem;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .history-item small {
      display: block;
      margin-bottom: 4px;
      color: var(--muted);
    }

    .history-empty {
      color: var(--muted);
      font-size: 0.8rem;
      padding: 8px 0;
    }

    .card {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 16px;
      padding: 14px;
      margin-bottom: 14px;
    }

    .card h3 {
      margin: 0 0 12px;
      font-size: 1rem;
      color: var(--primary);
    }

    .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 10px;
    }

    .converter-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.9fr);
      gap: 12px;
      align-items: start;
    }

    .converter-layout .field-row {
      grid-template-columns: 1fr;
      margin-bottom: 0;
    }

    @media (max-width: 560px) {
      .converter-layout {
        grid-template-columns: 1fr;
      }
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .field input,
    .field select {
      width: 100%;
      background: rgba(10,17,29,0.85);
      border: 1px solid rgba(255,255,255,0.07);
      color: var(--text);
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 0.95rem;
    }

    body.light-mode .field input,
    body.light-mode .field select {
      background: rgba(255,255,255,0.96);
      border-color: rgba(33,105,223,0.2);
      color: #15263d;
      color-scheme: light;
    }

    body.light-mode .field select option {
      background: #ffffff;
      color: #15263d;
    }

    .mini-btn,
    .converter-btn,
    .special-btn {
      width: 100%;
      border: none;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #05131f;
      border-radius: 12px;
      padding: 11px 12px;
      font-weight: 800;
      cursor: pointer;
      margin-top: 8px;
    }

    .result-box {
      margin-top: 10px;
      padding: 12px;
      border-radius: 12px;
      background: rgba(49, 208, 170, 0.08);
      border: 1px solid rgba(49, 208, 170, 0.18);
      color: var(--text);
      font-weight: 700;
    }

    body.light-mode .result-box {
      background: rgba(27, 191, 146, 0.1);
      border-color: rgba(27, 168, 116, 0.28);
      color: #15263d;
    }

    @media (max-width: 840px) {
      .calc-app {
        padding: 9px;
      }

      .keypad {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }
