    /* ---------- CARD ---------- */
    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius-l);
      padding: 16px 16px 18px;
      box-shadow: var(--shadow-card);
    }

    .card h3 {
      font-size: 12px;
      font-family: var(--font-mono);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 2px;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* ---------- BUTTONS ---------- */
    .btn-add {
      background: var(--brass);
      border: none;
      color: #fff;
      font-weight: 600;
      border-radius: 8px;
      padding: 7px 14px;
      font-size: 12px;
      white-space: nowrap;
      text-decoration: none;
      display: inline-block;
    }

    .btn-add:hover {
      filter: brightness(1.08);
    }

    .btn-ghost {
      background: none;
      border: 1px solid var(--line-strong);
      color: var(--ink-dim);
      border-radius: 20px;
      padding: 5px 12px;
      font-size: 11px;
      font-family: var(--font-mono);
    }

    .btn-ghost:hover {
      border-color: var(--brass);
      color: var(--brass);
    }

    .btn-ghost-danger:hover {
      border-color: var(--coral);
      color: var(--coral);
    }

    /* ---------- MODAL ---------- */
    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(46, 42, 71, 0.45);
      backdrop-filter: blur(2px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 50;
    }

    .overlay.hidden {
      display: none;
    }

    .modal {
      background: var(--panel-raised);
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-l);
      padding: 22px;
      width: 380px;
      max-width: 92vw;
      box-shadow: 0 20px 50px rgba(48, 38, 99, 0.18);
    }

    .modal.modal-wide {
      width: 680px;
      max-height: 88vh;
      overflow-y: auto;
    }

    .modal h2 {
      font-size: 17px;
      margin-bottom: 14px;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 12px;
    }

    .field label {
      font-family: var(--font-mono);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    .field input,
    .field select,
    .field textarea {
      background: var(--panel-alt);
      border: 1px solid var(--line-strong);
      color: var(--ink);
      border-radius: 7px;
      padding: 8px 10px;
      font-size: 13px;
    }

    .field textarea {
      resize: vertical;
      min-height: 50px;
    }

    .field-row {
      display: flex;
      gap: 10px;
    }

    .field-row .field {
      flex: 1;
    }

    .field-row.is-hidden {
      display: none;
    }

    .field-checkbox {
      margin-bottom: 12px;
    }

    .field-checkbox.is-hidden {
      display: none;
    }

    .field-checkbox label {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12.5px;
      color: var(--ink-dim);
      cursor: pointer;
    }

    .field-checkbox input {
      width: 15px;
      height: 15px;
      accent-color: var(--brass);
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 16px;
    }

    .btn-secondary {
      background: none;
      border: 1px solid var(--line-strong);
      color: var(--ink-dim);
      border-radius: 7px;
      padding: 8px 14px;
      font-size: 12.5px;
    }

    .btn-primary {
      background: var(--brass);
      border: none;
      color: #fff;
      font-weight: 600;
      border-radius: 7px;
      padding: 8px 16px;
      font-size: 12.5px;
    }

    @media (max-width:640px) {
      .clock-time {
        font-size: 26px;
      }

      .app-content {
        padding: 16px;
      }
    }
