    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --teal-600: #0d9488;
      --teal-700: #0f766e;
      --teal-800: #115e59;
      --rose-500: #f43f5e;
      --rose-600: #e11d48;
      --bg: #f0fdfa;
      --card: #ffffff;
      --text: #134e4a;
      --sub: #5eead4;
      --border: #99f6e4;
      --space: 20px;
      --radius: 14px;
      --shadow: 0 4px 24px rgba(15,118,110,0.10);
    }

    body {
      font-family: 'Segoe UI', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100dvh;
    }

    header {
      background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
      color: #fff;
      padding: var(--space);
      display: flex;
      align-items: center;
      gap: calc(var(--space) / 2);
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    }
    header svg { flex-shrink: 0; width: 50px; height: auto;}
    header svg rect { fill: rgba(255,255,255,1); }
    header svg circle, header svg polyline { stroke: var(--teal-800); }
    header h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
    header span { font-size: 13px; opacity: 0.75; display: block; }

    nav {
      display: flex;
      background: var(--teal-700);
      border-bottom: 2px solid var(--teal-800);
    }
    .nav-content {
      display: flex;
      flex: 1;
      max-width: 640px;
      margin: 0 auto;
      padding: 0 1rem;
    }
    nav button {
      flex: 1;
      padding: 0.75rem;
      background: none;
      border: none;
      color: rgba(255,255,255,0.65);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      border-bottom: 3px solid transparent;
    }
    nav button.active {
      color: #fff;
      border-bottom-color: #5eead4;
    }
    nav button:hover { color: #fff; }

    main {
      max-width: 640px;
      margin: 0 auto;
      padding: 1.5rem 1rem 0 1rem;
    }

    footer {
      padding: 5px 0 20px 0;
      font-size: 12px;
      color: #aaa;
      text-align: center;
    }

    .tab { display: none; }
    .tab.active { display: block; }

    .card {
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      border: 1px solid var(--border);
    }

    .card h2 {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 1.1rem;
      color: var(--teal-700);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }
    .form-grid.single { grid-template-columns: 1fr; }

    .field {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .field label {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--teal-700);
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }
    .field input {
      padding: 0.6rem 0.8rem;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      font-size: 1rem;
      color: var(--text);
      background: #f0fdfa;
      transition: border-color 0.2s;
      outline: none;
    }
    .field input:focus {
      border-color: var(--teal-600);
      background: #fff;
    }

    .btn {
      width: 100%;
      margin-top: 1rem;
      padding: 0.75rem;
      border: none;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.1s, filter 0.2s;
      letter-spacing: 0.3px;
    }
    .btn:active { transform: scale(0.98); }
    .btn-teal { background: var(--teal-600); color: #fff; }
    .btn-teal:hover { filter: brightness(1.08); }

    .list-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.75rem;
    }
    .list-header h2 { margin-bottom: 0; }
    .badge {
      background: var(--teal-700);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.2rem 0.6rem;
      border-radius: 99px;
    }

    .entry-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

    .entry-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #f0fdfa;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0.7rem 1rem;
      animation: slideIn 0.2s ease;
    }
    @keyframes slideIn {
      from { opacity: 0; transform: translateY(-6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .entry-value { font-size: 1.1rem; font-weight: 700; color: var(--teal-700); }
    .entry-value small { font-size: 0.75rem; font-weight: 500; color: #5eead4; margin-left: 2px; }
    .entry-meta { font-size: 0.75rem; color: #5eead4; margin-top: 1px; }

    .entry-bp { display: flex; flex-direction: column; }
    .bp-sys { color: var(--rose-600); }
    .bp-dia { color: var(--teal-600); }
    .bp-pulse { color: #a78bfa; }

    .delete-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: #cbd5e1;
      padding: 4px;
      border-radius: 6px;
      line-height: 0;
      transition: color 0.2s;
    }
    .delete-btn:hover { color: var(--rose-500); }

    .empty {
      text-align: center;
      color: #99f6e4;
      font-size: 0.9rem;
      padding: 2rem 0;
    }

    .summary-row {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 1.25rem;
    }
    .summary-box {
      flex: 1;
      background: var(--teal-700);
      color: #fff;
      border-radius: 12px;
      padding: 0.9rem 1rem;
      text-align: center;
    }
    .summary-box .val { font-size: 1.5rem; font-weight: 800; }
    .summary-box .lbl { font-size: 0.7rem; opacity: 0.75; text-transform: uppercase; }
