/* css/quick-menu.css — the header's quick menu (js/quick-menu.js).
   A panel that drops from the header with up to eight shortcuts in two
   columns, and its «choose» face with the side menu's entries. */

      /* Not before a profile exists: same rule as the hamburger. */
      body.tl-profile-locked #hdrRapidoBtn { display: none !important; }
      #hdrRapidoBtn[hidden] { display: none; }
      #hdrRapidoBtn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }

      /* The overlay reuses `.modal-overlay` (back button, focus, «something is
         open» for the updater); only its placement changes: at the top,
         under the header, instead of a sheet rising from below. */
      .modal-overlay.qm-overlay {
        align-items: flex-start;
        justify-content: center;
        /* The app stays visible behind, softened, so the panel reads as a
           layer above it and not as a new screen. */
        background: rgba(0, 0, 0, 0.45);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        /* `--qm-top` is the header's real bottom edge, set on opening: on a
           phone the header has two rows and is taller. */
        padding: calc(var(--qm-top, 58px) + 6px) 12px 12px;
        box-sizing: border-box;
      }
      /* ⭐ It must stand out from the usual background (Santi, 2026-09-29): a
         gold edge and glow, and a gold wash at the top, in both themes. */
      .qm-panel {
        width: 100%;
        max-width: 420px;
        /* ⛔ Divided by `--tl-zoom`, like every sheet of the app: on a computer
           the body is zoomed and a bare `100dvh` measures more than the screen,
           so the bottom of the panel —«Listo»— was cut off (Santi, 2026-09-30). */
        max-height: calc(100dvh / var(--tl-zoom, 1) - var(--qm-top, 58px) - 24px);
        display: flex;
        flex-direction: column;
        background:
          linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 120px),
          var(--surface);
        border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
        border-radius: 14px;
        box-shadow:
          0 14px 40px rgba(0, 0, 0, 0.4),
          0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
        overflow: hidden;
        transform-origin: 24px 0;
        animation: qm-entra 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
      }
      @keyframes qm-entra {
        from { opacity: 0; transform: translateY(-8px) scale(0.96); }
        to   { opacity: 1; transform: none; }
      }

      .qm-cab {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 10px 10px 16px;
        border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
      }
      .qm-titulo {
        flex: 1 1 auto;
        margin: 0;
        font-family: "Oswald", sans-serif;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--accent);
      }
      .qm-cab-btn {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid transparent;
        border-radius: 10px;
        color: var(--muted);
        cursor: pointer;
        transition: color 0.15s, background 0.15s, border-color 0.15s;
      }
      .qm-cab-btn svg { width: 22px; height: 22px; transition: transform 0.3s ease; }
      .qm-cab-btn[aria-pressed="true"] {
        color: var(--accent);
        border-color: var(--accent);
        background: rgba(200, 168, 75, 0.12);
      }
      .qm-cab-btn[aria-pressed="true"] svg { transform: rotate(60deg); }
      .qm-cab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

      .qm-cuerpo {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px;
      }

      /* ── The shortcuts: two columns of large tiles ── */
      .qm-rejilla {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .qm-acceso {
        position: relative;
        min-height: 104px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 8px 12px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        color: var(--text);
        font-family: "Inter", sans-serif;
        cursor: pointer;
        touch-action: manipulation;
        transition: border-color 0.15s, background 0.15s, transform 0.1s;
        animation: qm-acceso-entra 0.26s ease backwards;
        animation-delay: calc(var(--qm-i, 0) * 35ms + 40ms);
      }
      @keyframes qm-acceso-entra {
        from { opacity: 0; transform: translateY(6px); }
        to   { opacity: 1; transform: none; }
      }
      .qm-acceso:hover { border-color: var(--accent); }
      .qm-acceso:active { transform: scale(0.97); background: rgba(200, 168, 75, 0.1); }
      .qm-acceso:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
      .qm-acceso-ico {
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(200, 168, 75, 0.14);
        color: var(--accent);
      }
      .qm-acceso-ico svg { width: 28px; height: 28px; }
      .qm-acceso-txt {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      /* The small line that tells «Histórico» from «Historial». */
      .qm-acceso-sub {
        margin-top: -6px;
        font-size: 11px;
        line-height: 1.2;
        color: var(--muted);
        text-align: center;
      }
      .qm-acceso-badge[hidden] { display: none; }
      /* Same look and colour as the side menu's unread badge. */
      .qm-acceso-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--badge);
        color: #fff;
        font-family: "Oswald", sans-serif;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1;
      }

      /* ── Nothing chosen yet ── */
      .qm-vacio {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 8px 4px;
      }
      .qm-vacio-ico {
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(200, 168, 75, 0.14);
        color: var(--accent);
        margin-bottom: 12px;
      }
      .qm-vacio-ico svg { width: 28px; height: 28px; }
      .qm-vacio-tit { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--text); }
      .qm-vacio-sub { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
      .qm-vacio-btn { min-height: 44px; }

      /* ── Choosing: the side menu's entries, by block ── */
      .qm-cuenta {
        margin: 0 0 6px;
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
      }
      .qm-grupo {
        margin: 12px 0 2px;
        font-family: "Oswald", sans-serif;
        font-size: 11px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--muted);
      }
      .qm-opcion {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        padding: 4px 6px;
        border-radius: 10px;
        color: var(--text);
        font-size: 14px;
        cursor: pointer;
      }
      .qm-opcion:active { background: var(--hover-strong); }
      .qm-opcion input {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        margin: 0;
        accent-color: var(--accent);
        cursor: pointer;
      }
      .qm-opcion input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
      .qm-opcion-ico { flex: 0 0 auto; display: flex; color: var(--muted); }
      .qm-opcion-ico svg { width: 20px; height: 20px; }
      .qm-listo { margin-top: 14px; min-height: 44px; }

      @media (prefers-reduced-motion: reduce) {
        .qm-panel, .qm-acceso { animation: none; }
        .qm-cab-btn svg { transition: none; }
      }
